DMC-100/1500 Command Reference
OQ
•
105
DMC-1000
OQ
FUNCTION:
Output Block
DESCRIPTION:
The OQ command sets the state of 16 bits of output at one time. This command is only valid
for controllers with the DB-10072 or DB-10096 I/O Expansion Board.
ARGUMENTS:
For use with the daughter board DB-10096:
OQ m,n
where m is the decimal representation for the outputs 9 to 24 and n is
the decimal representation of outputs 25 to 48
Example: OQ 3,4 will set output bits 9,10 and 27
For use with the daughter board DB-10072:
OQ m,n,o
where m, n and o range from 0 to 65535.
The data fields define the outputs as follows:
FIELD
MOST SIGNIFICANT TO LEAST SIGNIFICANT BYTE
m
block 2 to 1
n
block 4 to 3
o
block 6 to 5
For example, the command, OQ ,259 followed by the command MG OQ1 will have the response
“259”
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
3.0
Command Line
Yes
Can be Interrogated
No
Used as an Operand
Yes
See description
OPERAND USAGE FOR DB-10072:
_OQ0 contains the decimal representation of outputs 9-24, _OQ1 contains the decimal
representation of outputs 25-48.
OPERAND USAGE FOR DB-10096:
_OQ0 contains the current state of blocks 2 to 1,
_OQ1 contains the current state of blocks 4 to 3
_OQ2 contains the current state of blocks 6 to 5.
RELATED COMMANDS:
SB
Set output bit
CB
Clear output bit