Connect with us

Codesys Sfc Example -

Then she wrote a parallel :

Crane_Up := TRUE; Acid_Drain_Valve := TRUE; // SD qualifier keeps this ON Emergency_Alerter := TRUE; Inside Step 0 's Entry Action: codesys sfc example

But then... nothing.

She went to the Action Definition for Step 20. Instead of putting Drain_Valve := FALSE in the step's exit action, she created a Global Action called Acid_Safety and set its qualifier to SD (Set Dominant—stays TRUE until explicitly reset). Then she wrote a parallel : Crane_Up :=

[Step 20: DIP] --(45s & no EStop)--> [Step 30: RINSE] | | (EStop_Pressed) v [Step 99: EMERGENCY_RETRACT] --(Acid_Level<5%)--> [Step 0: IDLE] Inside Step 99 's Action: Acid_Drain_Valve := TRUE