Page 82
M4120170509EN
UI Robot Technology Co. Ltd.
UIM24102/04/08-IE
29.
QECη Set desired quadrature encoder’s position
Format:
QECη;
Description:
Set desired encoder positon to η.
η = - 2,000,000,000…-1, 0, 1 … + 2,000,000,000
。
ACK:
AA 00 B8 [Q0] [Q1] [Q2] [Q3] [Q4] FF
Comment:
B8
>> Message ID of desired encoder positon;
[Q0] ~ [Q4]
>> Received data 0 ~ 4
[Q0] ~ [Q4] is the converted value for desired encoder position. (32 bits)
(Figure 10-2)
Note:
The encoder counter records encoder pulses.
When the direction is positive, the counter increases; when the direction
is negative, the counter decreases. When ICFG.CW = 0, consider
clockwise as forword direction; when ICFG.CW = 1, consider
anticlockwise as forword direction.
Encoder counter can only be reset/ cleared under following situations:
-- Commanded by user instruction ORG
-- User preset sensor ORG event happens
Please also be aware:
-- Power Failure Protection.
Should a Power Failure situation happen, the
value of the encoder counter will be pushed into EEPROM and restored
when reboot next time. However, passive movement after power off
cannot be recorded.
-- For every slot, the encoder counter records 4 pulses. E.g., when
QEC=500, the encoder counter records 500*4 = 2000 pulses each turn.