30
•
CO
DMC-1000/1500 Command Reference
DMC-1000
DMC-1500
CO
FUNCTION:
Configure Outputs
DESCRIPTION:
The CO command configures the extended I/O on the DB-10072 of the DMC-1000 series
controller, the DB-15072 of the DMC-1500 series controller.
For the DMC-1000:
The first 48 I/O points of the DB-10072 expansion board can be
configured in blocks of 8. The extended I/O of the DB-10072 are denoted as bits 9-80
and blocks 1-9. The configurable I/O are bits 9-56 which denote blocks 1-6.
For the DMC-1500:
The first 24 I/O points of the DB-15072 expansion board can be
configured in blocks of 8. The extended I/O of the DB-15072 are denoted as bits 25-96
and blocks 3-11. The configurable I/O are bits 25-48 which denote blocks 3-5.
ARGUMENTS:
COn
where
n is a decimal value which represents a binary number. Each bit of the binary number
represents one block of extended I/O. When set to 1, the corresponding block is
configured as an output.
For the DMC-1000:
The least significant bit represents block 1 and the most significant bit
represents block 6. The decimal value can be calculated by the following formula. n =
n
1
+ 2*n
2
+ 4*n
3
+8* n
4
+16* n
5
+ 32 n
6
where n
x
represents the block. If the n
x
value is
a one, then the block of 8 I/O points is to be configured as an output. If the n
x
value is a
zero, then the block of 8 I/O points will be configured as an input. For example, if
blocks 0,1,2,and 4 are to be configured as outputs, CO 23 is issued.
For the DMC-1500:
The least significant bit represents block 5 and the most significant bit
represents block 3. The decimal value can be calculated by the following formula. n =
4*n
3
+ 2*n
4
+ n
5
where n
x
represents the block. If the n
x
value is a one, then the block of
8 I/O points is to be configured as an output. If the n
x
value is a zero, then the block of 8
I/O points will be configured as an input. For example, if block 5 is to be configured as
an output, CO 1 is issued.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Can be Interrogated
No
Used as an Operand
No
RELATED COMMANDS:
CB
Clear Output Bit
SB
Set Output Bit
OP
Set Output Port
TI Tell
Inputs
EXAMPLES:
CO 0
Configure all points as inputs
CO 2
Configures I/O points 17-24 as outputs on DB-10072
Hint: See appendix for more information on the extended I/O boards.