Manual – IPOSplus®
371
24
"Jog mode" sample program
Assembler – Examples
Program branch distributor
==========================================
SETINT ERROR M10
M100: JMP LO I0001000000000000, M101
CALL M20
M101: JMP LO I0000010000000000, M102
CALL M30
M102: JMP LO I0000100000000000, M103
CALL M40
M103: JMP UNCONDITIONED , M100
------------------------------------------
Program branch distributor
Activate interrupt routine for hardware limit switch pro-
cessing reset/move clear of limit switch
DI16 = 1
→
Reference travel
DI15 = 1
→
Jog CW
DI14 = 1
→
Jog CCW
Subroutine/move clear of limit switch
==========================================
M10: JMP HI I0000000000110000, M1
M3: JMP HI I0000000000110000, M2
ASTOP IPOS ENABLE
JMP UNCONDITIONED , M3
M2: ASTOP TARGET POSITION
M1 : RET
------------------------------------------
Reset/move clear of limit switch
If there is no contact with the limit switch (DI05/DI06 LS
CW/CCW), return to branch distributor. If it has, then
unlock travel and wait until drive has moved clear of limit
switch (parameterized "Reset" input function DI02). Then
stop drive by setting target position to current position.
Reference subroutine
==========================================
GO0 U,NW, ZP
M20: ASTOP IPOS ENABLE
M22: JMP LO I0000000000000001, M21
SET H309 = 0
BMOV H309.0 = H473.20
JMP H309 == 0 , M22
M21 : ASTOP TARGET POSITION
RET
------------------------------------------
Reference travel
Travel release
Reference travel, do no wait, start at zero pulse as long as
"Controller inhibit" = 0
and the bit in the status word "IPOS Reference" = 0
Subroutine jog mode
==========================================
Jog mode (query: Is software limit switch active)
------------------------------------------
M35 : SETSYS POS.SPEED C(C)W = H310
SETSYS POS. RAMP = H312
SET H319 = 0
BMOV H319.0 = H473.20
JMP H319 == 0 , M36
SET H319 = H496
OR H319 ¦ H497
JMP H319 == 0 , M36
SET H319 = 1
SET H317 = H496
SET H318 = H497
M36 : RET
Jog mode
Query: Is software limit switch active
Set velocity
Set ramp time
Query: has the axis been referenced (software limit switch
active)
Query: both software ranges = 0 (software limit switch not
active)
if software limit switch active, set flag H319=1
and load jog travel variables (H317) with the software
travel ranges (system variables H496 and H497)
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n