Parker Automation Gemini GV6K Command Reference Manual page 213

Servo drive/controller
Table of Contents

Advertisement

the
program will not be called again until after it has finished executing. After returning from the
ONP
program, the condition that caused the branch must evaluate false before another branch to the
program will be allowed.
Multi-Tasking: Each task has it own
Example:
DEF bigmov
; Define program bigmov
D20
; Sets move distance to 20 units
GO1
; Initiate motion
END
; End program definition
ONP bigmov
; Set ON program to bigmov
2ONIN.4-1
; When input #4 on I/O brick 2 is activated,
; GOSUB to the ONP program
ONCOND1000
; Enable ONIN condition
;
; Now that the ONP program named bigmov is defined, if input #4 becomes
; active during normal program operation, the program will GOSUB to
; the ONP program (bigmov).
ONUS
On a User Status Condition Gosub
Type
On Condition (Program Interrupt)
Syntax
<a_><!><%>ONUS<b><b><b>...<b><b> (16 bits)
Units
n/a
Range
b = 0 (disable), 1 (enable) or X (don't care)
Default
0
Response
ONUS:
*ONUS0000_0000_0000_0000
See Also
INDUSE, INDUST, ONCOND, ONP
The
command specifies the user status bit pattern, defined using the
ONUS
cause a branch to the ON program (
or program that the GOSUB branches to is selected by the ON program (
The
command must be enabled using the
ONUS
branch to the
program occurs,
ONP
executing, eliminating the possibility of recursive calls. After returning from the
status bit pattern specified by the
program, resulting from the
ONUS
Multi-Tasking: Each task has it own
Example:
INDUSE1
; Enable user status
INDUST1-5A
; User status bit 1 defined as axis status bit 5
INDUST2-3A
; User status bit 2 defined as axis status bit 3
3INDUST3-5J
; User status bit 3 defined as input 5 on I/O brick 3
INDUST4-14A
; User status bit 4 defined as axis status bit 14
2%INDUST16-2I
; User status bit 16 defined as system status bit 2 for task 2
DEF bigmov
; Define program bigmov
D20
; Sets move distance to 20 units
GO1
; Initiate motion
END
; End program definition
ONP bigmov
; Set ON program to bigmov
ONUSxxx1
; On user status bit #4 (axis status bit 14) GOSUB to
; the ONP program
ONCOND0100
; Enable ONUS condition
Program and its own set of On conditions.
ONP
). If the bit pattern occurs, a GOSUB is performed. The subroutine
ONP
command before any branching will occur. Once a
ONCOND
command will not call the
ONUS
command must evaluate false before another branch to the
ONUS
status bits, will be allowed.
Program and its own set of On conditions.
ONP
www.comoso.com
ONP
Product
GT6K
GV6K
command, which will
INDUST
) command.
ONP
program while the
ONP
ONP
program, the user
ONP
Command Descriptions
ONP
Rev
6.0
6.0
program is
ONP
211

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents