
4Ć18
10 ! September 20, 1991
20 !
30 ! This task configures three channels:
40 ! Channel 0 monitors the level of a liquid in a tank
45 ! Channel 1 monitors the startup pressure of a process
50 ! Channel 2 monitors the operating pressure of a process
55 ! If any configuration fails, SHUTDOWN@ is set
60 !
65 ! This task checks for alarms once per second.
70 ! If any channel has an out of range status condition, &
! SHUTDOWN@ is set
75 ! If any channel has a high or low alarm, WARNING@ is set
80 ! If any channel has a highĆhigh or lowĆlow alarm, &
! SHUTDOWN@ is set
90 !
100 ! ********************* LOCAL VARIABLES *******************
110 !
120 LOCAL CHANNEL%
130 !
200 ! ********************* COMMON VARIABLES ******************
210 !
220 COMMON TANK_LEVEL% \! Tank level read by the CIM card
230 COMMON START_PROCESS% \! Pressure read by the CIM card &
\! during the startup process
240 COMMON OP_PROCESS% \! Pressure read by the CIM card &
\! during the operation process
245 !
300 COMMON TANK_HH_ALARM@ \! Tank highĆhigh alarm status
310 COMMON TANK_H_ALARM@ \! Tank high alarm status
320 COMMON TANK_L_ALARM@ \! Tank low alarm status
330 COMMON TANK_LL_ALARM@ \! Tank lowĆlow alarm status
340 !
400 COMMON START_HH_ALARM@ \! HighĆhigh alarm status during the &
\! startup process
410 COMMON START_H_ALARM@ \! High alarm status during the &
\! startup process
420 COMMON START_L_ALARM@ \! Low alarm status during the &
\! startup process
430 COMMON START_LL_ALARM@ \! LowĆlow alarm status during the &
\! startup process
440 !
500 COMMON OP_HH_ALARM@ \! HighĆhigh alarm status during &
\! the operation process
510 COMMON OP_H_ALARM@ \! High alarm status during the &
\! operation process
520 COMMON OP_L_ALARM@ \! Low alarm status during the &
\! operation process
530 COMMON OP_LL_ALARM@ \! LowĆlow alarm status during the &
\! operation process
540 !
600 COMMON CNF_CHAN_NUM% \! Channel number (Register 23)
610 COMMON CNF_MAX% \! Maximum scaling value (Register 24)
620 COMMON CNF_MIN% \! Minimum scaling value (Register 25)
630 COMMON CNF_AVE_SAMPLE% \! Number of running average samples (Register 26)
640 COMMON CNF_HH_ALARM% \! HighĆhigh alarm value (Register 27)
650 COMMON CNF_H_ALARM% \! High alarm value (Register 28)
660 COMMON CNF_L_ALARM% \! Low alarm value (Register 29)
670 COMMON CNF_LL_ALARM% \! LowĆlow alarm value (Register 30)
680 COMMON CNF_COMMAND% \! Configuration command (Register 31)
690 COMMON CNF_COMP@ \! Configuration complete (Register 22, bit 15)
700 COMMON CNF_ERROR@ \! True if configuration error occurs (Register 22, bit 14)
710 COMMON WARNING@ \! True if any channel has a high or &
\! low alarm
720 COMMON SHUTDOWN@ \! True if any channel has a lowĆlow &
\! or highĆhigh alarm or an outĆofĆ &
\! range or configuration error
730 COMMON OUT_OF_RANGE% \! NonĆzero if any channel output &
\! value is out of range
Figure 4.12 Ć Sample DCS 5000/AutoMax Current Input Application Task
(Continued)
Comentarios a estos manuales