String data format (string) – Basler Electric BE1-11 Modbus Protocol User Manual
Page 16

10
9424200774 Rev B
Holding Register
Value
K (Hi Byte)
hex 12
K (Lo Byte)
hex 34
The same byte alignments are required to write.
If Uint16 Data Format is listed in the Binary Points Section only, then each register contains up to 16 bit-
mapped variables as listed in the Register Table chapter under Binary Points.
Example: Register 900 occupies 16 rows in the Register Table where each row gives the name of specific
bit-mapped data such as 900-0 indicates bit 0 of register 900 is mapped to 60FL/60FL ALARM, bit 1 is
mapped to 27P/BLOCK, and so forth until 900-15 is mapped to 27P-2/BLOCK.
Short Integer Data Format/Byte Character Data Format (Uint8 and Int8)
The Modbus short integer data format uses a single holding register to represent an 8-bit data value. The
holding register high byte will always be zero.
Example: The value 132 represented in short integer format is hexadecimal 0x84. This number will read
from a holding register as follows:
Holding Register
Value
K (Hi Byte)
hex 00
K (Lo Byte)
hex 84
The same byte alignments are required to write.
String Data Format (String)
The Modbus string data format uses one or more holding registers to represent a sequence, or string, of
character values. If the string contains a single character, the holding register high byte will contain the
ASCII character code and the low byte will be zero.
Example: The string “PASSWORD” represented in string format will read as follows:
Holding Register
Value
K (Hi Byte)
‘P’
K (Lo Byte)
‘A’
K+1 (Hi Byte)
‘S’
K+1 (Lo Byte)
‘S’
K+2 (Hi Byte)
‘W’
K+2 (Lo Byte)
‘O’
K+3 (Hi Byte)
‘R’
K+3 (Lo Byte)
‘D’
Example: If the above string is changed to “P”, the new string will read as follows:
Holding Register
Value
K (Hi Byte)
‘P’
K (Lo Byte)
hex 00
K+1 (Hi Byte)
hex 00
K+1 (Lo Byte)
hex 00
K+2 (Hi Byte)
hex 00
K+2 (Lo Byte)
hex 00
K+3 (Hi Byte)
hex 00
K+3 (Lo Byte)
hex 00
The same byte alignments are required to write.
General Information
BE1-11