Example¶
MODBUS interface of the client | COM1 |
Client reads from | Server 1 |
Data | %MX0.1026.4 = FALSE %MX0.1026.5 = TRUE %MX0.1026.6 = FALSE |
Source address at server | %MX0.1026.4 : 2014HEX = 8212DEC |
Target address at client | abReadBool: ARRAY[0..2] OF BOOL |
The values of the flags %MX0.1026.4..%MX0.1026.6 on the server are written to the ARRAY abReadBool on the client. |
Server address | Function code | Server operand address | Number of bits | CRC | |||
---|---|---|---|---|---|---|---|
High | Low | High | Low | High | Low | ||
01HEX | 01HEX | 20HEX | 14HEX | 00HEX | 03HEX | 37HEX | CFHEX |
Server address | Function code | Number of bytes | Data | CRC | |
---|---|---|---|---|---|
High | Low | ||||
01HEX | 01HEX | 01HEX | 02HEX | D0HEX | 49HEX |
EN | COM | SLAVE | FCT | TIMEOUT | ADDR | NB | DATA |
---|---|---|---|---|---|---|---|
FALSE -> TRUE | 1 | 1 | 1 | Application- specific | 8212 | 3 | ADR (abReadBool[0]) |