Using The Inhibit/Fault Port As A Digital I/O; Dfi Programming Example - Agilent Technologies 66312A Programming Manual

Dynamic measurement dc source; system dc power supply
Hide thumbs Also See for 66312A:
Table of Contents

Advertisement

Using the Inhibit/Fault Port as a Digital I/O

You can configure the inhibit/fault port to provide a digital input/output to be used with custom digital
interface circuits or relay circuits. As shipped from the factory, the port is shipped for inhibit/fault operation.
You can change the configuration of the port to operate as a general purpose digital input output port with
the following command:
[SOURce:]DIGital:FUNCtion RIDFi | DIGio
The following table shows the bin assignments of the mating plug when used in RI/DFImode as well as
Digital I/O mode. Refer to Table 1-2 for the electrical characteristics of the port.
Pin
1
2
3
4
To program the digital I/O port use:
[SOURce:]DIGital:DATA <data>
where the data is an integer from 0 to 7 that sets pins 1 to 3 according to their binary weight. Refer to the
DIGital:DATA command for more information.

DFI Programming Example

The following program illustrates how to program the DFI port so that it goes low when an OCP condition
turns off the output of the unit. To clear an overcurrent condition, the cause of the condition must first be
removed and then an OUTput:PROTection:CLEar command must be sent. Note that the status event
register will not clear the DFI port until the register is read.
10
!Rev A.00.00
20
ASSIGN @Ps TO 705
30
OUTPUT @Ps;"*RST"
40
OUTPUT @Ps;"OUTP ON"
50
OUTPUT @Ps;"VOLT 10;CURR .1"
60
!
70
OUTPUT @Ld;"CURR:PROT:STAT ON"
80
OUTPUT @Ld;"OUTP:DFI:STAT ON"
90
OUTPUT @Ld;"OUTP:DFI:SOUR QUES"
100
OUTPUT @Ld;"STAT:QUES:ENAB 2;PTR 2"
110
!
120
OUTPUT @Ld;"OUTP:PROT:CLE"
130
OUTPUT @Ld;"STAT:QUES:EVENT?"
140
ENTER @Ld;EVENT
190
!
FAULT/INHIBIT
FLT Output
FLT Output
INH Input
INH Common
! Sets supply to default values
! Turn on power supply output
! Program power supply voltage and current
! Turn on overcurrent protection
! Turn on DFI port
! Select DFI bit from Questionable status register
! Unmask bit 2 (OCP) on positive transition
! Clears the protection circuit
! Clears the Event register and DFI
! Reads the event and clears the buffer
Programming the DC Source - 3
DIGITAL I/O
OUT 0
OUT 1
IN/OUT 2
Common
not programmable
Bit Weight
0
1
2
37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

6631b6632b66332a6633b6634b6611c ... Show all

Table of Contents