4 Types and functions of operations
−
36
−
4.12 Reading current positioning data and alarm code
(common to the controller and driver modes)
This function can be used to read the current position and alarm codes as binary data. It takes 0.5 to 1 second
to read data.
Output data format (Total 56 bits)
Current positioning data: 32 bits + Status: 8 bits + Alarm code: 8 bits + Checksum: 8 bits
How to read output data
Example: When the current position is 123.45 mm (4.860 in.), and an emergency stop alarm (Err68) is present
0000 0000 0000 0000 0011 0000 0011 1001 0000
0000 0110
1000 1101
0001
Current positioning data
Status
Alarm
Checksum
•
Current positioning data (32 bits)
These values indicate the current position of the motorized actuator.
The current position is obtained by converting the current position data to a decimal number, and then
dividing the decimal number by 100.
∗
If
SPRM4G
,
PWAM8J
and
ESR
series is combined, the decimal number is divided by 1000.
= 12345 (decimal)
0000 0000 0000 0000
0011
0000
0011
1001
12345
100
= 123.45 mm (4.860 in.)
(Current positioning data)
•
Status (8 bits)
These bits indicate the controller status.
Different information is assigned to each bit.
Status = 000
0
0
0
0
0
⑥
⑤
④
③
②
①
①
bit 0: Subsystem overflow
②
bit 1: Overspeed during backup
③
bit 2: Absolute position loss
④
bit 3: Insufficient ABS battery voltage
⑤
bit 4: Battery not connected
⑥
bit 5 to 7: Not defined (always 0)
•
Alarm code (8 bits)
A code corresponding to each alarm is output.
When an alarm occurs, these bits will be displayed on the pendant as an error code.
The bits are displayed as a hexadecimal number on the pendant.
Example: Emergency stop alarm (Err68)
Alarm code = 0110 1000 = 68 (hexadecimal)
•
Checksum (8 bits)
The checksum provides information based on which the controller checks if the correct data has been read.
The total 48 bits including the current position, status and alarm are divided by eight bits, and the six 8-bit
sets are then added up. If the lower eight bits of this sum are the same as the checksum value of output data,
the correct data has been read.
Example: 0000 0000 + 0000 0000 + 0011 0000 + 0011 1001 + 0000 0000 + 0110 1000
= 1101 0001
Содержание EZ limo ESMC-A2
Страница 92: ......