Command Descriptions
307
TPCME
Transfer Captured Master Encoder Position
Type
Transfer
Syntax
<a_><!>TPCME
Units
n/a
Range
n/a
Default
n/a
Response
TPCME *TPCME+0
See Also
INFNC, MEPOL, MESND, [ PME ], [ PCME ], [ PCMS ], PMECLR,
PMESET, TPME, TPCMS
Product Rev
GT6K 6.0
GV6K 6.0
Use the
TPCME
command to display the current captured master encoder position. The master encoder is
connected to the connector labeled “Master Encoder.”
Syntax
:
VARn=PCME
where
n
is the variable number; or
PCME
can be used in an expression such as
IF(PCME>2345Ø)
.
About Position Capture
: The master encoder position can be captured only by the Master Trigger input
(input #5), and only when that input is defined as a “trigger interrupt” input with the
INFNC5-H
command
(see
INFNC
command). When the “trigger interrupt” input is activated (active edge), the master encoder
position is captured and the position is available through the use of the
PCME
operator and the
TPCME
display command.
Position Capture Status, Longevity of Captured Position
: Use the
TTRIG
and
TRIG
commands to
ascertain if a trigger interrupt input has been activated.
TTRIG
displays the status as a binary report, and
TRIG
is an assignment/comparison operator for using the status information in a conditional expression
(e.g., in an
IF
statement). Once the captured master encoder position value is displayed with the
TPCME
command,
TTRIG
/
TRIG
status bit #5 is cleared; but the position information remains available until it is
overwritten by a subsequent position capture from the master trigger input.
Position Capture Accuracy
: The master encoder position capture accuracy is ±1 encoder count.
Scaling and Position Offset
: The
TPCME
value is always in master encoder counts; it is never scaled. If
you issue a
PMESET
(establish absolute position reference) command, any previously captured master
encoder positions will be offset by the
PMESET
command value.
TPCMS
Transfer Captured Master Cycle Position
Type
Transfer
Syntax
<a_><!>TPCMSc
Units
c = trigger input letter (A, B or M)
(Reported value represents master counts, scalable by SCLMAS)
Range
n/a
Default
n/a
Response
TPCMSA *0
See Also
ENCCNT, FOLMAS, INFNC, [ PCMS ], PSET, SCALE, SCLMAS, SFB,
TPCME, [ TRIG ], TRGLOT, TTRIG
Product Rev
GT6K 6.0
GV6K 6.0
The
TPCMS
command transfers the captured position of the master within its current master cycle.
TPCMS
(and
TPMAS
) is unique among position transfers, because its value rolls over to zero each time the
entire master cycle length (
FMCLEN
) has been traveled. Thus, the captured
TPCMS
value is essentially a
snap-shot of the position relative to the master cycle at the time of the capture.
The master must be assigned first (
FOLMAS
command) before this command will be useful.
For a complete discussion of master cycles, refer to the Following chapter in the
Programmer’s Guide
.
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...