Parker Automation Gemini GV6K Command Reference Manual page 212

Servo drive/controller
Table of Contents

Advertisement

ONIN
On an Input Condition Gosub
Type
On Condition (Program Interrupt)
Syntax
<a_!><%><@><B>ONIN<b><b><b>...<b><b>
Units
n/a
Range
b = 0 (disable), 1 (enable) or X (don't care)
Default
X
Response
ONIN:
*ONINXXXX_X
1ONIN:
*1ONINXXXX_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX_XXXX
See Also
INFNC, ONCOND, ONP, TIN
The
command specifies the input bit pattern which will cause a branch to the ON program (
ONIN
the input pattern occurs, a GOSUB is performed. The subroutine or program that the GOSUB branches to is
selected with the ON program (
The number of external inputs available varies by the configuration of I/O bricks used. Refer to page
details.
The
command must be enabled using the
ONIN
branch to the
program occurs, the
ONP
program is executing, eliminating the possibility of recursive calls. After returning from the
the input pattern specified by the
program, resulting from the
ONIN
Multi-Tasking: Each task has it own
condition is allowed per task. Therefore, only one I/O brick can be referenced in an
specific task.
Example:
DEF bigmov
; Define program bigmov
D20
; Set move distance to 20 units
GO1
; Initiate motion
END
; End program definition
ONP bigmov
; Set ON program to bigmov
2ONINxxx11xx1
; When inputs 4, 5, and 8 on I/O brick 2 are activated,
; GOSUB to the ONP program
ONCOND1000
; Enable ONIN condition
;
; Now that the ONP program named bigmov is defined, if inputs 4, 5, and 8 on
; I/O brick 2 become active during normal program operation, the program will
; GOSUB to the ONP program (bigmov).
ONP
On Condition Program Assignment
Type
On Condition (Program Interrupt)
Syntax
<a_><!><%>ONP<t>
Units
t = text (name of On Condition program)
Range
text name of 6 characters or less
Default
n/a
Response
ONP:
*ONP bigmov
See Also
DEF, END, ONCOND, ONIN, ONUS, ONVARA, ONVARB
The
command assigns the program to which programming will GOSUB when an ON condition is met.
ONP
The program must be defined (
must be specified before enabling the ON conditions (
message
*UNDEFINED LABEL
To unassign the program as the ON condition program, issue the
with the
command will accomplish the same thing.
DEL
Within the
program, the programmer is responsible for checking which ON condition caused the
ONP
branch, if multiple ON conditions (
210
Gemini GV6K/GT6K Command Reference
) command.
ONP
command before any branching will occur. Once a
ONCOND
command will not call the
ONIN
command must evaluate false before another branch to the
ONIN
inputs, will be allowed.
Program and its own set of On conditions. Only 1
ONP
) previous to the execution of the
DEF
ONCOND
will appear.
) have been enabled. Once a branch to the
ONCOND
www.comoso.com
Product
GT6K
GV6K
program while the
ONP
condition for a
ONIN
Product
GT6K
GV6K
command. The
ONP
ONP
). If
is not defined first, the error
ONP
command. Deleting the program
ONP CLR
program occurs,
ONP
Rev
6.0
6.0
). If
ONP
8
for
ONP
program,
ONP
ONP
ONIN
Rev
6.0
6.0
command

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents