DMC-18x2
Appendices • 183
Accessing extended I/O
When configured as an output, each I/O point may be defined with the SBn and CBn commands
(where n=1 through 8 and 17 through 80). Outputs may also be defined with the conditional
command, OBn (where n=1 through 8 and 17 through 80).
The command, OP, may also be used to set output bits, specified as blocks of data. The OP command
accepts 5 parameters. The first parameter sets the values of the main output port of the controller
(Outputs 1-8, block 0). The additional parameters set the value of the extended I/O as outlined:
OP m,a,b,c,d
where m is the decimal representation of the bits 1-8 (values from 0 to 255) and a,b,c,d represent the
extended I/O in consecutive groups of 16 bits. (values from 0 to 65535). Arguments which are given
for I/O points which are configured as inputs will be ignored. The following table describes the
arguments used to set the state of outputs.
Argument Blocks Bits
Description
m 0
1-8
General
Outputs
a 2,3
17-32
Extended
I/O
b 4,5
33-48
Extended
I/O
c 6,7
49-64
Extended
I/O
d 8,9
65-80
Extended
I/O
For example, if block 8 is configured as an output, the following command may be issued:
OP 7,,,,7
This command will set bits 1,2,3 (block 0) and bits 65,66,67 (block 8) to 1. Bits 4 through 8 and bits
68 through 80 will be set to 0. All other bits are unaffected.
When accessing I/O blocks configured as inputs, use the TIn command. The argument 'n' refers to the
block to be read (n=0,2,3,4,5,6,7,8 or 9). The value returned will be a decimal representation of the
corresponding bits.
Individual bits can be queried using the @IN[n] function (where n=1 through 8 or 17 through 80). If
the following command is issued;
MG
@IN[17]
the controller will return the state of the least significant bit of block 2 (assuming block 2 is configured
as an input).
Connector Description:
The DB-14064 has two 50 Pin IDC header connectors. The connectors are compatible with I/O
mounting racks such as Grayhill 70GRCM32-HL and OPTO-22 G4PB24.
Note for interfacing to OPTO-22 G4PB24:
When using the OPTO-22 G4PB24 I/O mounting rack,
the user will only have access to 48 of the 64 I/O points available on the controller. Block 5 and Block
9 must be configured as inputs and will be grounded by the I/O rack.
J6 50-PIN IDC
Pin
Signal
Block
Bit @IN[n],
@OUT[n]
Bit
No
1. I/O 4
40 7
3. I/O 4
39 6
5 I/O
4
38 5
7. I/O 4
37 4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание DMC-18 2 Series
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 5: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 11: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...