8-38
Sample program: Trapezoidal control Type 0 (F171)
The explanation below shows the case that pulses are output from Y0 with the following conditions;
Initial speed: 1 kHz, Target speed: 10 kHz, Acceleration time: 100 ms, Deceleration time: 1000 ms,
Movement amount: 30000 pulses.
Timing chart
Data table
Data
register
Setting item (Unit) Example of sample program Settable range
DT100 Control code
Type 0
Incremental
CW/CCW
H1000 0000
Set according to the control code
on the next page.
DT102 Initial speed (Hz) K1000 K1 to K50000
DT108 Deceleration time (ms) K1000 K1 to K32760
DT110 Target value (pulses) K30000
K-2,147,483,648 to
K+2,147,483,647
Note)
1. Each setting item occupies 2-word data registers.
2. For type 0, the time from the initial speed to the target speed is specified as acceleration time or
deceleration time.
For the details, refer to "8.4.17 Difference in Acceleration/Deceleration Characteristics Between
Instructions".