Beijer Electronics (formerly QSI Corporation)
http://www.qsiforums.com/

How to use modbus user-defined functions ?
http://www.qsiforums.com/viewtopic.php?f=6&t=4759
Page 1 of 1

Author:  TonyB [ Mon May 27, 2013 10:02 am ]
Post subject:  How to use modbus user-defined functions ?

Hello,

how is it possible to use other Modbus functions than Read/Write coil(s) and Read/Write register(s) ?
As an example, I would like to use the function code 17 (Report slave ID). Which modbus object can I use here ?

Also, what's about user-defined functions like the ones in range 65-72 or 100-110 ? Are there any out-of-the-box available Qlarity objects ?

Thanks in advance,
Tony :-)

Author:  RonL [ Tue May 28, 2013 7:42 pm ]
Post subject:  Re: How to use modbus user-defined functions ?

Looking at the ModbusComm object source code, here are the commands implemented:
enum _MB_Command as _Modbus_None := 0, _ReadOutput_Coil := 1, _ReadInput_Coil := 2, ->
_ReadHolding_Reg := 3, _ReadInput_Reg := 4, _Force_Coil := 5, _Preset_Reg := 6, ->
_ForceMultiple_Coil := 15, _PresetMultiple_Reg := 16

User-defined was not implemented.

Using templates and Qlarity coding effort it should be possible to implement additional functionality in the ModbusComm.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/