3.107
EDH0162En1040 – 06/99
MM4005
RP — Repeat command line
Usage
IMM
PGM
MIP
Syntax
RPnn
Parameters
Description
nn
[int]
— Number of times to repeat command line.
Range
nn
—
1
to
2147385345.
Units
nn
— None.
Defaults
nn
Missing: 1.
Out of range: 1 or 2147385345 (forced in range)
Floating point: Decimal value truncated.
Description
This command is a flow control instruction that repeats the execution of a
command line
nn
number of times. It must be placed at the end of a com-
mand line that has to be repeated. The line must have at least one more
command on it, separated by a command separator.
If the
nn
parameter is missing or set to a value less than 1, the command
line is executed one time, similar to a
nn
value of 1.
NOTE
Any command placed on a line after RP is ignored, without issuing an
error.
NOTE
Be careful when using flow control commands, specially nested ones.
Avoid mixing different type of flow control commands on the same line.
As in other programming languages, improper loops and loop mixings
could generate undesirable results.
Returns
None.
Errors
R
—
Command cannot be at the beginning of a line.
Rel. Commands
WG
—
While variable is greater.
WH
—
While input is equal.
WL
—
While variable is less.
WY
—
While variable is different.
Example
3PA0 |
Move axis #3 to position 0.
2PR.1, WS, 3PA10, WS, 3PA0, WS,
RP20
|
Make a relative move of 0.1 units on axis #2, wait for all motion to
stop, move axis #3 to position 10, wait for all motion to stop, move
axis #3 back to 0, wait to stop; repeat the entire cycle 20 times.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание MM4005
Страница 360: ...Section 7 Servo Tuning Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 368: ...Section 8 Appendices Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 405: ...EDH0162En1040 06 99 8 36 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 406: ...Section 9 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...