216
Gemini GV6K/GT6K Command Reference
by the number of the specific output. For example,
VARB1=2OUT.12
assigns output 12 (the 4
th
I/O point on
SIM2) on I/O brick 2 to binary variable 1.
Onboard Outputs
(on the “
DRIVE I/O
” connector) —
Relationships
:
OUTLVL
Setting
OUT
State *
Current
TOUT
status
Relationships:
OUTLVL0
(default)
OUT1
Sinking current
1
OUTLVL0
OUT0
No current flow
0
OUTLVL1
OUT1
No current flow
1
OUTLVL1 OUT0
Sinking current
0
* The output is “active” when it is commanded by the
OUT
,
OUTP
, or
POUT
command (for example,
OUTxx1
activates output #3).
Expansion I/O Outputs
(on an EVM32) —
Interrelationships
:
Output Type
OUTLVL
Setting
OUT
State *
Current
OUT
/
TOUT
status
LED
NPN (sinking)
OUTLVL0
(default)
OUT1
Sinking current
1
ON
NPN
OUTLVL0
(default)
OUT0
No current flow
0
OFF
NPN
OUTLVL1 OUT1
No current flow
1
OFF
NPN
OUTLVL1 OUT0
Sinking current
0
ON
PNP (sourcing)
OUTLVL0
OUT1
No current flow
1
OFF
PNP
OUTLVL0 OUT0
Sourcing current
0
ON
PNP
OUTLVL1
(default)
OUT1
Sourcing current
1
ON
PNP
OUTLVL1
(default)
OUT0
No current flow
0
OFF
Reed Relay
OUTLVL0
(default)
OUT1
Sinking (closed)
1
ON
Reed Relay
OUTLVL0
(default)
OUT0
No flow (open)
0
OFF
Reed Relay
OUTLVL1 OUT1
No flow (open)
1
OFF
Reed Relay
OUTLVL1 OUT0
Sinking (closed)
0
ON
* The output is “active” when it is commanded by the
OUT
,
OUTP
, or
POUT
command (for example,
OUTxx1
activates output #3).
Example:
VARB1=OUT
; Output status assigned to binary variable 1
VARB2=OUT.4
; On-board output bit 4 assigned to binary variable 2
VARB2
; Response if bit 4 is set to 1:
;
*VARB2=XXX1_XXX
IF(OUT=b110X1)
; If the output status contains 1's for outputs 1, 2, & 5,
; and a 0 for output 4, do the IF statement
TREV
; Transfer revision level
NIF
; End IF statement
OUTALL
Output State for Multiple Outputs
Type
Output
Syntax
<a_><!><@><B>OUTALL<i>,<i>,<b>
Units
1st i = beginning number of output range
2nd i = ending number of output range
b = enable/disable bit
Range
1st i = 1 to
n
(
n
is max. number of outputs available)
2nd i = First i to
n
b = 0 (off) or 1 (on)
Default
0
Response
n/a
See Also
OUT, OUTEN, OUTFNC, OUTLVL, TIO, TOUT
Product Rev
GT6K 6.0
GV6K 6.0
The
OUTALL
command turns a range of output bits on and off. You may use this command to control any
contiguous range of the onboard outputs, as well as any outputs on external I/O bricks, as long as all
outputs in the range are defined as
OUTFNCi-A
(general-purpose) outputs. If you attempt to change the
state of an output that is not defined as
OUTFNCi-A
, the drive will respond with an error message (“
OUTPUT
BIT USED AS OUTFNC
”) and the
OUTALL
command will not be executed (but command processing will
continue).
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...