Example¶
MODBUS interface of the client | COM1 |
Client writes to | Server 1 |
Data | abWriteBool[0] := TRUE abWriteBool[1] := FALSE abWriteBool[2] := TRUE |
Source address at client | abWriteBool : ARRAY[0..2] OF BOOL |
Target address at server | %MX0.1026.1 : 2011HEX = 8209DEC |
The values of the BOOL variables abWriteBool[0]..abWriteBool[2] on the client are written to %MX0.1026.1..%MX0.1026.3 on the server. |
Server address | Function code | Server operand address | Number of bits | Number of bytes | Data | CRC | |||
---|---|---|---|---|---|---|---|---|---|
High | Low | High | Low | High | Low | ||||
01HEX | 0FHEX | 20HEX | 11HEX | 00HEX | 03HEX | 01HEX | 05HEX | B4HEX | 37HEX |
Server address | Function code | Server operand address | Number of bits | CRC | |||
---|---|---|---|---|---|---|---|
High | Low | High | Low | High | Low | ||
01HEX | 0FHEX | 20HEX | 11HEX | 00HEX | 03HEX | 4EHEX | 0FHEX |
EN | COM | SLAVE | FCT | TIMEOUT | ADDR | Number of bits | DATA |
---|---|---|---|---|---|---|---|
FALSE -> TRUE |
1 | 1 | 15 | Application- specific | 8209 | 3 | ADR (abWriteBool[0]) |