Parker Automation Gemini GV6K Command Reference Manual page 214

Servo drive/controller
Table of Contents

Advertisement

ONVARA
On Variable 1 Condition Gosub
Type
On Condition (Program Interrupt)
Syntax
<a_!><%>ONVARA<i,i,i>
Units
See below
±999,999,999.99999999
Range
Default
+0.0,+0.0,+0.0
Response
ONVARA:
*ONVARA+0.0,+0.0,+0.0
See Also
ONCOND, ONP, ONVARB, VAR, VARI
The
command specifies the low and high values which will cause a branch to the ON program
ONVARA
(
). If the value of variable 1 is less than or equal to the first
ONP
GOSUB is performed. The subroutine or program that the GOSUB branches to is selected by the ON
program (
) command. If the third field is non-zero, integer variables (
ONP
comparison.
The
command must be enabled using the
ONVARA
a branch to the
program occurs, the
ONP
program is executing, eliminating the possibility of recursive calls. After returning from the
variable 1 must be reset to a value within the low and high values before another branch to the
program, resulting from the value of variable 1, 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
ONVARA0,12
; On VAR1 <= 0, or VAR1 >= 12 GOSUB to ONP program
ONCOND0010
; Enable ONVARA condition
ONVARB
On Variable 2 Condition Gosub
Type
On Condition (Program Interrupt)
Syntax
<a_><!><%>ONVARB<i,i,i>
Units
See below
±999,999,999.99999999
Range
Default
+0.0,+0.0,+0.0
Response
ONVARB:
*ONVARB+0.0,+0.0,+0.0
See Also
ONCOND, ONP, ONVARA, VAR, VARI
The
command specifies the low and high values which will cause a branch to the ON program
ONVARB
(
). If the value of variable 2 is less than or equal to the first
ONP
GOSUB is performed. The subroutine or program that the GOSUB branches to is selected by the ON
program (
) command. If the third field is non-zero, integer variables (
ONP
The
command must be enabled using the
ONVARB
a branch to the
program occurs, the
ONP
program is executing, eliminating the possibility of recursive calls. After returning from the
variable 2 must be reset to a value within the low and high values before another branch to the
program, resulting from the value of variable 1, 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
ONVARB0,12
; On VAR2 <= 0, or VAR2 >= 12 GOSUB to ONP program
ONCOND0001
; Enable ONVARB condition
212
Gemini GV6K/GT6K Command Reference
, or greater than or equal to the second
i
command before any branching will occur. Once
ONCOND
command will not call the
ONVARA
Program and its own set of On conditions.
ONP
, or greater than or equal to the second
i
command before any branching will occur. Once
ONCOND
command will not call the
ONVARB
Program and its own set of On conditions.
ONP
www.comoso.com
Product
GT6K
GV6K
) are used for the
VARI
program while the
ONP
ONP
program,
ONP
ONP
Product
GT6K
GV6K
) are used for the comparison.
VARI
program while the
ONP
ONP
program,
ONP
ONP
Rev
6.0
6.0
, a
i
Rev
6.0
6.0
, a
i

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents