Baldor mn1854 Power Screwdriver User Manual


 
Keypad Programming 6-19MN1854
Value: N/A
Units: N/A
Range: N/A
Allows conditional program execution based on an event. When the programmable event occurs, the
current program and move are interrupted and program execution begins at the predefined interrupt
program. The interrupt program can be defined as a GT or a GS. Defining the interrupt as a GS allows
program execution to return to the exact point in the original program where the interrupt occurred. The ON
command currently supports EndofTravel (EOT) as an event conditional.
After an ON event is defined, it is active in all user programs and need not be redefined except to change
the interrupt program type, number or name, or clear the event condition.
Example: Using ON to handle an EOT event.
[POWERUP]
ON
L,GT[ON EOT] [Goto [ON EOT] {on an EndofTravel input}
GT[HOME] {Home the machine}
[MAIN]
LP {Loop forever}
VE5 DA20 GO {Define move}
DA0 GO {Define move}
EB
[ON EOT]
IF(SA1)&256 {Check if EOT switch was hit (bit #9 in SA)}
VEI DA0.5 GO {Move off EOT switch}
GT[HOME] {Home the machine}
EB
VEI DA0.5 GO {Move off EOT+ switch}
GT[HOME] {Home the machine}
[HOME]
GH3 {Home}
GT[MAIN] {Jump to main loop}
ON
On Condition (On Event)
syntax ONn,GTx
ONn,GSx
ONn,0 Clear the event
n= On EOT Limit