Parker Automation Gemini GV6K Command Reference Manual page 251

Servo drive/controller
Table of Contents

Advertisement

REPEAT
Repeat Statement
Type
Program Flow Control or Conditional Branching
Syntax
<a_><!>REPEAT
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
JUMP, UNTIL
The
command, in conjunction with the
REPEAT
flow. The
command marks the beginning of the conditional statement. The commands between the
REPEAT
and the
command are executed at least once. Upon reaching the
REPEAT
UNTIL
expression contained within the
is redirected to the first command after the
after the
command is executed.
UNTIL
Up to 16 levels of
REPEAT ... UNTIL( )
NOTE:
Be careful about performing a
location within the same program will cause the next
within the previous
The
command should be used in this case.
JUMP
All logical operators (
,
AND
OR
expression. There is no limit on the number of logical operators, or on the number of relational
UNTIL
operators allowed within a single
The limiting factor for the
UNTIL
command and expression cannot exceed 80 characters. For example, if you add all the letters in the
UNTIL
command and the letters within the
UNTIL
spaces, this count must be less than or equal to 80.
All assignment operators (
,
A
,
, etc.) can be used within the
V
VEL
Example:
REPEAT
; Beginning of REPEAT ... UNTIL( ) loop
GO1
; Initiate motion
VAR1=VAR1+1
; Increment variable 1 by 1
UNTIL(VAR1=12)
; Repeat loop until variable 1 = 12
RESET
Reset
Type
Communication Interface
Syntax
<a_><!>RESET
Units
n/a
Range
n/a
Default
n/a
Response
RESET:
(power-up message is displayed)
See Also
DRESET, RFS, STARTP, TAS, TASX, TSTAT, TREV
The
command affects the Gem6K drive the same as cycling power, or activating the hardware Reset
RESET
input (pin 3 on the
DRIVE I/O
configuration parameters are retained in non-volatile memory; however, all previously entered command
values (not saved in programs or variables) will be reset to factory default values.
NOTE: After sending the
RESET
power-up message before communicating with the Gem6K.
command, provide a means of conditional program
UNTIL
command is evaluated. If the expression is false, the program flow
UNTIL
command. If the expression is true, the first command
REPEAT
commands may be nested.
between
GOTO
REPEAT
statement, unless an
REPEAT
,
), and all relational operators (
NOT
expression.
UNTIL
expression is the command length. The total character count for the
expression, including the parentheses and excluding the
()
,
,
,
,
,
,
,
AD
AS
D
ER
IN
INO
MOV
expression.
UNTIL()
connector). The drive's programs, variables, scaling parameters, and motor
or
command to the Gem6K, you must wait until you see the
!RESET
www.comoso.com
UNTIL
and
. Branching to a different
UNTIL
statement encountered to be nested
REPEAT
command has already been encountered.
UNTIL
,
,
,
,
,
) can be used within the
=
>
>=
<
<=
<>
,
,
,
,
,
OUT
PC
PCE
PCME
PCMS
PE
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
command, the
,
,
,
,
,
PER
SS
TIM
US
Product
Rev
GT6K
6.0
GV6K
6.0
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents