
407
Appendix
24. Execution of Operation n Times
Description
Execute a specific operation n times.
Example of Use
The actuator repeats going back and forth between P1 and P2 10 times, after which the program ends.
Use a CPEQ command to compare the number of times the operation has actually been repeated, against
10.
It is assumed that home return has been completed.
Application Program
Reference
You can also perform the same operation using a DWEQ command.
Set a speed.
Clear a variable.
Move to P1
Move to P2.
Increment variable 1 by 1.
Check the number of times the
operation has been repeated.
Go to TAG1 if the number is
less than 10.
End of program
408
Appendix
25. Constant Pitch Feed Operation (for Linear Axes)
Description
Move the actuator at a specified pitch n times from a given reference point.
The pitch amount and number of movements are specified using variables in advance.
Flow Chart
Application Program
Start
Default setting
Start input
Movement
Pitch variable is
incremented
Offset process
Counter is
incremented
Specified number
reached?
End of program
Pitch amount (mm)
Reference point
(Number of feeds n)
Assign a number of times the
actuator will be fed (n = 4).
Assign a pitch (80 mm).
Clear a variable (counter).
Clear a variable (offset value).
Home return
Set a speed.
Wait for a start input.
Movement
Add the pitch to the offset
value.
X-axis offset process
Increment the counter variable
by 1.
Check if the actuator has been fed
the specified number of times.
If not, repeat a feed.
End of program
Reference
Pitch feed can also be performed
using MVPI/MVLI commands.
Example of Use
Use an OFST command to perform pitch feed.
Count the number of times the actuator has been fed by using
a variable as a counter.
The X-axis is used. The axis is fed at a constant pitch in the
positive direction.
Points
An OFST command is reflected only in movement commands.
The axis will not move only by executing an OFST command.
411
Summary of Contents for X-SEL PX
Page 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Page 2: ......
Page 8: ......
Page 14: ......
Page 410: ...383 Appendix 386 ...
Page 452: ...425 Appendix 5 428 ...
Page 559: ......