Specifications

Table Of Contents
A - 10
Appendix 2 Sample motion SFC
The sample program stops all motion control upon reception of emergency stop input,
and re-starts motion control when reset. This sample program also monitors the
dedicated positioning devices on the PLC side.
(1) Sample program functions
This sample program is provided with the following functions.
No. Item Contents
1 Monitor of dedicated positioning
device
Reflects the status of Q173CPU(N) and dedicated positioning device
(#2 machine) in the M2400 and following, and D0 and following of
QnHCPU (#1 machine).
2 Clock data reading Turns ON the clock data read request (M9028) so that the clock data is
set in the error history.
3 Emergency stop Turns ON the servo for all axes when the emergency stop input
assigned to PX0 is turned ON (emergency stop reset), and executes
motion control.
Stops the servo amplifier in an emergency state when the emergency
stop input is turned OFF and stops the motion control. The actual
output (PY) is also turned OFF.
4 Motion control Executes the motion control in each mode shown below according to
the status of PX1, PX2.
PX2:OFF PX1:OFF "JOG mode"
PX2:OFF PX1:ON "Manual pulse generator mode"
PX2:ON PX1:OFF Zero point return mode"
PX2:ON PX1:ON Program operation mode"
5 JOG mode Executes the following JOG operations when the signals PX3 to PX6
are turned ON.
PX3: 1-axis forward JOG
PX4: 1-axis reverse JOG
PX5: 2-axis forward JOG
PX6: 2-axis reverse JOG
6 Manual pulse generator mode Executes the following manual pulse generator operation.
Executes the manual pulse generator operation of 1-axis with
manual pulse generator P1.
Executes the manual pulse generator operation of 2-axis with
manual pulse generator P2.
7 Zero point return mode Executes the following zero point return.
When the PX3 is turned ON, the 1-axis is returned to the zero point.
When the PX4 is turned ON, the 2-axis is returned to the zero point.
8 Program operation mode Executes the following program operations.
Waits for 1,000ms when the PX3 is detected to change from OFF
to ON after the 1-axis is positioned to position the 2-axis.
Executes the in-position check when the PX4 is turned ON afte
the 1-axis and 2-axis positioned for linear interpolation to position
the 1-axis and 2-axis for linear interpolation, and to wait until the
PX4 is turned OFF.