Communication
2.3 Modbus communication
SIMOCODE pro - Communication
Function Manual, 11/2018, A5E40508495002A/RS-AC/003
101
In the example, the following status information is returned:
●
Device ok
●
Bus ok
●
PLC/PCS ok
●
Current flowing ok
●
Motor on>
See also Device diagnostics (Page 282) for more information.
The returned bytes contain the bits in the following order:
Byte 1: 0x3C == address 0x1C0F - 0x1C08
Byte 2: 0x08 == address 0x1C17 - 0x1C10
Function codes 03 - Read Holding Register and 04 - Read Input Registers
Function
This function enables the Modbus master system to read registers from the SIMOCODE pro
register memory area.
Functions codes 03 and 04 behave in the same way here and supply an identical feedback
signal. A valid offset from the register memory area is expected as the start address. Up to
125 registers per frame can be read.
Request message frame
Slave address
Function code
Start address
Number of registers
CRC
1 byte
1 byte
2 bytes
2 bytes
2 bytes
Response message frame
Slave address
Function code
Number of bytes Register value
CRC
1 byte
1 byte
1 byte
n registers
2 bytes
Example: Reading in of the SIMOCODE pro current measured values from slave number 16.
The current measured values start from offset 0x0807 and comprise 3 registers.
Request message frame
Slave address
Function code
Start address
Number of registers
CRC
1 byte
1 byte
2 bytes
2 bytes
2 bytes
0x10
0x03
0x8007
0x00 0x03
0x ....
Response message frame
Slave address
Function code
Number of bytes Register value
CRC
1 byte
1 byte
1 byte
3 registers (6 bytes)
2 bytes
0x10
0x03
0x06
0x0064 0x0064 0x0064 0x ....
In the example, the measured values of the current motor current in phases 1, 2 and 3, each
with 100 % (0x0064) of the rated motor current, are returned as the feedback signal.