User manual

Highlevel Instructions
3 510
Sample program4: Trapezoidal control type 1, with change of speed
( DF ) F1 DMV, H10010000, DT0
F1 DMV, K1000, DT2
F1 DMV, K25000, DT4
F1 DMV, K600, DT8
F1 DMV, K400, DT6
F1 DMV, K100000, DT10
R0
F171 SPDH, DT0, K0
R1
( DF ) F1 DMV, K20000, DT4
R2
50kHz
25kHz
1kHz
R1
200ms
300ms 300ms
400ms
R2
Time
Frequency
Change of speed
Deceleration stop
Output pulse
number
100,000
Pulse output instruction flag
When changing the target value,
keep the trigger ON.
Data table
DT0
Control information
Trapezoidal control
Incremental CW/CCW
DT2
Initial speed
(Hz)
1000Hz
DT4
Target speed
(Hz)
25000Hz
DT6
Acceleration time
(ms)
600ms
Acceleration time up to 50kHz
DT8
Deceleration time
(ms)
400ms
Deceleration time from 50kHz
DT10
Target value
(No. of pulses)
100,000 pulses
Flag conditions
Error flag (R9007):
Error flag (R9008):
Turns on when the area specified using the index modifier exceeds the limit.
Turns on when n is out of the specified range.
Turns on when each data of [S,S+1] to [S+4,S+5] is out of the specified
range.
Turns on when [S+2,S+3]>[S+4,S+5].
Turns on when [S10,S+11] is out of the specified range.
Turns on when the pulse output has not been set by the system register.
Turns on when the interrupt execution has been specified for executing the
instruction in the main program.
FP0R