You were a little quick on showing your statehandler fb. I couldn't see the whole code and I didn't understand, how you have an integer indicating the state, when all your states are boolean (at least if its the same as in the "how to organize your project"-video)
@PLCskilltree6 ай бұрын
The complete code is available as a download in the full course which much more information.
@PLCskilltree6 ай бұрын
The integer is used as the state representation as a number. It’s used for defining the conditions for switching from one state to another. The boolean states are status flags for the actual states. You would use those booleans in other parts of your logic. Hope this clears it up.