Page 70 of 112
DMM-0200 Product User Guide
159 Swanson Road
Boxborough, MA 01719
Tel: 508-475-3400
Email: sales@dovermotion.com
ENDIF
Description:
Indicates end of IF operation
Syntax:
ENDIF Examples:
IF V1=1
X1000
WAITX
ENDIF
ENDSUB
Description:
Indicates end of subroutine
When ENDSUB is reached, the program returns to the previously called subroutine.
Note: Subroutine 31 is reserved for error handling
Syntax:
ENDSUB
Examples:
GOSUB 1
END
SUB 1
X0
WAITX
X1000
WAITX
ENDSUB
ENDWHILE
Description:
Indicate end of WHILE loop
Syntax:
ENDWHILE
Examples:
WHILE V1=1 ;***While V1 is 1 continue to loop
X0
WAITX
X1000
WAITX
ENDWHILE ;***End of while loop so go back to WHILE
EO
Description:
Read: Gets the enable output value
Write: Sets the enable output value
Performax 2EX has 2 enable outputs.
Syntax:
Read: [variable] = EO
Write: EO = [value]
EO = [variable]
Conditional: IF EO= [variable]