Manual Operation
(JOG Operation)
10.4 Sample Programs
10.4.1 Sample Program (JOG Operation)
The operation for starting the JOG 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 state if the control of each axis can be started.
• Set the condition for the JOG operation (option), confirm the required start condition and
start the JOG operation.
• Write operation results in the unit memories (output control area).
(Note): The sample program on the next page is for activating the JOG operation of the axis number 1 for FP7 MC
Unit installed in the slot number 1. To simplify the explanation, the part related to the JOG 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 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.
JOG operation program
Set the following operations as necessary.
④
ⓐ
Changing the speed during the JOG operation, setting and switching the JOG inching operation.
ⓑ
Start the JOG operation (forward), start JOG operation (reverse).
Write flags to the output control area of the unit memories (UM) from arbitrary area (WR) where the
⑤
start conditions are written.
JOG operation start, JOG inching operation.
KEY POINTS
•
In the case of "JOG operation (Infinite rotation)", the unit operates by the
level signals of "JOG forward/reverse request".
•
The "JOG inching operation" starts at the leading edge of the "JOG
forward/reverse request".
•
It is possible to switch between "JOG operation (Infinite rotation)" and "JOG
inching operation" by turning ON/OFF the corresponding bit to the "JOG
inching operation request" area in the unit memories.
10-10