Parker Automation Gemini GV6K Command Reference Manual page 211

Servo drive/controller
Table of Contents

Advertisement

Example:
WHILE(IN=b1X0)
; While input 1 = 1, input 3 = 0, execute commands between WHILE & NWHILE
T5
; Wait 5 seconds
TPE
; Transfer position of encoder
NWHILE
; End WHILE statement
ONCOND
On Condition Enable
Type
On Condition (Program Interrupt)
Syntax
<a_><!><%>ONCOND<b><b><b><b>
Units
n/a
Range
b = 0 (disable), 1 (enable) or X (don't change)
Default
0
Response
ONCOND:
*ONCOND0000
See Also
FSHFD, ONIN, ONP, ONUS, ONVARA, ONVARB, [ SS ], TSS
The
command enables the
ONCOND
expressions specified in the
ONIN
If any of the expressions ever evaluate true, a GOSUB will be made to the
,
,
,
, and
ONP
ONIN
ONUS
ONVARA
defined first, the error message
: First
=
ONCONDbbbb
b
ONIN
Second
=
b
Third
=
b
ONVARA
Fourth
=
b
ONVARB
When ON conditions WILL NOT interrupt immediately: These are situations in which an ON
condition does not immediately interrupt the program in progress. However, the fact that the ON condition
evaluated true is retained, and when the condition listed below is no longer preventing the interrupt, the
interrupt will occur.
• While a
statement is in progress
WAIT
• While a time delay (
• While a program is being defined (
• While a pause (
) is in progress
PS
• While a data read (
DREAD
• While motion is in progress due to
command execution mode is disabled (
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
2ONINxxx1
; 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).
,
,
ONIN
ONUS
ONVARA
,
,
, and
ONUS
ONVARA
ONVARB
should be defined before enabling the On Condition. If
ONVARB
will appear.
*UNDEFINED LABEL
Enable
Enable
ONUS
Enable
Enable
) is in progress
T
)
DEF
,
, or
) is in progress
DREADF
READ
,
,
GO
GOWHEN
COMEXCØ
Program and its own set of On conditions.
ONP
www.comoso.com
, and
commands. When enabled, the
ONVARB
commands will be continuously evaluated.
program/subroutine.
ONP
,
,
, or
and the continuous
HOM
JOY
JOG
PRUN
).
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
is not
ONP
209

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents