Sample Program
FP
∑
Positioning Unit
18-6
18.1.2 Positioning for 2 Axes (Linear Interpolation Program)
Unit configuration
An overview of a sample program
This sample program uses the absolute method.
1. The current absolute position is read into the data table reads.
2. The distance from the current position to the target position (4000, 3000) is calculated.
3. The proportions of the X component and Y component included in the distance are calculated
individually.
4. E point control is initiated simultaneously for the X and Y axes, the start up speed and target speed
are output as the respective proportions, and linear interpolation is carried out.
Because an error occurs if a startup is applied to an axis for which the target speed is 0 pps, an internal
flag is used and the startup conditions are specified.
Items to be set for the program
Data
Linear component
X axis component
Y axis component
Target position (absolute)
(X, Y)
X*
Y*
Current position (absolute)
(x, y)
x
y
Movement distance
Lx=X-x Ly=Y-y
startup speed
VS*
target speed
Vt*
Acceleration/deceleration
time
Ac* Acx=Ac
Acy=Ac
For items marked with an asterisk (*), the user may specify any desired value. Other items are handled
through operation in the sample program.
Reference:
Calculation of the linear movement distance
Содержание FPG Series
Страница 1: ......
Страница 12: ......
Страница 17: ...Chapter 1 Functions of Unit and Restrictions on Combination ...
Страница 18: ...Fanctions of FP Σ Positioning Unit FPΣPositioning Unit 1 2 ...
Страница 24: ...Fanctions of FP Σ Positioning Unit FPΣPositioning Unit 1 8 ...
Страница 25: ...Chapter 2 Parts and Specifications ...
Страница 26: ...Parts and Specifications FP Positioning Unit 2 2 ...
Страница 29: ...Chapter 3 Wiring ...
Страница 30: ...Wiring FP Positioning UNit 3 2 ...
Страница 44: ...Wiring FP Positioning UNit 3 16 ...
Страница 45: ...Chapter 4 Confirming the Unit Settings and Design Contents ...
Страница 46: ...Confirming the Unit Settings and Design Contents FP Positioning Unit 4 2 ...
Страница 61: ...Chapter 5 Power ON and OFF and Booting the System ...
Страница 62: ...Turning the Power ON and OFF and Booting the System FP2 positioning Unit 5 2 ...
Страница 70: ...Turning the Power ON and OFF and Booting the System FP2 positioning Unit 5 10 ...
Страница 71: ...Chapter 6 E Point Control Single Speed Acceleration Deceleration ...
Страница 83: ...Chapter 7 P Point Control Multi Stage Acceleration Deceleration ...
Страница 98: ...P Point Control Multi Stage Acceleration Deceleration FP Positioning Unit 7 16 ...
Страница 99: ...Chapter 8 JOG Operation ...
Страница 113: ...Chapter 9 JOG Positioning Operation ...
Страница 114: ...JOG Positioning Operation FP Positioning Unit 9 2 ...
Страница 129: ...Chapter 10 Home Return ...
Страница 130: ...Home Return FP2 Positioning Unit 10 2 ...
Страница 146: ...Home Return FP2 Positioning Unit 10 18 10 4 Action of the I O Flag Before and After a Home Return Operation ...
Страница 155: ...Chapter 11 Pulser Input Operation ...
Страница 167: ...Chapter 12 Deceleration Stop and Forced Stop ...
Страница 168: ...Deceleration Stop and Forced Stop FP2 Positioning Unit 12 2 ...
Страница 174: ...Deceleration Stop and Forced Stop FP2 Positioning Unit 12 8 ...
Страница 175: ...Chapter 13 Feedback Counter ...
Страница 176: ...Feedback Counter FP2 Positioning Unit 13 2 ...
Страница 185: ...Chapter 14 Precautions Concerning the operation and Programs ...
Страница 186: ...Precautions Concerning the Operation and Programs FP Positioning Unit 14 2 ...
Страница 192: ...Precautions Concerning the Operation and Programs FP Positioning Unit 14 8 ...
Страница 193: ...Chapter 15 Operation if an Error Occurs ...
Страница 194: ...Operation if an Error Occurs FP Positioning Unit 15 2 ...
Страница 207: ...Chapter 16 Specifications ...
Страница 208: ...Specifications FP Positioning Unit 16 2 ...
Страница 217: ...Chapter 17 Dimensions and Driver Wiring ...
Страница 218: ...Dimensions and Driver Wiring FP2 Positioning Unit 17 2 ...
Страница 219: ...Dimensions and Driver Wiring FP2 Positioning Unit 17 3 17 1 Dimensions ...
Страница 229: ...Chapter 18 Sample Program ...
Страница 230: ...Sample Program FP Positioning Unit 18 2 ...
Страница 233: ...FP Positioning Unit Sample Program 18 5 Program ...
Страница 238: ......
Страница 239: ......
Страница 240: ......