I have a simple syntax question concerning Melfa Basic VI If...Then...Elsif...Endif statements.
What I want this routine to do is this - Based on the exteranl inputs run specific subroutine and if none are true goto a holding Position (posXXX).
The way I currently have it programmed is working except for when none of the Inputs are true, The program goes to the next subroutine.
*Box1, *Box2, *Box3 are subroutines. posXXX is the default/ holding position.
If M_In(11) = 1 Then *Box1
If M_In(12) = 1 Then *Box2
If M_In(13) = 1 Then *Box3
I have read all the Mitsubishi documentation on thes If/Then/Elseif statements and every time I try to include the last "Else" condition I get syntax errors.
Any help is appreciated, program examples welcome.
Thanks in advance.