DMC-1400 Series Command Reference CO 57
CO
FUNCTION: Configure Outputs
DESCRIPTION:
The CO command configures the extended I/O in blocks of 8.
ARGUMENTS: CO n 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.
The least significant bit represents block 2 and the most significant bit represents block 9.
The decimal value can be calculated by the following formula. n = n2 + 2*n3 + 4*n4 +
8*n5 +16* n6 +32* n7 +64* n8 +128* n9 where nx represents the block. To configure a
block as an output block, substitute a one into that nx in the formula. If the nx value is a
zero, then the block of 8 I/O points will be configured as an input. For example, if block
3 and 4 is to be configured as an output, CO 6 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 Yes
Controller Usage DMC-1415/1416/1425
OPERAND USAGE:
_CO returns output configuration value
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 1 Configures block 1 to outputs on extended I/O
Hint: See appendix for more information on the extended I/O boards.