234
Gemini GV6K/GT6K Command Reference
PLOOP
Beginning of Loop, Compiled Motion
Type
Compiled Motion
Syntax
<a_>PLOOP<i>
Units
i
=
number of times to loop
Range
0-2,147,483,647 (2
31
-1)
0 = infinite loop
Default
n/a
Response
No response; instead starts loop for compiled motion
See Also
GOBUF, PCOMP, PLN, PRUN, PUCOMP
Product Rev
GT6K 6.0
GV6K 6.0
The
PLOOP
command specifies the beginning of a profile loop. All subsequent segments defined between
the
PLOOP
and
PLN
commands are included within that loop. The
PLOOP
value specifies the number of
loops to be executed. If that number is a zero or blank, then the loop will be executed infinitely. The
PLOOP
command can be nested up to four levels deep within a program
.
When using compiled loops (
PLOOP
and
PLN
), the last segment within the loop must end at zero velocity or
there must be a final
GOBUF
segment placed outside (after) the loop. Otherwise, an error will result when
the profile is compiled. The error is “
ERROR: MOTION ENDS IN NON-ZERO VELOCITY
”.
The
PLOOP
command will consume one segment of compiled space
.
Example:
DEF prog1
; Begin definition of prog1
V1
; Set velocity to 1 unit/sec
D1000
; Set distance to 1000 units
GOBUF1
; Segment of motion sent to buffer
PLOOP3
; Start loop of the subsequent move profile
V10
; Set velocity to 10 units/sec
D25000
; Set distance to 25000 units
GOBUF1
; First segment within loop sent to buffer
V2
; Set velocity to 2 units/sec
D1000
; Set distance to 1000 units
GOBUF1
; Second segment of motion within loop sent to buffer
V1
; Set velocity to 1 unit/sec
D25000
; Set distance to 25000 units
GOBUF1
; Third segment within loop sent to buffer
PLN1
; Close loop
V.5
; Set velocity to 0.5 units/sec
D100
; Set distance to 100 units
GOBUF1
; Segment of motion sent to buffer (outside loop)
END
; End definition of prog1
PCOMP prog1
; Compile prog1
PRUN prog1
; Execute prog1
[ PMAS ]
Current Master Cycle Position
Type
Following and Assignment or Comparison
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
FMCNEW, FMCP, FOLMAS, FOLMD, [ FS ], GOWHEN, [ PCMS ], SCALE,
SCLMAS, TPMAS, TFS
Product Rev
GT6K 6.0
GV6K 6.0
The
PMAS
operator is used to assign the master position register value to a variable, or to make a
comparison against another value. This value may be used for subsequent decision making, or for recording
the cycle position corresponding to some other event.
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...