ENUM
PET V2.2
Posts: 2
Hey together
I have a little problem.
How can I use ENUMs in the SPIN language.
I can find it in the manual that it should work.
But i can't find how?
i'm looking for a examble like in C:
enum Modus {play, stop};
Thanks for helping
I have a little problem.
How can I use ENUMs in the SPIN language.
I can find it in the manual that it should work.
But i can't find how?
i'm looking for a examble like in C:
enum Modus {play, stop};
Thanks for helping
Comments
Using those declarations you can do something like this:
or
Using your example
Post Edited (soshimo) : 12/20/2008 11:03:21 AM GMT
I think in the examble you have first to set the modus before you can use your case function.
But i know now how it works.
I didn't think how i can do it with two seperate deifnitions.
thanks