EasyManua.ls Logo

Thytronic NA60-MB0 PRON Series - 2.1.8 ARR

Thytronic NA60-MB0 PRON Series
59 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PRON NA60-MB0
Version 3.50
PRON NA60-MB0 Remote Setting Manual
Page: 10 of 59
2.1.8 ARR
Description:
Array of BYTE.
Relationship with Modbus:
An ARR data type of length n is placed in N Modbus Registers (N= ceil(n/2)
) keeping the byte ordering. If odd n,
the last byte of ARR is placed in the MSB of the last Modbus register, while the LSB is set to 0
If even n:
B
1
B
2
B
n
B
1
B
2
B
n-1
B
n
1 2 n 1 N
Array[n] Modbus Registers
N = ceil(n/2)
If odd n:
B
1
B
2
B
n
B
1
B
2
B
n
0
1 2 n 1 N
Array[n] Modbus Registers
Example:
Let’s consider an array with 3 bytes whose values are: (0x01, 0x3A, 0x1F). This array can be placed in
N=ceil(3/2)=ceil(1.5)=2 Modbus registers.
01 3A 1F 01 3A 1F 00
1 2 3 1 2
Array[3] Modbus Registers
The ceil function returns the smallest integer value that is greater than or equal to a number. For example,
ceil(2.3)=3 , ceil(1.5)=2.

Related product manuals