Command Descriptions
213
[ OR ]
Or
Type
Operator
(Logical)
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[
AND
],
IF,
[
NOT
],
NWHILE,
REPEAT,
UNTIL,
WAIT,
WHILE
Product Rev
GT6K 6.0
GV6K 6.0
Use the
OR
command as a logical operator in a program flow control command (
IF
,
REPEAT
,
UNTIL
,
WHILE
,
NWHILE
,
WAIT
). The
OR
command logically links two expressions. If either of the two expressions are true, and
are linked with an
OR
command, then the whole statement is true. This is illustrated by the following examples.
If
VAR1=1
and
VAR2=1
then, even though variable 2 is not greater than 3, this is a true statement:
IF(VAR1>0
OR
VAR2>3)
. This statement would not be true:
IF(VAR1<>1
OR
VAR2=2)
.
To evaluate an expression (Expression 1
OR
Expression 2 = Result) to determine if the whole expression is
true, use the following rule:
TRUE
OR
TRUE = TRUE
FALSE
OR
TRUE = TRUE
TRUE
OR
FALSE = TRUE
FALSE
OR
FALSE = FALSE
Example:
VAR1=1
; Set variable 1 equal to 1
IF(VAR1=1 OR IN=b1XXX)
; Compare variable 1 to 1, and check for input #1
; to be active
WRITE"FIRST EXAMPLE"
; If either condition is true, write out FIRST EXAMPLE
NIF
; End IF statement
ORES
Resolution of Step & Direction Output (GT6K) or Encoder Output (GV6K)
Type
Drive Configuration; Outputs
Syntax
<a_><!>ORES<i>
(does not take effect until RESET, DRESET or
cycle power)
Units
Rotary motors: i = counts/rev
Linear motors: i = counts/electrical pitch
Range
GT6K: 200 - 128000; 0 to disable
GV6K: 200 - 1073741823; 0 to disable
Default
GT6K:
0
GV6K: 4000
Response
ORES
*ORES4000
See Also
DMEPIT, DMTR, DRES, ERES, TASX, TER, TPC, TPE
Product Rev
GT6K 6.0
GV6K 6.0
NOTE
: This command does not take effect until you cycle power to the drive, or issue a
RESET
or
DRESET
command.
AUTO-SETUP for GV6K Drives
:
This command is automatically set according to the Parker motor selected
with the configuration utility in Motion Planner (see page
6
). If you did not use the configuration utility or are
not using a Parker Motor, this command is set to zero and you will have to manually set this parameter. Refer
to
DMTR
for a list of auto-configured commands.
NOTE
:
ORES0
disables this output function.
GT6K
: The
ORES
command sets the resolution of the auxiliary step & direction output (pins 14-17 on the
DRIVE I/O
connector).
GV6K
: The
ORES
command sets the resolution of the encoder output (pins 14-19 on the
DRIVE I/O
connector).
Maximum Frequency
The Maximum output frequency (post quadrature) of the hardware generating the
ORES
functionality is 2.5 MHz. If the maximum output frequency is exceeded, the drive will fault
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...