Galil DMC-1400 Tablet Accessory User Manual


 
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 = n
2
+ 2*n
3
+ 4*n
4
+
8*n
5
+16* n
6
+32* n
7
+64* n
8
+128* n
9
where n
x
represents the block. To configure a
block as an output block, substitute a one into that n
x
in the formula. 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
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.