INST 262 (DCS and Fieldbus), section 2 Lab Automatically ...
INST 262 (DCS and Fieldbus), section 2 Lab Automatically ...
INST 262 (DCS and Fieldbus), section 2 Lab Automatically ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Question 6<br />
Examine this page of program code from a Siemens APOGEE system (written in Siemens’ “PPCL”<br />
programming language), then answer the following questions:<br />
02530 C<br />
02540 C IF THE ROOM TEMP IS LESS THAN HEATING SETPOINT THAN TURN ON THE HEATING PUMP<br />
02550 C ELSE SHUT OFF HEATING PUMP<br />
02560 C<br />
02570 IF ("MV.GH.2E:ROOM TEMP" .LT. "MV.GH.2E.HTG.STPT") THEN ON ("MV.GH.2E:DO 2")<br />
02580 IF ("MV.GH.2E:ROOM TEMP" .GT. "MV.GH.2E.HTG.STPT"+1) THEN OFF ("MV.GH.2E:DO 2")<br />
02590 C<br />
02600 C *****ROOM 3E CONTROLS*****<br />
02610 C<br />
0<strong>262</strong>0 C IF SOMEONE PUSHES THE OVERIDE BUTTON, THEN TURN ON THE EXHAUST FAN<br />
02630 C OVERRIDE FOR 2 HOURS<br />
02640 C<br />
02650 IF ("MV.GH.3E:DI OVRD SW" .EQ. ON) THEN SET (0,"MV.GH.3E.OT")<br />
02660 IF ("MV.GH.3E.OT" .GT. 1000) THEN SET (1000, "MV.GH.3E.OT")<br />
02670 IF ("MV.GH.3E.OT" .LT. 120) THEN ON ("MV.GH.3E.OVRD") ELSE OFF ("MV.GH.3E.OVRD")<br />
What is the significance of the letter C preceding many of the lines of code in this program?<br />
Identify the meanings of the following “operators” in Siemens PPCL code: .LT., .GT., .EQ..<br />
Explain how the “heating pump” code functions (lines 2570 <strong>and</strong> 2580) to turn the pump on <strong>and</strong> off.<br />
Explain how the “exhaust fan override” code functions (lines 2650 <strong>and</strong> 2670) to turn the fan on for two<br />
hours. Specifically, where does the code tell the Siemens controller to invoke a two-hour time delay?<br />
Line 6000 of this program (not shown on this page) instructs the controller to GOTO 00190, with 00190<br />
being a line near the beginning of the program (also not shown on this page). In fact, this is the only<br />
“GOTO” instruction in the entire program. Why do you think this “GOTO” instruction exists?<br />
Suggestions for Socratic discussion<br />
• Do you think it would be easier or more difficult to program custom control algorithms in a text-based<br />
language like PPCL or in a graphic-based language such as function blocks?<br />
file i00671<br />
26