The Seal-In in Text
Part of the Structured Text section of Coddy's PLC Programming journey. Lesson 3 of 17.
The seal-in is a branch: Start OR Motor, then Stop and the overload in series.
As text it is one line:
Motor := (Start OR Motor) AND Stop AND Overload;Motor reads its own value from the last scan, exactly like the Motor contact on the rung. Stop and Overload are still wired normally closed, so they read TRUE while all is well: write them without NOT, the way they took a normally open contact.
Challenge
EasyThe motor stops as soon as Start is released. Change the statement so the motor seals in and runs until Stop is pressed or the overload trips.
Try it yourself
Motor := Start AND Stop AND Overload;
All lessons in Structured Text
1From Rungs to Text
Your First StatementAND, OR and NOTThe Seal-In in TextIF and THENVariables in VARPractice on your own: PLC playground