Please help me understand the most easy way to do the following in FC,
In C I can do this
Code: Select all
#define INITSTATE 1
#define RUNSTATE 2
#define ERRORSATE 3
then in some were in the code I can load this definition to a Varaible which is used to select the case of my case structure(Statemachine)
MachineState = RUN
Then in the case structure
Switch (MachineState )
and so on
How can I do this definitions in FC?

much appreciated