Parker Automation Gemini GV6K Command Reference Manual page 46

Servo drive/controller
Table of Contents

Advertisement

linked with an
command, then the whole statement is true. This fact is best illustrated by example.
AND
Example 1:
IF(VAR1>Ø AND VAR2<3) : TPME : NIF
If variable 1 = 1 and variable 2 = 1, then the expression within the
the commands between the
Example 2:
WHILE(VAR1=1 AND VAR2=2) : TPME : NWHILE
If variable 1 = 1 and variable 2 = 1, then the expression within the
and the commands between the
To evaluate an expression (Expression 1
is true, use the following rules:
TRUE
TRUE = TRUE
AND
TRUE
FALSE = FALSE
AND
FALSE
TRUE = FALSE
AND
FALSE
FALSE = FALSE
AND
[ ANI ]
Analog Input Value
Type
Assignment or comparison
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
ANIRNG, TANI
Use the
operator to assign the voltage level present at an analog input (ANI) to a variable, or to make a
ANI
comparison against another value. The ANI value is measured in volts.
The
value is derived from the voltage applied to the corresponding analog input and ground. The analog
ANI
value is determined from a 12-bit analog-to-digital converter. Under the default ANI voltage range, set with
, the range of the
ANIRNG
ANI
voltage ranges).
Syntax:
VARn=<B>ANI.i
"
" is the I/O brick address where the analog input resides; or
i
such as
IF(1ANI.2=2.3)
onboard analog input. To understand the I/O brick addressing convention, refer to page 8.
Example:
VAR1=ANI.1
; Voltage value at onboard analog input is assigned
; to variable 1
VAR2=3ANI.2
; Voltage value at analog input 2 on I/O brick 3 is assigned
; to variable 2
IF(1ANI.1<8.2)
; If voltage value at analog input 1 on brick 1 < 8.2V, do the
; commands between the IF statement and the NIF statement.
TREV
; Transfer revision level
NIF
; End if statement
44
Gemini GV6K/GT6K Command Reference
and the
IF
NIF
and the
WHILE
Expression 2 = Result) to determine if the whole expression
AND
operator is -10.000VDC to +10.000VDC (see
where "
" is the variable number, "
n
. If no brick identifier (
www.comoso.com
statement is true, and
IF
will be executed.
WHILE
will not be executed.
NWHILE
command for optional
ANIRNG
" is the number of the I/O brick, and
<B>
can be used in an expression
ANI
) is provided, it defaults to brick "0", the
<B>
statement is false,
Product
Rev
GT6K
6.0
GV6K
6.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents