Professional Documents
Culture Documents
Advanced Logic 8
8.1 Objectives
At the end of this section, you will be familiar with the following:
Alarming
Define Sequences
Whenever Statements
You’ve done it! Your boss has informed you that you are the only new hire that has
successfully provided a solution to the problems that have been laid before you.
You are bombarded with the urge to scream out “THERE CAN BE OOOOONLY
ONE!”, but you refrain because you realize that the boast itself, albeit funny, doesn’t
really make any sense. Only one what?... new hire?... that’s just silly….
You realize your boss has been speaking, during the celebration/contemplation and that
you didn’t hear what was said. You ask him to repeat himself one more time so you can
make sure you understand him. But, when he starts to explain that there needs to be a
few tweaks done in the model you can’t help but think that you need to schedule a trip to
the doctor. You think you have a problem focusing when your boss is talking…
You snap back and your boss says ok thanks and walks out. You’re in trouble because
now you don’t know what to do and you’ve already asked him to repeat himself once.
You look around frantically and then realize he left a sticky note listing his requests…
Create an alarm that will go off if the pressure at pump inlet ever drops below 0 psig.
Create logic such that if the suction pressure of the pump drops below zero, execute
the stopping sequence.
Alarm Logic
6. Open IPLiquid_Final.intran.
7. Insert alarm logic that is triggered if (P1:P- < 0). Use any name and message text
you like.
8. Comment out the current MACRO line of code and add the following:
Startup Sequence
The startup sequence should bring the line up as fast as possible, because time is money, without
pulling vacuum
10. Open back up IPLiquid_final.intran and add a DEF.SEQ, P1_START, that performs
the following:
Open P1.SUC
Open P1.DIS
Waits until P1.SUC is opened
Start P1
13. Go to Simulation > Submit Sequence… > and select P1_START. Does the pump
startup as expected? _________________________
15. Press the button in Model Builder to open the model directory.
20. Repeat #18 except select P1_STOP. Does the pump stop as expected? ___________
21. Use Simplot to create a time plot of P1:RPM, P1.SUC:FR, and P1.DIS:FR.
22. When the pump starts, does it do so only after P1.SUC:FR = 1? _____________
23. When the pump stops, does the suction valve close on after P1:RPM < 20? ________
Whenever Statement
You know that you will need to create a WHENEVER that stops the pump if vacuum
ever occurs upstream of the pump…
Note: The conditional for the WHENEVER should be false most of the time.
Summary/Conclusion
You have successfully done as your boss requested. You’ve updated the INPREP file to: