EasyManua.ls Logo

Panasonic GM1 Series - Operation Check

Panasonic GM1 Series
166 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Parameter settings
PG_Stop parameter
Parameter Set value Setting range
StopMethod FALSE TRUE: Forced stop
FALSE: Deceleration stop
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(
UnitID:=1,
AxisNo:=1,
Enable:=TRUE,
bRegulatorOn:=TRUE);
IF PG_Power_0.Status = TRUE THEN
Process := 1;
END_IF
1://Execute the PG_MoveRelative
PG_MoveRelative_0(
UnitID:=1,
AxisNo:=1,
Execute:=TRUE,
Distance:= 10000,
Velocity:=10000,
AccDec:=10000);
//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
PG_Stop_0(
UnitID:=1,
AxisNo:=1,
Execute:=TRUE,
StopMethod:=FALSE); //Decelerate and stop
END_IF
END_CASE
12.1 Sample Program
WUME-GM1PG-01 12-3

Table of Contents

Other manuals for Panasonic GM1 Series

Related product manuals