Saving the State of the Outputs in Non-Volatile Memory
The configuration of the extended I/O and the state of the outputs can be stored in the EEPROM
with the BN command. If no value has been set, the default of CO 0 is used (all blocks are
inputs).
Accessing extended I/O
When configured as an output, each I/O point may be defined with the SBn and CBn commands
(where n=9 through 56). OBn can also be used with n=9 through 56.
The command, OP, may be used to set the state of output bits. The OP command has 2
parameters. The first parameter sets the values of the main output port of the controller. The
second parameter sets the value of the extended I/O configured as outputs. The command syntax
for the command is the following:
OP m,a,b,c,d,e
where m is the decimal representation of the bits 1-8 (values from 0 to 255) and a,b,c,d,e 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-40 Extended
I/O
c 6,7
41-48 Extended
I/O
d 8,9
49-56 Extended
I/O
When accessing I/O blocks configured as inputs, use the TIn command. The argument 'n' refers to
the block to be read (n=1 to 9).
Individual bits can be queried using the @IN[n] command (where n=9 to 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 extended I/O connector is a single 100 pin High Density Connector used on Revs A&B
versions of the DMC-16x0.
J101
100-PIN HIGH DENSITY:
Pin
Signa
l
Bloc
k
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
9. I/O
4
36
3
11. I/O
4
35
2
13. I/O
4
34
1
184
•
Appendices
DMC-1600