Parker Automation Gemini GV6K Command Reference Manual page 336

Servo drive/controller
Table of Contents

Advertisement

For example, to set the string for variable #1 equal to
where
corresponds to the carriage return character.
MOM\13"
\13
Common characters and their ASCII equivalent value:
Character
Description
Line Feed
<lf>
Carriage Return
<cr>
Quote
"
Colon
:
Semi-colon
;
Backslash
\
You can copy one
to another
VARS
"
" or "
".
n
m
Example:
VARS1="Enter velocity >"
VAR2=READ1
VCVT
Variable Type Conversion
Type
Operator (Mathematical)
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
VAR, VARB, VARI
Using
operator, you can convert numeric (
VCVT
versa. The operation is a signed operation as the binary value is interpreted as a two's complement number,
with the least significant bit (LSB) on the left and the most significant bit (MSB) on the right. A don't care
(
) in a binary value will be interpreted as a zero (
X
If the mathematical statement's result is a numeric value, then
values. If the statement's result is a binary value, then
You can also convert real (
VAR
NOTE: Numeric variables (
VAR
example, executing the
VARB1=h00000004
an
error.
INVALID DATA
334
Gemini GV6K/GT6K Command Reference
HI MOM<cr>
ASCII Decimal Value
10
13
34
58
59
92
.
may be used, as well as variable substitution for
VARS
VARSn=VARSm
; Assign a message to string variable #1
; Transmit string variable 1, and wait for numeric
; data entered in the format of !'<data>.
; Once numeric data is received, place it in
; numeric variable 2.
; Example of data entry is to type "!'10.0", which
; will assign numeric variable 2 the value 10.00
or
VAR
VARI
).
Ø
VCVT
) values to integer (
) values (real values are truncated in the process).
VARI
) have insufficient range to convert a full 32-bit binary variable (
command and then the
www.comoso.com
, use the command
VARS1="HI
) values to binary (
) values, and vice
VARB
converts binary values to numeric
VCVT
converts numeric values to binary values.
VAR1=VCVT(VARB1)
Product
Rev
GT6K
6.0
GV6K
6.0
). For
VARB
command yields

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents