A High Level Alarm
Part of the Analog and Sequences section of Coddy's PLC Programming journey. Lesson 5 of 17.
An alarm tells the operator that something is outside its safe range. This tank is filled by hand: Start turns Fill on and Stop turns it off. If the operator walks away, it spills.
A high level alarm at 90 % catches that. With the level in percent, the rung reads like the rule itself:
An alarm only tells. The same condition can also act as an interlock: a normally closed Alarm contact in the fill rung turns Fill off the moment the alarm lights, so the tank cannot spill even with nobody watching. Real plants usually keep an alarm lit until the operator acknowledges it; this one goes out by itself.
Challenge
Medium- light
AlarmwhilePercentis 90 or more - add a normally closed
Alarmcontact to the fill rung
The tank starts at 80 %. Press Start and let it fill.
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"Raw","type":"DINT"},{"name":"Scaled","type":"DINT"},{"name":"Percent","type":"DINT"}],"rungs":[{"els":[{"t":"move","src":"Level","dst":"Raw"},{"t":"math","op":"MUL","a":"Raw","b":100,"dst":"Scaled"},{"t":"math","op":"DIV","a":"Scaled","b":32767,"dst":"Percent"}]},{"els":[{"t":"par","branches":[[{"t":"no","tag":"Start"}],[{"t":"no","tag":"Fill"}]]},{"t":"no","tag":"Stop"},{"t":"coil","tag":"Fill"}]},{"els":[]}]}All lessons in Analog and Sequences
1Analog Inputs
Fill to HighHysteresisRaw Analog ValuesScaling to PercentA High Level AlarmA ThermostatPractice on your own: PLC playground