UI Robot Technology Co. Ltd.
M4220170607EN
Page 105
Miniature Integrated Stepper Motor Controller(
Closed-loop
)
43. STP
η
Displacement Control
Format:
STP
;
Description:
Set the desired incremental displacement, i.e. the displacement relative
to current position
= - 2147483647 ~ + 2147483647 (signed integer)
ACK:
AA [Controller ID] B6 [P0] [P1] [P2] [P3] [P4] FF
Comment:
B6
>> The message ID of STP
;
[P0] ~ [P4]
>> Received data 0 ~ 4
[P0] ~ [P4] is the converted value for the desired motor displacement (32
bits) ( Figure10-2 )
Note:
Displacement is essentially defined as counts of the pulse or encoder
counter.
Actual pulse sended to motor is controlled by displacement counter. The
actual motor displacement is also relative to the micro-stepping
resolution or encoder resolution.
If an STP0; instruction is received before the former STP instruction is
completed, UIM242 will execute the current instruction and stop motor.
The former STP instruction is regarded as being completed. Meanwhile,
system will shift from PT mode to VT mode.
If an STP instruction is received while the motor is already running, the
former steps will not be counted in the displacement of current STP
instruction.
Example:
For a 1.8
°
stepper motor, if STP = 200 pulse;
User sent: STP200;
If MCS=1, motor rotation angle = 1.8 * 200 = 360
°
If MCS=16, motor rotation angle = 1.8 * 200 / 16 = 22.5
°