M
I need to send this message from ladder program to this slave and receive the answer message to PLC or PC
Below data is regarding the slave device
MODBUS® FUNCTIONS
The available functions are:
04 = Read input register, Allows to read the multimeter measures.
06 = Preset single register, Allows to set the setup parameters
07 = Read exception, Allows to read the device status
16 = Preset multiple register, Allows to set more than one parameter at the same time.
17 = Report slave ID, Allows to read information about the multimeter. For instance, to read the value of the equivalent phase-to-phase voltage, which resides at location 16 (10 Hex) from the multimeter with serial address
08, the message to send is the following:
08 04 00 0F 00 02 41 51
Whereas:
08 = slave address
04 = Modbus® function 'Read input register'
00 0F = Address of the required register (equivalent phase-to-phase voltage) decreased by one
00 02 = Number of registers to be read beginning from address 000F
4151 = CRC Checksum
The multimeter answer is the following:
08 04 04 00 00 00 64 63 6A
Where:
08 = Multimeter address (Slave 08)
04 = Function requested by the master
04 = Number of bytes sent by the multimeter
00 00 00 64 = Hex value of the equivalent phase-to phase voltage (100 V)
63 6A = CRC checksum
thanks
Below data is regarding the slave device
MODBUS® FUNCTIONS
The available functions are:
04 = Read input register, Allows to read the multimeter measures.
06 = Preset single register, Allows to set the setup parameters
07 = Read exception, Allows to read the device status
16 = Preset multiple register, Allows to set more than one parameter at the same time.
17 = Report slave ID, Allows to read information about the multimeter. For instance, to read the value of the equivalent phase-to-phase voltage, which resides at location 16 (10 Hex) from the multimeter with serial address
08, the message to send is the following:
08 04 00 0F 00 02 41 51
Whereas:
08 = slave address
04 = Modbus® function 'Read input register'
00 0F = Address of the required register (equivalent phase-to-phase voltage) decreased by one
00 02 = Number of registers to be read beginning from address 000F
4151 = CRC Checksum
The multimeter answer is the following:
08 04 04 00 00 00 64 63 6A
Where:
08 = Multimeter address (Slave 08)
04 = Function requested by the master
04 = Number of bytes sent by the multimeter
00 00 00 64 = Hex value of the equivalent phase-to phase voltage (100 V)
63 6A = CRC checksum
thanks