Parker Automation Gemini GV6K Command Reference Manual page 337

Servo drive/controller
Table of Contents

Advertisement

Numeric-to-Binary Conversion:
VAR1=-5
; Set numeric variable value = -5
VARB1=VCVT(VAR1)
; Convert the numeric value to a binary value and
; store in VARB1
VARB1
; Display value of VARB1.
;
VAR1=25
; Set numeric variable value = 25
VARB1=VCVT(VAR1)
; Convert the numeric value to a binary value and
; store in VARB1
VARB1
; Display value of VARB1.
;
Binary-to-Numeric Conversion:
VARB1=b0010_0110_0000_0000_0000_0000_0000_0000
VAR1=VCVT(VARB1)
; Convert the binary value to a numeric value
VAR1
; *VAR1=+100.0
[ VEL ]
Velocity (Commanded) Assignment
Type
Assignment or Comparison
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
SCALE, SCLV, SFB, TVEL, TVELA, V, [ V ], VELA
Use the
operator to compare the current commanded velocity to another value or variable, or to assign
VEL
the current commanded velocity to a variable. The velocity value used in any comparison, or in any
assignment statement, is the current commanded velocity value, not the programmed velocity (
actual velocity as measured from the feedback device (
Syntax:
where "
VARn=VEL
.
IF(VEL>4)
The
value represents the current commanded velocity. It is not the programmed velocity (
VEL
is enabled (
), the
SCALE1
VEL
GT6K Steppers: If scaling is disabled (
in commanded counts/sec divided by the drive resolution
GV6K Servos: If scaling is disabled (
revs/sec.
Example:
IF(VEL<25)
; If the current velocity is less than 25 units/sec,
; then do the statements between the IF and NIF
VAR1=V*2
; Variable 1 = programmed velocity times 2
NIF
; End the IF statement
The response should be:
*VARB1=1101_1111_1111_1111_1111_1111_1111_1111
The response should be:
*VARB1=1001_1000_0000_0000_0000_0000_0000_0000
VELA
" is the variable number, or
n
value is scaled by the velocity scaling factor (
), the value is measured in revolutions/sec (actual velocity
SCALEØ
DRES
), the value is measured in encoder revs/sec or resolver
SCALEØ
www.comoso.com
; Set binary variable = +100.0
).
can be used in an expression such as
VEL
).
SCLV
value).
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
) or the
V
). If scaling
V
335

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents