FellowWithLaptop/FB_CaseStateMachine
A simple function block to make it easier and clearer to program a state machine in structured text (IEC 61131-3). If you write your state machine with a CASE instruction and an enum, you might miss functions like an entry and exit step, timeout functions or logging possibilities. This module should show you how you can implement all these things. The example was created with TwinCAT and uses the TwinCAT Eventlogger. The basic concept is also possible in Codesys.
CC0-1.0