Modbus TCP
A-4
AC30V series Variable Speed Drive
String Array Example
A string array parameter called
My String Array
has 2 elements of string length 5 characters (plus the null terminator) each. In this example the
parameter number of the whole array is 175.
If the values of the array elements are “12345” and “abc”:
Parameter
Number
Represents
Register
Number
Register Value
hi-byte
lo-byte
0175
whole array
[“12345”, “abc”]
00877
‘2’
‘1’
00878
‘4’
‘3’
0176
1
st
element
“12345”
00879
‘2’
‘1’
00880
‘4’
‘3’
0177
fragment
“1234”
00881
‘2’
‘1’
00882
‘4’
‘3’
0178
fragment
“5”
00883
null
‘5’
00884
undefined undefined
0179
2
nd
element
“abc”
00885
‘b’
‘a’
00886
null
‘c’
0180
fragment
“abc”
00887
‘b’
‘a’
00888
null
‘c’
0181
fragment
“”
00889
undefined undefined
00890
undefined undefined
Note: This example is not a real parameter.
To access the first element of the array over Modbus then parameter number
0177
(register
00881
) would be used. To access the second element
then parameter number
0180
(register
00887
) would be used.