Panasonic GM1 Series Reference Manual page 85

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

Advertisement

PG_Jog parameter
Parameter
Target speed: Velocity
[u/s]
Acceleration /
Deceleration: AccDec
2
[u/s
]
(Note 1)
Set each acceleration / deceleration time to 32767 ms or less.
Program (ST)
For forward rotation, set the JogForward input parameter and, for reverse rotation, set the
JogBackward input parameter.
The following shows a program to switch from forward rotation to reverse rotation.
Declaration section
PROGRAM sample
VAR
Process :UDINT := 0;
PG_Power_0: PG_Power;
PG_Jog_0: PG_Jog;
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_Jog with JogForward
PG_Jog_0(
2://Changing the variable Process to 2 stop the jog
PG_Jog_0(
3://Changing the variable Process to 3 reverses the jog
PG_Jog_0(
WUME-GM1PG-01
Set value
10000
10000
UnitID:=1,
AxisNo:=1,
Enable:=TRUE,
bRegulatorOn:=TRUE);
Process := 1;
UnitID:=1,
AxisNo:=1,
JogForward:=TRUE,
JogBackward:=FALSE,
Velocity:=10000,
AccDec:=10000);
UnitID:=1,
AxisNo:=1,
JogForward:=FALSE,
JogBackward:=FALSE);
UnitID:=1,
AxisNo:=1,
8.1 Sample Program
Setting range
0 to 4000000
(Note 1)
1 or more
8-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Agm1pg04tAgm1pg04l

Table of Contents