;********************************************** Header **************************************************
;Title			: Write Program Title Here
;Author			: Write Name Here
;Description		: Write Program Description Here
;			:
;			:	
;Version Number		: Write Version Number Here
;Date			: Enter Last Revision Date Here
;
;
;************************************************  I/O List  ************************************************
;	Input A1	-	not used 
;	Input A2	-	not used
;	Input A3	-	Dedicated Enable Input
;	Input A4	-	not used
;	Input B1	-	not used
;	Input B2	-	not used
;	Input B3	-	not used
;	Input B4	-	not used
;	Input C1	-	not used
;	Input C2	-	not used
;	Input C3	-	not used
;	Input C4	-	not used
;	
;	Output 1	-	not used	
;	Output 2	-	not used	
;	Output 3	-	not used	
;	Output 4	-	not used	
;
;	Analog In 1	-	not used
;	Analog In 2	-	not used
;	Analog Out	-	not used
;
;
;******************************** Initialize and Set Variables ****************************************
; Define Constants and Variables. Assign I/O and Initialize Variable Values 

;Define			; Define Names for Variables, I/O, Etc
UNITS = 0		; Set Program Units
ACCEL = 0		; Set Positioning Acceleration Rate
DECEL = 0		; Set Positioning Deceleration Rate
MAXV = 0		; Set MAximum Velocity for Position Move
;V1 = 			; Initialise Variables
;V2 = 


;************************************************ Events ************************************************
;Set Events handling here


;******************************************* Main Program ********************************************

; Example Program
PROGRAM_START:
ENABLE
MOVED  10			; Move to Position 1
OUT1 = 1			; Turn on output 1
WAIT TIME 500			; Delay 1/2 sec
OUT2 = 1			; Turn on output 2
WAIT TIME 500			; Delay 1/2 sec
OUT1 = 0			; Turn off output 1
MOVED -10			; Move to Position 2
OUT1 = 1			; Turn on output 1
WAIT TIME 500			; Delay 1/2 sec
OUT2 = 0			; Turn off output 2
WAIT TIME 500			; Delay 1/2 sec
OUT1 = 0			; Turn off output 1
GOTO PROGRAM_START
END


;******************************************* Sub-Routines ********************************************
;	Enter Sub-Routine code here


;************************************** Fault Handler Routine ****************************************
;	Enter Fault Handler code here
ON FAULT

ENDFAULT

;***************************************** End Program *******************************************
