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

Isolated/Non-isolated Channel status

 

A bit set to 0 indicates an isolated channel

 

A bit set to 1 indicates a non-isolated channel or no plug-on

 

module installed (DO NOT operate the module without a plug-on

 

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 8-channel configurations, the upper 8 bits of integers 3, 4, 5, and 6 are set to 1’s.

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

-1

All channels are non-isolated.

 

 

 

4th

-1

All channels are voltage output channels.

 

 

 

5th

-1

All channel outputs are disabled

 

 

(all output relays are open).

 

 

 

6th

-1

All channels are output mode

 

 

programmable.

 

 

 

 

 

 

Chapter 2

Programming Examples 41

Page 41
Image 41
HP E1418A manual Returned Meaning, Decimal Integer, Configuration