Command Descriptions
241
[ PSHF ]
Net Position Shift
Type
Following; Assignment or Comparison
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
FOLEN, FOLMAS, FSHFC, FSHFD, SCALE, SCLD, TPSHF
Product Rev
GT6K 6.0
GV6K 6.0
The
PSHF
operator is used to assign to a numeric variable the value of the net (absolute) follower axis
position shift that has occurred since that last
FOLEN1
command. The position value will be the sum of all
shifts performed on that axis, including decelerations due to limits, kill, or stop. The shift value is set to
zero each time a new
FOLEN1
command or a
FOLMAS
command (with a value other than zero) is issued.
If scaling is enabled (
SCALE1
), the
PSHF
value is scaled by the distance scaling factor (
SCLD
). If scaling is
not enabled, the value is in commanded counts.
Syntax:
VARn=PSHF
where “
n
” is the variable number, or
PSHF
can be used in an expression such as
IF(PSHF>2345Ø)
.
Example:
IF(PSHF>4.3)
; If the follower axis has shifted more than 4.3 user units in the
; positive direction, then do the IF statement
OUT.2=b1
; Turn on onboard output #2
NIF
; End of IF statement
VAR14=PSHF
; Set VAR14 to the follower axis’s position shift
[ PSLV ]
Current Commanded Position of Follower Axis
Type
Following; Assignment or Comparison
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
FMCNEW, FMCP, SCLD, SCALE, TPSLV
Product Rev
GT6K 6.0
GV6K 6.0
Use the
PSLV
operator to assign the follower axis commanded position register value to a variable, or to
make a comparison against another value.
If scaling is enabled (
SCALE1
), the
PSLV
value is scaled by the distance scaling factor (
SCLD
). If scaling is
not enabled, the value is in commanded counts.
Syntax:
VARn=PSLV
where “
n
” is the variable number, or
PSLV
can be used in an expression such as
IF(PSLV>2345Ø)
.
Example:
IF(PSLV>4.3)
; If the follower axis has traveled more than 4.3 user units then
; do the IF statement
OUT.2=b1
; Turn on onboard output #2
NIF
; End of IF statement
VAR14=PSLV
; Set VAR14 to the follower axis's position
www.comoso.com
Summary of Contents for Gemini GT6K
Page 24: ...www comoso com ...
Page 40: ...www comoso com ...
Page 344: ...www comoso com ...
Page 350: ...www comoso com ...