STRING data over Modbus
XG5000 supports up to 31 characters in a STRING variable.
-
Each ASCII character needs to be handled as a byte in Modbus communication.
-
32 bytes of Modbus data should be allocated for each STRING variable.
XG5000 Variable Declarations
Variable Kind | Variable | Type | Address |
---|---|---|---|
VAR | STRING_FROM_HMI | STRING | %MW1616 |
VAR | STRING_TO_HMI | STRING | %MD308 |
C-More Tag Database
Assign 32 characters to the tag Data Count.
Device Name | Tag Name | Data Type | Address | Data Count |
---|---|---|---|---|
DEV002 | STRING_FROM_PLC | Ascii String | 30017 | 32 |
DEV002 | STRING_TO_PLC | Ascii String | 40017 | 32 |
LP203-3