Long integer data format (li), Integer data format (int), Short integer data format (si) – Basler Electric BE1-700 Modbus Protocol User Manual

Page 24: Ascii string data format (asc(x)), Long integer data format (li) -14, Integer data format (int) -14, Short integer data format (si) -14, Ascii string data format (asc(x)) -14

Advertising
background image

1-14

BE1-700 Modbus™ Protocol

9376700991 Rev D

The same byte alignments are required to write.

Long Integer Data Format (LI)

The Modbus long integer data format uses two consecutive holding registers to represent a 32 bit data

value. The first register contains the low-order 16 bits and the second register contains the high-order 16

bits.
Example: The value 95,800 represented in long integer format is hexadecimal 0x00017638. This number

will read from two consecutive holding registers as follows.

Holding Register

K

(Hi Byte) hex 76

Value

K

(Lo Byte) hex 38

K+1

(Hi Byte) hex 00

K+1

(Lo Byte) hex 01

The same byte alignments are required to write.

Integer Data Format (INT)

The Modbus integer data format uses a single holding register to represent a 16 bit data value.
Example: The value 4660 represented in integer format is hexadecimal 0x1234. This number will read

from a holding register as follows:

Holding Register

K

(Hi Byte) hex 12

Value

K

(Lo Byte) hex 34

The same byte alignments are required to write.

Short Integer Data Format (SI)

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

K

(Hi Byte) hex 00

Value

K

(Lo Byte) hex 84

The same byte alignments are required to write.
ASCII Character Data Format (ASC(1))
The Modbus ASCII character data format uses a single holding register to represent a single character

value. The holding register high byte will always be zero with the ASCII character code in the low byte.
Example: The character 'D' represented in ASCII character format is hexadecimal 44. This number will

read from a holding register as follows:

Holding Register

K

(Hi Byte)

hex 00

Value

K

(Lo Byte)

hex 44

The same byte alignments are required to write.

ASCII String Data Format (ASC(x))

The Modbus ASCII 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 ASCII string format will read as follows:

Advertising