9.4 Transmitting the beam status
Beams are always output in packages of 8; the beam status is always output with a
data width of 8 bits (MSB = first beam).
The data volume depends on the transmission type and the number of beams on the
MLG-2.
Transmission type
•
Binary = 1 bit per beam = 1 byte for eight beams
•
HEX = 2 ASCII characters = 2 bytes for eight beams
•
DEC = 3 ASCII characters = 3 bytes for eight beams
Example calculation for the data volume of the beam status with hexadecimal transmis‐
sion of the beam status for an MLG-2 with 420 beams:
420/8 = 52.5, rounded up to 53 × 2 bytes = 106 bytes
9.5 Calculation examples for the total data volume
MLG05A-2095I10801 with 420 beams
16-bit format = active (required because the MLG-2 has more than 255 beams)
Data format = HEX
The following settings are configured:
•
Start character = STX (1 byte)
•
Separator = % (1 byte in each case)
•
Stop character 1 = ETX (1 byte)
•
No stop character 2 = (0 bytes)
•
Process data:
– System status (4 bytes)
– Beam status (106 bytes)
– Beam function LBB (4 bytes)
– Beam function FBB (4 bytes)
– Beam function NBB (4 bytes)
Calculation of the data volume for the beam status
420 beams/8 beams per data package = 52.5, rounded up to 53 × 2 bytes =
106 bytes
Total data volume:
1 Byte start character
+ 4 Byte system status
+ 1 Byte separator
+ 106 Byte beam status
+ 52 Byte separators in beam status
+ 1 Byte separator after the last beam status package
+ 4 Bytes LBB
+ 1 Byte separator
+ 4 Bytes FBB
+ 1 Byte separator
+ 4 Bytes NBB
+ 1 Byte stop character 1
= 180 Byte
The available data volume is sufficient to transmit the data from the example.
9
RS-485
114
O P E R A T I N G I N S T R U C T I O N S | MLG-2 Pro 8017460.ZIK1/2017-02-13 | SICK
Subject to change without notice