Resuming Operation After Stop - Panasonic GM1 Series Reference Manual

Motion controller
Hide thumbs Also See for GM1 Series:
Table of Contents

Advertisement

Program (ST)
Declaration section
PROGRAM sample
VAR
Process :UDINT := 0;
PG_Power_0: PG_Power;
PG_MoveRelative_0: PG_MoveRelative;
PG_Stop_0: PG_Stop;
Stop: BOOL;
END_VAR
Implementation section
CASE Process OF
0://Servo On
PG_Power_0(
IF PG_Power_0.Status = TRUE THEN
END_IF
1://Execute the PG_MoveRelative
PG_MoveRelative_0(
//Changing the variable Stop to TRUE execute the PG_Stop.
//CommandAborted of PG_MoveRelative becomes TRUE and processing is i
nterrupted.
IF Stop = TRUE THEN
END_IF
END_CASE

12.1.3 Resuming Operation After Stop

This section describes a program example for executing the PG_MoveRelative function block,
making a stop using the PG_Stop function block, and then resuming the the PG_MoveRelative
function block.
WUME-GM1PG-01
UnitID:=1,
AxisNo:=1,
Enable:=TRUE,
bRegulatorOn:=TRUE);
Process := 1;
UnitID:=1,
AxisNo:=1,
Execute:=TRUE,
Distance:= 10000,
Velocity:=10000,
AccDec:=10000);
PG_Stop_0(
UnitID:=1,
AxisNo:=1,
Execute:=TRUE,
StopMethod:=TRUE);
12.1 Sample Program
//Forced stop
12-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Agm1pg04tAgm1pg04l

Table of Contents