
130
Gemini GV6K/GT6K Command Reference
FMCLEN
Master Cycle Length
Type
Following
Syntax
<a_><!>FMCLEN<r>
Units
r = master distance units (scalable)
Range
r = 0-999,999,999 (scalable with SCLMAS)
Default
0
Response
FMCLEN
*FMCLEN0
See Also
FMCNEW, FMCP, FOLEN, [ FS ], GOWHEN, [ PMAS ], SCLMAS, TFS,
TPMAS, WAIT
Product Rev
GT6K 6.0
GV6K 6.0
The
FMCLEN
command defines the length of the master cycle in user units. This value is scaled by the
SCLMAS
parameter. Numeric variables (
VAR
) can be used with this command. The initial value for
FMCLEN
is zero
(
FMCLENØ
), which means that the default master cycle length is the maximum internal size (4,294,967,296).
The concept of a master cycle may be useful when moves or other events must be initiated at certain master
positions in a repetitive cycle. By specifying a master cycle length, periodic actions may be programmed in
a loop or with subroutines which refer to cycle positions, even if the master runs continuously. You can
program the Gem6K drive to suspend program operation or delay moves until specified master cycle
positions. The master cycle length,
FMCLEN
, should be defined before the functions which wait for periodic
master cycle positions are used. An axis need not be in Following mode (
FOLEN1
) to utilize the concept of
a master cycle. However,
master positions will not be measured until a master has been assigned with
the
FOLMAS
command.
Example
(refer also to
FOLEN
example #2)
:
SCLMAS4000
; Set the master scale factor to 4000
FMCLEN3
; Set master cycle length to 3 user units
FMCNEW
Restart Master Cycle Counting
Type
Following
Syntax
<a_><!>FMCNEW<b>
Units
n/a
Range
b
=
0
(do
not
restart) or
1
(restart
immediately)
Default
n/a
Response
n/a
See Also
FMCLEN, FMCP, GOWHEN, [ NMCY ], [ PMAS ], TPMAS, TRGFN, WAIT
Product Rev
GT6K 6.0
GV6K 6.0
The
FMCNEW1
command restarts master cycle counting. This sets the master cycle position (
PMAS
) to the
value most recently specified with
FMCP
, and sets the master cycle number (
NMCY
) to zero. The master
cycle position and the master cycle number are set immediately, and program flow continues normally.
The function of the
FMCNEW1
command can be initiated with a trigger input by specifying a
TRGFNcx1
command. If the
FMCNEW1
command is used, master cycle counting is restarted immediately; if
TRGFNcx1
is used, the Gem6K drive will record the instruction to set the master cycle position when the specified
trigger occurs. In this case, the master cycle counting is restarted when the specified trigger is activated,
even though commands continue to execute and the master cycle counting continues.
FMCNEWØ
or
FMCNEW1
will remove the status of master cycle restart pending a trigger input (
TRGFNcx1
). In
the case of
FMCNEWØ
, no restart will occur, and the specified trigger will not cause a new cycle restart.
A new cycle automatically occurs (i.e., the master cycle position is set to zero, not the
FMCP
value), when
the master cycle length (
FMCLEN
) is reached, even if no
FMCNEW
command has been executed.
Example:
TPMAS
; Display master position: response is *TPMAS12.2
FMCNEW1
; Start new master cycle
TPMAS
; Display master position: response is *0
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...