Example¶
| MODBUS interface of the client | COM1 |
| Client writes to | Server 1 |
| Data | sMask.wAND_Mask := 16#00F2 sMask.wOR_Mask := 16#0025 |
| Source address at the client | sMask : COM_MOD_FCT22_TYPE |
| Target address at server | %MW0.8193 : 2001HEX = 8193DEC |
| The values of the WORD variables sMask.wAND_Mask and sMask.wAND_Mask on the client are applied as masks on %MW0.8193..%MW0.8195 on the server. | |
| Server address | Function code | Server operand address | AND Mask | OR Mask | CRC |
|---|---|---|---|---|---|
| High / Low | High / Low | High / Low | High / Low | ||
| 01HEX | 16HEX | 20HEX / 01HEX | 00HEX / F2HEX | 00HEX / 25HEX |
| Server address | Function code | Server operand address | AND Mask | OR Mask | CRC | ||||
|---|---|---|---|---|---|---|---|---|---|
| High | Low | High | Low | High | Low | High | Low | ||
| 01HEX | 16HEX | 20HEX | 01HEX | 00HEX | F2HEX | 00HEX | 25HEX | DAHEX | 08HEX |
| EN | COM | SLAVE | FCT | TIMEOUT | ADDR | Number of words | DATA |
|---|---|---|---|---|---|---|---|
| FALSE -> TRUE | 1 | 1 | 22 | Applicationspecific | 8193 | 1 | ADR (sMask) |