Emerson I-0021 Computer Accessories User Manual


 
90003482(2) [NGA-e (MLT-Software 3.2.X)] 07/98
NGA 2000
5 - 41
Example for PLC Programming:
You have three channels in your analyzer: CO, SO
2
and O
2
.
You want to write a program for the zero and span gas calibration.
The valve gear is:
So you have the following zero and span gas for each gas component:
Channel: CO SO
2
O
2
Zero gas: O
2
O
2
CO/SO
2
Span gas: CO/SO
2
CO/SO
2
O
2
So you have the following logical combination of the valves:
With the conditions described you will get the following program:
Step-
No.
Code Function/Parameter
1 -2 OR (Combination of the next three operands)
2 112 Zero gas calibration of channel 1
3 162 Zero gas calibration of channel 2
4 218 Span gas calibration of channel 3
5 -5 STORE (Saving the intermediate result to the result buffer)
6 40 Output result buffer 1
7 -6 CLEAR (Deleting the intermediate result of the calculator)
8 -2 OR (Combination of the next three operands)
9 118 Span gas calibration of channel 1
10 168 Span gas calibration of channel 2
11 212 Zero gas calibration of channel 3
12 -5 STORE (Saving the intermediate result to the result buffer)
13 41 Output result buffer 2
14 -6 CLEAR (Deleting the intermediate result of the calculator)
15 -7 END (End of program)
Sample
CO/SO
2
O
2
CO/SO
2
/O
2
Or
O
2
Valve
Zero-Cal. Channel 1
Zero-Cal. Channel 2
Span-Cal. Channel 3
PLC Output 1
Or
CO/SO
2
Valve
Span Cal. Channel 1
Span Cal. Channel 2
Zero Cal. Channel 3
PLC Output 2
5.1 Analyzer Module Setup
5.1.6 Programmable Locic Control (PLC)