Parker Automation Gemini GV6K Command Reference Manual page 227

Servo drive/controller
Table of Contents

Advertisement

[ PCE ]
Position of Captured Encoder
Type
Assignment or Comparison
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
ENCCNT, INFNC, [ PCMS ], [ PE ], PSET, SCALE, SCLD, SFB, TPCE,
[ TRIG ], TRGLOT, TTRIG
Use the
operator to assign the captured encoder position to a variable, or to make a comparison against
PCE
another value.
Syntax: VARn=PCEc where "n" is the variable number, and "c" designates trigger A or B, or M for the
input; or PCE can be used in an expression such as IF(PCEB>2345Ø).
Inputs on the
connector:
DRIVE I/O
Input # Pin #
1
37
2
38
3
39
4
34
5
35
About Position Capture: The encoder position can be captured only by an input that is defined as a
"trigger interrupt" input with the
input is activated, the encoder position is captured and the position is available through the use of the
operator and the
display command. Stepper Axes: By default, stepper axes capture only the
TPCE
commanded position. To capture the encoder position, the axis must be in the Encoder Capture Mode (see
command).
ENCCNT
Position Capture Status, Longevity of Captured Position: Use the
ascertain if a trigger interrupt input has been activated.
is an assignment/comparison operator for using the status information in a conditional expression
TRIG
(e.g., in an
statement). Once the captured encoder position value is assigned/compared with the
IF
operator, the
/
status bit for that trigger input is cleared; but the position information remains
TTRIG
TRIG
available until it is overwritten by a subsequent position capture from the same trigger input.
Position Capture Accuracy: The encoder position capture accuracy is ±1 encoder count.
Scaling and Position Offset: If scaling is enabled (
scaling factor (
). If scaling is not enabled (
SCLD
(NOTE: When using a stepper axis operating in
and is never scaled by
.) If you issue a
SCLD
previously captured encoder positions will be offset by the
Example:
INFNC1-H
; Assign trigger input TRIG-A as trigger interrupt input
VAR1=PCEA
; Assign captured encoder position to variable 1
; (position was captured when trigger input TRIG-A became active)
IF(PCEA<4000)
; If the captured encoder position is less than 4000,
; do the IF statement
VAR2=PCEA+10
; Add 10 to the captured encoder position
; (captured when trigger input TRIG-A became active) and
; assign the sum to variable #2
NIF
; End IF statement
GT6K & GV6K Function ( INFNC default )
INFNC1-A (General-purpose. If assigned, TRG-A must be on Input #1)
INFNC2-A (General-purpose. If assigned, TRG-B must be on Input #2)
INFNC3-A (General-purpose)
INFNC4-A (General-purpose)
INFNC5-A (General-purpose. If assigned, MASTER TRIGGER must
be on Input #5)
command (see
INFNCi-H
TTRIG
SCALE1
), the value assigned will be actual encoder counts.
SCALEØ
ENCCNT1
(establish absolute position reference) command, any
PSET
www.comoso.com
command). When a "trigger interrupt"
INFNC
and
TTRIG
TRIG
displays the status as a binary report, and
), the encoder position is scaled by the distance
mode, the
value is always encoder counts
PCE
command value.
PSET
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
MASTER TRIG
PCE
commands to
PCE
225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents