8.4 Sample Programs
8.4.1 Sample Programs (E-point, C-point and C-point Controls)
The operation for starting the positioning operation is mainly divided into five steps on a user
program.
• Read flags stored in the unit memories (input control area).
• Control the servo ON/OFF.
• Check the condition if the control of each axis can be started.
• Set positioning table numbers, check the conditions, and start the positioning operation.
• Write operation results in the unit memories (output control area).
(Note): The sample program on the next page is for activating the positioning operation with the table number 1 of the
axis number 1 for the FP7 MC Unit installed in the slot number 1. To simplify the explanation, the part related to
the positioning operation is extracted.
Contents of sample program
Mark
Description
Read flags indicating states from the input control area of the unit memories (UM) to arbitrary areas
(WR).
①
Read flags such as connection confirmation flag, servo lock confirmation flag, busy flag, and error
flag.
②
Servo ON/OFF control program
③
Check required conditions and replace it with the start enabled flag (R110) in the program.
Positioning operation start program
ⓐ
Set the repeat count as necessary.
④
ⓑ
Specify positioning table numbers.
ⓒ
Start the positioning operation.
Write flags to the output control area of the unit memoires (UM) from arbitrary area (WR) where the
⑤
start conditions are written.
Start the positioning operation.
8.4 Sample Programs
8-29