I would like implement a HSM in 61131-3. Doing some reading I understand that HSM's are a sort of subset of pushdown automata?
Most of the examples from other languages are using pointers and references, which I would like to avoid. Is it feasible to implement a HSM without using pointers or references?
I guess I need an event stack and a stack for the nesting of the stack?
Thanks