Parker Automation Gemini GV6K Command Reference Manual page 161

Servo drive/controller
Table of Contents

Advertisement

[ IN ]
Input Status
Type
Assignment or Comparison
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
GOWHEN, IN, INFNC, [ LIM ], ONIN, TIN, VARB
Use the
operator to assign the input value to a binary variable (
IN
binary or hexadecimal value. To make a comparison against a binary value, the letter b (b or B) must be
placed in front of the value. The binary value itself must only contain ones, zeros, or Xs (1, Ø, X, x). To make
a comparison against a hexadecimal value, the letter h (h or H) must be placed in front of the value. The
hexadecimal value itself must only contain the letters A through F, or the numbers Ø through 9.
Syntax:
where "
VARBn=<B>IN
where the input resides (not required if addressing inputs on the Gem6K's
or
can be used in an expression such as
IN
one input value to a binary variable, instead of all the inputs, the bit select (
used. For example,
brick 2 to binary variable 1.
The function of the inputs is established with the
trigger or external digital input, regardless of its assigned function from the
Example:
VARB1=3IN
; Input status on I/O brick 3 assigned to binary variable 1
VARB2=2IN.12
; Input bit 12 on I/O brick 2 assigned to binary variable 2
VARB2
; Response if bit 12 is set to 1:
; *VARB2=XXXX_XXXX_XXX1_XXXX_XXXX_XXXX_XXXX_XXXX
IF(1IN=b111011X11) ; If the input status contains 1's for inputs 1,2,3,5,6,8,& 9,
; and 0 for input 4 on I/O brick 1, do the commands
; following the IF statement
TREV
; Transfer revision level
NIF
; End IF statement
IF(2IN=hEF00)
; If the input status contains 1's for I/O brick 2's inputs
; 1,2,3,5,6,7,& 8, and 0's for every other input, do the
; commands following the IF statement
TREV
; Transfer revision level
NIF
; End IF statement
" is the binary variable number and "
n
IF(2IN=b11Ø1)
assigns the binary state of input 10 (2
VARB1=2IN.10
command (although the
INFNC
www.comoso.com
Product
GT6K
GV6K
), or to make a comparison against a
VARB
" is the number of the I/O brick
<B>
DRIVE I/O
, or
. To assign only
IF(2IN=h7F)
) operator can be
.
nd
pin on SIM 2) on I/O
operator looks at any
IN
command).
INFNC
Command Descriptions
Rev
6.0
6.0
connector),
159

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents