M Suffix
- Last UpdatedJul 26, 2020
- 1 minute read
You can treat a series of consecutive analog or block registers as an ASCII character string by adding a blank space and an M following the item name. For example, R101-R150 M.
This item name indicates that registers R101 through R150 contain a string of 100 ASCII characters.
Each register contains two characters with the low-order byte first. A zero byte in any register is treated as the end of the string. A single register followed by the M suffix is treated as a 4-byte long register string. For example, assume the following values are in the PLC: R1 = 54, R2 = 55, R3 = 69, R4=72, R5 = 73, R1-R5 M = 67EHI. For example, R101 M is the same as R101-R102 M.
For a single register, specify R101-R101 M.
The server reads R100 and R101 register values in ASCII with a space in between.
The resulting type is a VT_BSTR.
This suffix cannot be used with any other suffix.
Supported base items are: %AI, %AO or %AQ, %P, %R, %L, %W
Note: For Micro and Nano PLCs, a maximum of 100 elements are allowed for items with suffix M. For all other PLCs, the maximum is 1000.