You can save a file for a previous version by selecting File-> Save for previous version.
You have missed a typedef control, 'TwoPosValve1.ctl
At a quick glance, you may want to rethink all your local variables before you go much further in developing. From what you are saying, I think a state machine may be more relevant for what you are trying to do.
Would you mind giving a little more detailed description of what you are trying to do?
_____________________________
- Cheers, Ed