■
Parameter Settings
Parameters for the pulse output unit (Pulse_4Axes parameters)
Set from the GM Programmer. Double-click "Slot*_Pulse_4Axes (AGM1PG)" in the device
pane.
Parameter Set value Setting range
PulseInputMode (Pulse
input mode)
0: 2-phase input 0: 2-phase input
1: Direction distinction input
2: Individual input
PulseInputCountMultipli
cation (Pulse input
transfer multiple)
2: x4 0: x1
1: x2
2: x4
PulseInOutMultiplicatio
n (Pulser input, pulse
output transfer multiple)
0: x1 0: x1
1: x2
2: x5
3: x10
4: x50
5: x100
6: x500
7: x1000
PulseOutputMode
(Pulse output mode)
0: Pulse / Sign 0: Pulse / Sign
1: CW / CCW
PG_Pulser parameter
Parameter Set value Setting range
Target speed: Velocity
[u/s]
10000 0 to 4000000
■
Program (ST)
Declaration section
PG_Power;
PG_Pulser_0: PG_Pulser;
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_Pulser
PG_Pulser_0(
11.1 Sample Program
WUME-GM1PG-01 11-3