Parker Automation Gemini GV6K Command Reference Manual page 7

Servo drive/controller
Table of Contents

Advertisement

Syntax – Command Value Substitutions
Many commands can substitute one or more of its command field values with one of these substitution
items (demonstrated in the programming example below):
VAR ............. Places current value of the numeric variable in the corresponding field of the command.
VARB........... Uses the value of the binary variable to establish all the fields in the command.
VARI........... Places current value of the integer variable in the corresponding field of the command.
READ........... Information is requested at the time the command is executed.
DREAD ........ Reads the RP240's numeric keypad into the corresponding field of the command.
DREADF...... Reads the RP240's function keypad into the corresponding field of the command.
TW ............... Places the current value set on the thumbwheels in the corresponding field of the command.
DAT ............. Places the current value of the data program (DATP) in the corresponding field of the command.
Programming Example:
VAR1=15
; Set variable 1 to 15
A(VAR1)
; Set acceleration to 15
VARB1=b101XX
; Set binary variable 1 to 101XX (bits 4 & 5 not affected)
OUT(VARB1)
; Turn on ouputs 1 & 3, turn off output 2, don't change outputs 4 &
5.
VARS1="Enter Velocity" ; Set string variable 1 to the message "Enter Velocity"
V(READ1)
; Read in the velocity, output variable string 1 as the prompting
message
; 1. Operator sees "ENTER VELOCITY" displayed on the screen.
; 2. Operator enters velocity prefixed by !' (e.g., !'20).
HOMV(TW1)
; Read in the home velocity from thumbwheel set 1
HOMVF(DAT1)
; Read home final velocity from data program 1.
VARI1=2*3
; Set integer variable 1 to 6 (2 multiplied by 3)
D(VARI2)
; Set the distance equal to the value of
; integer variable 2.
Not all of the commands allow command field substitutions. In
general, commands with a binary command field (<b> in the
syntax) will accept the VARB substitution. Commands with a real
or integer command field (<r> or <i> in the syntax) will accept
VAR, VARI, READ, DREAD, DREADF, TW or DAT.
(NOTE: The substitution item must be enclosed in parentheses.)
Rule of Thumb
www.comoso.com
Introduction
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents