12.1 Sample Program
12.1 Sample Program
Use the PG_Stop function block. Either the deceleration stop or emergency stop can be
selected using the StopMethod input.
12.1.1 Deceleration Stop
This section describes a program example for making a deceleration stop using the PG_Stop
function block while the PG_MoveRelative function block is being executed.
● When the PG_Stop function block is executed with the StopMethod input parameter set to
FALSE while the motor is in operation, deceleration stop operation starts. The pulse output is
stopped when the speed is decelerated to the startup speed.
This operation is common to E-point control, P-point control, home Return, JOG operation
and JOG positioning operation.
● For pulser input operation, pulse output stops.
● For each function block that is being operated, the "CommandAborted" flag is set to TRUE,
causing the function block to terminate.
■
Pulse output diagram
12-2
WUME-GM1PG-01