![Danaher Motion B8961 Operator'S Manual Download Page 86](http://html1.mh-extra.com/html/danaher-motion/b8961/b8961_operators-manual_504870086.webp)
B8961 and B8962 User Manual
84
ON
ON Command (On Event)
syntax - ONn, GTx, ONn, GSx, ONn,0
Units:
n/a
Range:
n/a
Default:
n/a
The ON command allows the user to define conditional program execution based
on the occurrence of a certain event.When the programmable event occurs,the
current program and move are interrupted and program execution begins at the
predefined interrupt program.The inter rupt 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 cur-
rently supports EOT as an e vent conditional.
The syntax for defining an e vent and interrupt program number and type is
ONn,GTx or ONn,GSx where n is the event type and x is the interrupt program
number or name:
n:
L
On End of Travel Limit
The syntax for clearing a pr eviously defined event conditional is ONn,0 where n is
the event type as listed above and 0 (zero) is the clear event designator.
Once an ON e vent has been defined,it is active in
all
user programs and need not
be redefined unless the user wishes to change the interrupt program type, number
or name,or clear the event condition.
Example:
Using ON to handle an EOT event
[POWERUP]
ONL,GT[ON EOT]
{Goto [ON EOT]on an end of travel input}
GT[HOME]
{Home the machine}
[MAIN]
LP
{Loop infinitely}
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)}
VE1 DA0.5 GO
{Move off EOT- switch}
GT[HOME]
{Home the machine}
EB
VE1 DA-0.5 GO
{Move off EOT+ switch}
GT[HOME]
{Home the machine}
[HOME]
GH3
{Home}
GT[MAIN]
{Jump to main loop}
Summary of Contents for B8961
Page 111: ...109 Chapter 7 Programming with Serial Communication...
Page 132: ...B8961 and B8962 User Manual 130...
Page 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Page 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Page 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Page 156: ...B8961 and B8962 User Manual 154...