


Label Homing_Arm2
	Slot 5 = Reset
	Wait Seconds 0.02
	Slot 5 = 0
	Label Counter3
		Slot(5) = Slot(5) + 1
		Wait Seconds 0.01
		If Slot(5) > 600	 Or Slot(10) = 0  		'switch normally closed and signal UP
			Label LoopSwitchArm2
				Slot(5) = Slot(5) - 1
				Wait Seconds 0.05
				If Slot (10) < 1000
					Goto LoopSwitchArm2
				EndIf
				Slot 5 = Reset
				Wait Seconds 0.02
				Slot 5 = 250
			Return
			
		EndIf
	Goto Counter3
Return


'EXEC v1 = Rnd : V2 = V1 + 99 : V3 = V2 + 1000
