r/PLC•
WheelInventorPLC

State machine in structured text, ENUM or INT?

Hi all,

I'm a process engineer rolling into a process control job (small startup, not enough funding to hire someone for this work).

I found two methods online of how people write their state machine in ST. Either with an integer state variable (e.g. iState) or with an ENUM.
What do you use? And why?

Posted Aug 28, 2026, 7:48 AM UTC

2047
Loading comments…