CPEN-1F1BS-202012 2D

LR-1F/1BS Communication data protocol
CPEN-1F/1BS-202012
1
1. Type of Connector
1.1 Connector: RJ-45 standard internet connector
1.2 Basic protocol: UDP/IP standard internet protocol. Data are in little-endian format, lower
byte first
2. Data Packet Format
2.1. General
The total length of a data frame is 1240 bytes, including:
Frame header: 40 bytes
Data block: 150 x 8 = 1,200 bytes
2.2. Header
Definition of Frame Header
Offset
Length
Description
0
4
ID, it is always 0xFEF0010F
4
2
Protocol version code, the current code is 0x0200
6
1
Distance scale, distance = readout data x distance scale
7
3
Brand name code, use capital letters and digits. Using "\0" for missing
code
10
12
Commercial type code: ended with "\0"
22
2
Internal type code
24
2
Hardware version
26
2
Software version
28
4
Time stamp: unit ms, presenting hour, minute, second, millisecond with
24 hours cycle
32
2
Bit[14:0]: Rotation rate
Bit15:Rotation direction(0: clockwise, 1: counter clockwise)
34
1
Safe zone status,same as the hardware INPUT/OUTPUT
BIT[3:0]:Same as OUTPUT[3:0],
BIT[7:4]:Same as INPUT[3:0]
35
1
Error status. A corresponding bit of “1” indicates an error
BIT0:Motor fault,BIT1:Abnormal voltage,BIT2:Temperature fault
36
4
Reserved (TBD)