
9 Application Instructions API 150-199
DVP-PLC Application Manual
9-37
11. Programming example of using step ladder instruction (STL):
M1002
M1000
X4
1
200ms--D1343
MOV
K200
D1343
M1334
M1346
SET
S0
SET
Y5
SERVO On control
Stop
Y0 pulse output pauses
With clear signal output
Valid zero return
Settings of accel/decel time
※1. If the accel./decel. time (D1343) of CH1 can be default setting, (100ms) this program step can be ignored.
X7
RST M10
RST M12
RST M13
SET S20
X10
RST M12
RST M13
SET S21
X11
RST M12
RST M13
SET S22
X12
RST M12
RST M13
SET S23
M10
X13
RST M12
RST M13
SET S24
M10
2
2
S
S0
JOG (+)
Zero
return
JOG (-)
Forward
Positioning
Backward
Positioning
Zero
return
completed
fl a g
Zero
return
completed
fl a g
Reset zero point return completed flag
Reset forward positioning completed flag
Reset backward positioning completed flag
Drive zero return (S20)
Reset forward positioning completed flag
Reset backward positioning completed flag
Drive JOG(+) (S21)
Reset forward positioning completed flag
Reset backward positioning completed flag
Drive JOG(-) (S22)
Reset forward positioning completed flag
Reset backward positioning completed flag
Drive forward positioning (S23)
Reset forward positioning completed flag
Reset backward positioning completed flag
Drive backward positioning (S24)
※2. The max. traveling distance of a JOG operation equals to the max. number of output pulses
(-2,147,483,648 ~ +2,147,483,647) of API 158 DDRVI instruction. Please re-execute JOG of the traveling
distance exceeds the range.
Commenti su questo manuale