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
No.
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
DT104
Target speed (Hz)
K10000
K1 to K50000
DT106
Acceleration time (ms) K100
K1 to K32760
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".
Summary of Contents for FP0R Series
Page 1: ......
Page 6: ...iv ...
Page 14: ...xii ...
Page 15: ...Chapter 1 Functions and Restrictions of the Unit ...
Page 24: ...1 10 ...
Page 25: ...Chapter 2 Specifications and Functions of Control Unit ...
Page 38: ...2 14 ...
Page 39: ...Chapter 3 Expansion ...
Page 45: ...3 7 3 4 Terminal layout diagram Model No Terminal layout diagrams E8RS E8RM E16RS E16RM E8YRS ...
Page 48: ...3 10 ...
Page 49: ...Chapter 4 I O Allocation ...
Page 53: ...Chapter 5 Installation and Wiring ...
Page 73: ...Chapter 6 Preparation of USB Port ...
Page 77: ...6 5 5 Click Finish on the following screen to be displayed ...
Page 79: ...6 7 4 Double click on FP0R 5 Click Update Driver ...
Page 84: ...6 12 ...
Page 85: ...Chapter 7 Communication ...
Page 139: ...7 55 Sample program For Type II Use a program as below to directly specify a MODBUS address ...
Page 141: ...Chapter 8 High speed Counter Pulse Output and PWM Output Functions ...
Page 142: ...8 2 ...
Page 199: ...Chapter 9 Security Functions ...
Page 211: ...Chapter 10 Other Functions ...
Page 217: ...Chapter 11 Self Diagnostic and Troubleshooting ...
Page 227: ...Chapter 12 Precautions During Programming ...
Page 242: ...12 16 ...
Page 243: ...Chapter 13 Specifications ...
Page 254: ...13 12 ...
Page 255: ...Chapter 14 Dimensions and Others ...
Page 262: ...14 8 ...
Page 263: ...Chapter 15 Appendix ...
Page 344: ...15 82 15 7 ASCII Codes ...
Page 346: ......
Page 347: ......
Page 348: ......