Parker Automation Gemini GV6K Command Reference Manual page 340

Servo drive/controller
Table of Contents

Advertisement

Example:
MC1
; Mode continuous
COMEXC1
; Enable continuous command mode
GO1
; Initiate motion
WAIT(IN=b1)
; Wait for input 1 to be active
S1
; Stop motion
WAIT(MOV=b0)
; Wait for motion complete
COMEXC0
; Disable continuous command execution mode
WHILE( )
WHILE Statement
Type
Program Flow Control; Conditional Branching
Syntax
<a_><!>WHILE(expression)
Units
n/a
Range
Up to 80 characters (including parentheses)
Default
n/a
Response
n/a
See Also
IF, JUMP, NWHILE, REPEAT, UNTIL, WAIT
The
command, in conjunction with the
WHILE
flow. The
command marks the beginning of the conditional statement, the
WHILE
the end. If the expression contained within the parenthesis of the
commands between the
WHILE
evaluates true. If the expression evaluates false, then program execution jumps to the first command after
the
. Up to 16 levels of
NWHILE
Programming order:
WHILE(expression) ...commands... NWHILE
Be careful about performing a
NOTE:
location within the same program will cause the next
within the previous
The
command should be used in this situation.
JUMP
All logical operators (
,
AND
OR
expression. There is no limit on the number of logical operators, or on the number of relational
WHILE()
operators allowed within a single
The limiting factor for the
WHILE()
command and expression cannot exceed 80 characters. For example, if you add all the letters in
WHILE()
the
command and the letters within the
WHILE
spaces, this count must be less than or equal to 80.
All assignment operators (
,
A
, etc.) can be used within the
VEL
Example:
WHILE(IN=b1X0)
; While onboard input 1 = 1, input 3 = Ø,
; execute commands between WHILE and NWHILE
T5
; Wait 5 seconds
TPE
; Transfer position of all encoders
NWHILE
; End WHILE statement
WHILE(1ANV<2.3)
; While analog channel 1's voltage is less than 2.3 volts,
; execute commands between WHILE and NWHILE
TPC
; Transfer commanded position
NWHILE
; End WHILE statement
338
Gemini GV6K/GT6K Command Reference
command, provide a means of conditional program
NWHILE
and
are executed, and continue to execute as long as the expression
NWHILE
commands may be nested.
WHILE ... NWHILE
between
GOTO
WHILE
statement, unless a
WHILE
NWHILE
,
), and all relational operators (
NOT
expression.
WHILE()
expression is the command length. The total character count for the
expression, including the parenthesis and excluding the
()
,
,
,
,
,
,
,
AD
AS
D
ER
IN
INO
MOV
expression.
WHILE()
www.comoso.com
NWHILE
command evaluates true, then the
WHILE
and
. Branching to a different
NWHILE
statement encountered to be nested
WHILE
command has already been encountered.
,
,
,
,
,
) can be used within the
=
>
>=
<
<=
<>
,
,
,
,
,
OUT
PC
PCE
PCMS
PE
PER
Product
Rev
GT6K
6.0
GV6K
6.0
command marks
,
,
,
,
,
SS
TIM
US
V

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents