Professional Documents
Culture Documents
Chap 05
Chap 05
Chap 05
Chapter 46
46.1 Output Interface
46.2 Field Instrumentation
46.3 Input Interface
46.4 Input Processing
46.5 Output Processing
This chapter explains how a typical discrete device This may be considered to consist of four sub sys-
is realised by means of computer control. Discrete tems:
devices, sometimes referred to as entities, relate to
a system’s discrete I/O channels. A device consists • An output interface consisting of a sampler, dis-
of some two to four discrete input and/or output crete to voltage converter D/V, zero order hold
channels that are logically connected. The logic is ZOH and relay V/V
normally handled by function blocks. Typical ap- • Field instrumentation comprising a solenoid ac-
plications are in enabling trips and interlocks, dis- tuated pilot valve V/P, pneumatically actuated
crepancy checking and polling redundant signals. isolating valve P/Z and a proximity switch Z/V
Larger numbers of discrete I/O are normally han- • An input interface consisting of a voltage con-
dled by sequences. verter V/V, sampler and voltage to discrete
The discrepancy checking of a valve position reader V/D
is used as a vehicle for explaining the operation • Function blocks for handling discrete input DIN
of devices. The device consists of a discrete out- and discrete output DOT signals
put channel which is used for opening an isolating
valve, and a discrete input channel connected to
a proximity switch used for checking whether the
valve is open or not. This is depicted in P&I dia- 46.1 Output Interface
gram form in Figure 46.1.
The four elements of sampler, D/V, ZOH and V/V
are all realised by the circuits of a DOT card. As-
ZY
47 sume that the output to the isolating valve is one of
a number of 0/24 V channels handled by the card,
the circuit for which is as depicted in Figure 46.3.
ZS Note the barrier for electrical protection.
47 The sampler is virtual.On a regular basis,under
control of the RTOS, the status of the DOT block
Fig. 46.1 Representation of an isolating valve as a discrete device output is sampled,i.e. it is copied from the database
into a register. It is usual for all the DOT outputs
The corresponding block diagram is shown in Fig- associated with a card to be stored in the bits of the
ure 46.2. register and to be “scanned” simultaneously.
334 46 Discrete I/O Devices
24V
DOT card
Barrier
0/<24V
0V
Fig. 46.3 Discrete output channel
The D/V conversion of the logical 0/1 in the regis- 46.2 Field Instrumentation
ter into a 0/5 V signal is handled by an op-amp type
of circuit. This is then latched by the ZOH in be- When the relay is closed, the 24 V power supply is
tween samples as described in Chapter 44. The re- routed through the barrier to the solenoid of a pilot
lay depicted is electro-mechanical in nature. This, valve, as described in Chapter 5. This enables com-
and the transistor based type of relay, are the most pressed air to be applied to the diaphragm actuator
common forms of relay used for discrete outputs of the isolating valve.
signals. Suppose that the valve is of the air-to-open type
and its closed position is of interest. The proxim-
ity switch is attached to the yoke of the valve and
the magnet to its stem, both being positioned at
the closed end of stem travel. Also suppose that
the switch is normally open, but is closed by the
46.3 Input Interface 335
magnet. Thus, when the valve is shut the output of 46.4 Input Processing
the proximity switch is approximately 24 V. If the
valve is open, fully or otherwise, or if the proximity The DIN function block of Figure 46.2 represents
switch fails, the output is 0 mA. a discrete input processing routine. Its algorithm
operates on the generic data block shown in Ta-
ble 46.1.
DIN card
Barrier
z1
0/<24V
z2
0V
Fig. 46.4 Discrete input channel
336 46 Discrete I/O Devices
is being sampled. Such a course of action would 12. This slot permits the time delay allowed for in
be appropriate, for example, if there is a hard- the discrepancy checking to be specified.
ware fault that causes the input signal to be in 13–15. If a discrepancy occurs, it is treated as an
a permanent state of alarm. alarm for which an area has to be specified,
10 and 11. These enable alarms to be attached to a priority attached and an option to generate
either state of the discrete input. Neither is used messages provided.
with the proximity switch because of the dis-
crepancy checking on the discrete output to the These DIN and DOT function blocks have been
solenoid valve. explained on the basis of their use for discrep-
ancy checking. However, it should be appreciated
that the routines are general purpose and are used
extensively for handling conventional discrete I/O
46.5 Output Processing that are not logically connected.
The DOT function block of Figure 46.2 represents
a discrete output processing routine. Its algorithm Table 46.2 Discrete output function and data block
operates on the generic data block shown in Ta-
ble 46.2. Function block Datablock
The content of many of these slots is self ex- Slot Description Value
planatory. Note the following slots in particular: 1 Block no. B0270
7. This identifies the source of the required sta- 2 Block type DOT
tus of the discrete output corresponding to the 3 Tag no. ZY47
valve opening, typically either 0 for shut or 1 4 Description Isolating
for open. The status is normally determined valve
by some other logic block, B0470 as indicated, 5 Block status On
by a sequence or by an operator decision. 6 Sampling frequency 1
9. An option for discrepancy checking is pro- 7 Input block B0470
vided. For example, following a decision to 8 Frame/rack/card/channel no. 1/2/7/16
close the solenoid valve, and allowing a time 9 Discrepancy checking Yes
delay for the valve to close, the input from the
10 Discrepancy input block B0027
proximity switch is checked.
11 Discrepancy criteria 01,10
10. This identifies the discrete input signal to be
used for discrepancy checking. 12 Discrepancy delay 5
11. A discrete output of 0 should correspond to 13 Display area 06
an input of 1, and vice versa. Hence the binary 14 Alarm priority 0
codes of 01 and 10 are specified as acceptable 15 Message code 0
combinations. 16 Current status