![](/images/new-backgrounds/1330247/33024781x1.webp)
The DIAG:CONF? query returns six integers. The six integers returned contain the module configuration and have the following meaning.
Integer |
|
Returned | Meaning |
|
|
1st | Expansion Board ID in the form: 0 = present, 7 = none |
| (expansion board contains channels 9 through 16) |
|
|
2nd | Terminal Module ID in the form |
| 0 = screw type, 7 = none or other |
|
|
3rd | |
| A bit set to 0 indicates an isolated channel |
| A bit set to 1 indicates a |
| module installed (DO NOT operate the module without a |
| module) |
| Bits 0 – 15 correspond to channels 1 – 16, respectively* |
|
|
4th | Channel Mode |
| A bit set to 0 indicates a current output channel |
| A bit set to 1 indicates a voltage output channel |
| Bits 0 – 15 correspond to channels 1 – 16, respectively* |
|
|
5th | Channel Output State |
| A bit set to 0 indicates the channel output relay is closed |
| A bit set to 1 indicates the channel output relay is open |
| Bits 0 – 15 correspond to channels 1 – 16, respectively* |
|
|
6th | Channel Mode Programmable State (P/J Jumper) |
| A bit set to 0 indicates a channel is not mode programmable |
| A bit set to 1 indicates a channel is mode programmable |
| Bits 0 – 15 correspond to channels 1 – 16, respectively* |
|
|
* For
For example, if the following six integers are returned, the module has the configuration indicated.
| Decimal |
|
Integer | Value | Configuration |
|
|
|
|
|
|
1st | 7 | No expansion board installed |
|
| (Only channels 1 through 8). |
|
|
|
2nd | 7 | No Terminal Module installed or |
|
| unknown terminal module installed. |
|
|
|
3rd | All channels are | |
|
|
|
4th | All channels are voltage output channels. | |
|
|
|
5th | All channel outputs are disabled | |
|
| (all output relays are open). |
|
|
|
6th | All channels are output mode | |
|
| programmable. |
|
|
|
|
|
|
Chapter 2 | Programming Examples 41 |