Example¶
| MODBUS interface of the client | COM1 |
| Client writes to | Server 1 |
| Data | bBit := TRUE |
| Source address at client | bBit : BOOL |
| Target address at server | %MX0.1026.7 : 2017HEX = 8215DEC |
| The value of the BOOL variable bBit on the server is written to %MX0.1026.7 on the server. | |
| Server address | Function code | Server operand address | Data | CRC | |||
|---|---|---|---|---|---|---|---|
| High | Low | High | Low | High | Low | ||
| 01HEX | 05HEX | 20HEX | 17HEX | FFHEX | 00HEX | 37HEX | FEHEX |
| Server address | Function code | Server operand address | Data | CRC | |||
|---|---|---|---|---|---|---|---|
| High | Low | High | Low | High | Low | ||
| 01HEX | 05HEX | 20HEX | 17HEX | FFHEX | 00HEX | 37HEX | FEHEX |
| EN | COM | SLAVE | FCT | TIMEOUT | ADDR | Number of bits | DATA |
|---|---|---|---|---|---|---|---|
FALSE -> TRUE |
1 | 1 | 5 | Application- specific | 8215 | 1 | ADR (bBit) |