368
Manual – IPOSplus®
24
"Jog mode" sample program
Assembler – Examples
24.3 "Jog mode" sample program
24.3.1 Characteristics
• Travel in two directions with binary inputs "Jog+/Jog-.
• Adjustable travel speeds and ramps.
• Endless travel possible.
• No reference travel required.
• Compliance with travel range limits (software limit switches).
• Automatic movement away from hardware limit switches.
Endless movement is possible in two directions using two binary inputs Jog+ (DI14) and
Jog- (DI15). No reference travel required. If the drive has been referenced and the soft-
ware limit switches set, travel only takes place within these limits. Movement only takes
place when there is a "1" signal at one of the jog terminals. The drive is moved away
from a hardware limit switch by entering a "1" signal at the RESET input (DI02).
24.3.2 Settings
The detailed configuration of the inputs/outputs and the variables used in the program
is documented in the remark section of the program source code.
Reference subroutine
==========================================
M20: ASTOP IPOS ENABLE
GO0 U,NW, ZP
M22: JMP LO I0000000000000001, M21
SET H319 = 0
BMOV H319.0 = H473.20
JMP H319 == 0 , M22
M21 : ASTOP TARGET POSITION
RET
------------------------------------------
Reference travel
Travel release
Reference travel, no wait, start at zero pulse,
Cancel reference travel
and the bit in the status word "IPOS Reference" = 0
(subroutine jog mode)
==========================================
M30: RET
M40: RET
------------------------------------------
Option: Subroutine (e.g. jog mode)
Jog CW
Jog CCW
See next example.
Main program: Hoist positioning
==========================================
M50: JMP LO I0000000001000000, M51
GOA WAIT #0 mm
M51: JMP LO I0000000010000000, M52
GOA WAIT #1000 mm
M52: JMP LO I0000000100000000, M53
GOA WAIT #2000 mm
M53: RET
------------------------------------------
END
Main program: Hoist positioning
If input DI10 is set, move to position 0 mm
If input DI11 is set, move to position 1000 mm
If input DI12 is set, move to position 2000 mm