![Galil Motion Control DMC-1000 Скачать руководство пользователя страница 183](http://html1.mh-extra.com/html/galil-motion-control/dmc-1000/dmc-1000_user-manual_3251369183.webp)
164
•
Appendices
DMC-1000
Representation Bit
9-16 1
0
2
0
1
17-24 2
1
2
1
2
25-32 3
2
2
2
4
33-40 4
3
2
2
8
41-48 5
4
2
4
16
49-56 6
5
2
5
32
The simplest method for determining the proper value for n is to do the following: 1. Choose which
8-bit I/O blocks that should be configured as outputs. 2. From the table, determine the decimal value
for each I/O block to be set as an output. 3. Add up all of the values determined in step 2. This is the
value to be used for n.
For example, if blocks 1,2 and 4 are outputs, then n is 11 and the command, CO11, should be issued.
This parameter, 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).
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.
Accessing the I/O of the DB-10072
The command, OQ, may be used to set the state of output bits. The OQ command set 16 bits at one
time. The command syntax for the command is the following:
OQ m,n,o (where m, n and o range from 0 to 65535).
The data fields define the outputs as follows:
Field
Most significant to least significant byte
m
block 2 to 1
n
block 4 to 3
o
block 6 to 5
When OQ is used as an operand, a 0 will return the current state of blocks 2 to 1, a 1 returns 4 to 3,
and a 2 returns 6 to 5. Example: MG_OQ2 returns the state of the bits in blocks 6 and 5.
When accessing I/O blocks configured as inputs, use the TIn command. The operant '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 command below is issued
MG
@IN[17]
the response is the least significant bit of block 2 (assuming block 2 is configured as input).
Connector Description of the DB-10072
Three cables connect the DB-10072 to OPTO-22 products. One cable is located at the back of the
card and may be connected from outside the PC (J1). The other two are attached from within the PC
(J2 and J3). Pinouts are described below:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com