

Button 2 Text Home
Button 1 Text "Home"

Button 7 Text "START TEST"
Button 8 Text "Lower Handler"


' --------------------------------------------- Initializations
Slot 22 = 3

Button 8 Slot 157                    'emergency Button

Button 1 Text ciclo-1
Button 2 Text ciclo-2
Button 3 Text ciclo-3
Button 4 Text ciclo-4
Button 5 Text ciclo-5
Button 6 Text ciclo-6
Button 7 Text home
Button 8 Text Reset
Button 9 Text cella-1-0
Button 10 Text cella-1-45
Button 11 Text cella-1-180
Button 12 Text cella-2-0
Button 13 Text cella-2-90
Button 14 Text cella-2-180
Button 15 Text cella-3-0
Button 16 Text cella-3-45
Button 17 Text cella-3-180
Button 18 Text jolly-0
Button 19 Text jolly-45
Button 20 Text jolly-90
Button 21 Text jolly-135
Button 22 Text jolly-180
Button 23 Text cella-2+90
Button 24 Text jolly+90

Button 1 Disabled
Button 2 Disabled
Button 3 Disabled
Button 4 Disabled
Button 5 Disabled
Button 6 Disabled
Button 7 Enabled
Button 8 Enabled
Button 9 Disabled
Button 10 Disabled
Button 11 Disabled
Button 12 Disabled
Button 13 Disabled
Button 14 Disabled
Button 15 Disabled
Button 16 Disabled
Button 17 Disabled
Button 18 Disabled
Button 19 Disabled
Button 20 Disabled
Button 21 Disabled
Button 22 Disabled
Button 23 Disabled
Button 24 Disabled

Stop
v1 = v2 * v3
kkkkkkkkkkkkkkkkkkk

' ----------------------------------FUNCTION RESET
Label Reset
	Start Gcode -1
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	Output Slot 104 0
	Output Slot 105 0
	Output Slot 106 0
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	Output Slot 110 0
	Output Slot 111 0
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	Output Slot 115 0
	Output Slot 116 0
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	Output Slot 120 0
	Output Slot 121 0
	Output Slot 122 0
	Output Slot 123 0
	Output Slot 124 0
	Output Slot 125 0
	Output Slot 126 0
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	Output Slot 135 0
	Output Slot 158 0
	
'Output Slot 1 Sleep
'Output Slot 2 Sleep
'Output Slot 3 Sleep
	
	
	Button 7 Enabled
	Button 8 Enabled
	
	
Stop

' ----------------------------------Button Functions

Label home
'Start Gcode -1
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	
	Output Slot 127 1000
	Output Slot 129 1000
	Output Slot 131 1000
	Output Slot 133 1000
	
	
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	
	
'----------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	
'----------------------------CICLO ROTAZIONE cella 3 a 0°
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 148 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 152 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
'-------------------------------------
	
	Output Slot 127 0
	Output Slot 129 0
	Output Slot 131 0
	Output Slot 133 0
	Wait Seconds 0,2
	Output Slot 128 1000
	Output Slot 130 1000
	Output Slot 132 1000
	Output Slot 134 1000
	Wait Seconds 1,5
	Output Slot 128 0
	Output Slot 130 0
	Output Slot 132 0
	Output Slot 134 0
	
	
	
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	
	
Stop



'----------------------------------------------MANUALE CELLE 1-2-3-jolly


Label cella-1-0
'Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop


Label cella-1-45
	Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Enabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 141 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop


Label cella-1-180
	Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Enabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 142 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop

'---------------------------------------------------manuale cella 2
Label cella-2-0
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Enabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 129 0
	
Stop

Label cella-2-90
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Enabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 145 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Slot 129 = 0
	
Stop

Label cella-2+90
'Start Gcode -1
	Slot 129 = 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 23 Enabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 13 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 109 0
	Wait Slot 160 Low
	Output Slot 109 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 129 0
	
Stop


Label cella-2-180
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Enabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 146 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 129 0
	
Stop
'---------------------------------------------------manuale cella 3
Label cella-3-0
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Enabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 148 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 131 0
	
Stop


Label cella-3-45
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Enabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 131 0
	
Stop


Label cella-3-180
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Enabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 150 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 131 0
	
Stop
'---------------------------------------------------manuale jolly
Label jolly-0
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Enabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 152 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-45
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Enabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 153 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-90
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Enabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 154 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly+90
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 24 Enabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 20 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 119 0
	Wait Slot 159 Low
	Output Slot 119 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop



Label jolly-135
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Enabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-180
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 23 Disabled
	Button 24 Disabled
	Button 22 Enabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 156 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop
' ----------------------------------------- Start  PARTE CICLI -------------CICLO 1
Label ciclo-1
	Button 8 Enabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 102 1000   ' Set freno tavola 1
	Output Slot 103 1000   ' Set freno tavola 1
	
	
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 verde
	Output Slot 130 1000     'led 2 verde
	Output Slot 132 1000     'led 3 verde
	Output Slot 133 1000     'led jolly rosso
	
	
	Output Slot 122 1000     ' Start rulliera ingresso
' ---------------------------------------
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
' ---------------------------------------
	Wait Slot 139 Low        ' attesa sensore pos. skid in cella 1
	Output Slot 122 0         ' Stop rulliera ingresso
	Output Slot 105 0         ' Stop rulliera centrale
	Wait Seconds 0,3          ' tempo attesa partenza Gcode 1 TETTO
'-----------------------------------------
	Start Gcode 1                  ' CICLO TETTO
	Wait Seconds 20,5          ' TEMPO ESECUZIONE TETTO
	Output Slot 105 1000     ' Start rulliera centrale avanti veloce
	Wait Seconds 4               ' tempo di marcia avanti veloce
	Output Slot 105 0           ' Stop  rulliera centrale
	Wait Seconds 9               ' TEMPO ESECUZIONE BAULE DEF INIZIO BAULE
	Output Slot 106 1000     ' inversione rotazione rulliera insieme a g code
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Wait Seconds 5               ' TEMPO DI RITORNO DEFINISCE POS INIZIO COFANO
	Output Slot 106 0           ' Stop   RULLIERA CENTRALE
	Wait Seconds 12             ' TEMPO  ESECUZIONE COFANO
	Output Slot 105 1000     ' Start  RULLIERA CENTRALE
	Wait Slot 139 Low           ' attesa sensore pos. skid in cella 1
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait GcodeEnd               ' FINE CICLO TETTO BAULE COFANO MONTANTE E FIANCO 1
	Wait Seconds 0,3
'----------------------------CICLO ROTAZIONE A 180
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 180° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
'----------------------------CICLO FIANCO 2
	Start Gcode 2
	Wait Seconds 7                ' TEMPO FINO A PIANTONE
	Output Slot 105 1000      ' Start rulliera centrale indietro
	Wait Seconds 7                ' TEMPO RULLIERA INDIETRO
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait Seconds 0,3
	Output Slot 104 600         'set pwm rulliera tavola 1Lenta
	Output Slot 106 1000      ' Start RULLIERA CENTRALE
	Wait Seconds 15,3           ' TEMPO RULLIERA AVANTI ULTIMO MOVIMENTO
	Output Slot 106 0            ' Stop  RULLIERA CENTRALE
	Output Slot 104 1000      'set pwm rulliera tavola 1
	Wait GcodeEnd
	Output Slot 105 1000      ' Start rulliera centrale indietro
	Wait Slot 139 Low            ' attesa sensore pos. skid in cella 1
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait Seconds 0,3
'------------------------    CICLO ROTAZIONE TAVOLA 1  IN HOME
	Output Slot 102 0          ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low         ' rotazione 0° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0     ' Set freno tavola 1
	Output Slot 103 0     ' Set freno tavola 1
	Output Slot 101 0     ' Set pwm tavola 1
	
	
'------------------------ EFFETTUATO ciclo robot skid a zero °pronto a uscire
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 124 1000     ' Start rulliera passaggio  2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 2
	Output Slot 111 1000     ' Start rulliera tavola 2
	Wait Seconds 15
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Slot 143 Low          ' sensore Stop  rulliera 2
	Output Slot 111 0           ' Stop rulliera tavola 2
	Output Slot 124 0           ' Stop rulliera tavola corta
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 0,3               ' attesa in cella 2
	Output Slot 111 1000     ' Start  rulliera tavola 2
	Output Slot 125 1000     ' Start  rulliera passaggio
	Wait Seconds 15
	Output Slot 111 0           ' Stop  rulliera 2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 3
	Output Slot 116 1000     ' Start rulliera tavola 3
	Wait Slot 147 Low          ' sensore Stop  rulliera 3
	Output Slot 125 0           ' Stop rulliera corta
	Output Slot 116 0           ' Stop  rulliera 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,3               ' attesa in cella 3
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop

'------------------------------------------------CICLO 2

Label ciclo-2
	Button 8 Enabled
	Button 1 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 127 1000     'led 1 ROSSO
	Output Slot 130 1000     'led 2 verde
	Output Slot 132 1000     'led 3 verde
	Output Slot 134 1000     'led jolly verde
	
	
	
	
	
'------------------------  Start PRIMA PARTE CICLO 2
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
'------------------------  Set posizione cella jolly a 45°
	
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 153 Low          ' rotazione 45°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,1
	Output Slot 118 0
	Output Slot 119 0
	
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'----------------------------CICLO ROTAZIONE cella 1 a 45°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 141 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	
'-----------------------------------Partenza rull. diagonale e rull tav 1
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 126 1000     ' Start  rulliera diagonale
	Wait Seconds 15
	
'------------------------  Set posizione cella 2 a +90°
	
	Output Slot 108 1000     ' Set freno  cella 2
	Output Slot 109 1000     ' Set freno  cella 2
	Output Slot 109 0           ' Start rotazione Lenta  cella 2
	Wait Slot 160 Low          ' rotazione +90°  cella 2
	Output Slot 109 1000     ' Stop_rotazione Lenta cella 2
	Wait Seconds 0,3
	Output Slot 108 0
	Output Slot 109 0
	
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'-----------------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 103 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Wait Seconds 0,5
	Output Slot 103 1000     ' Stop_rotazione Lenta tavola 1
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3            ' attesa in cella 1
	
	Wait Slot 151 Low          ' sensore Stop jolly
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 126 0           ' Stop  rulliera diagonale
	Wait Seconds 1
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a +90°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 159 Low          ' rotazione 90°  jolly
	Output Slot 119 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,3            ' attesa in cella jolly
	
'-----------------------------------Partenza rull. verticale e rull jolly
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 158 1000     ' Start  rulliera verticale
	Wait Seconds 14
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 111 1000     ' Start  rulliera tavola cella 2
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Slot 143 Low          ' sensore Stop cella  2
	Output Slot 111 0           ' Stop  rulliera cella 2
	Output Slot 158 0           ' Stop  rulliera verticale
	Wait Seconds 1
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 180°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
	
	Output Slot 111 1000     ' Start  rulliera tavola 2
	Output Slot 125 1000     ' Start  rulliera passaggio
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 3
	Output Slot 116 1000     ' Start rulliera tavola 3
	Wait Seconds 12
	Output Slot 111 0            ' Stop  rulliera tavola 2
	Wait Slot 147 Low           ' sensore Stop skid  tavola 3
	Output Slot 116 0            ' Stop  rulliera 3
	Output Slot 125 0            ' Stop  rulliera passaggio
	Wait Seconds 2                ' attesa in cella 3
	
	
'-----------------------------------CICLO ROTAZIONE cella 3 a180°
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	
	
'-----------------------------------CICLO ROTAZIONE cella 3 a0°
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,3            ' attesa in cella 3 prima di uscita
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop




'------------------------------------------------CICLO 3

Label ciclo-3
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 129 1000     'led 2 ROSSO
	Output Slot 132 1000     'led 3 verde
	Output Slot 134 1000     'led jolly verde
	
'------------------------  Start PRIMA PARTE CICLO 3
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
'------------------------  Set posizione cella jolly a 45°
	
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 153 Low          ' rotazione 45°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,1
	Output Slot 118 0
	Output Slot 119 0
	
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 45°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 141 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
'-----------------------------------Partenza rull. diagonale e rull tav jolly
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 126 1000     ' Start  rulliera diagonale
	Wait Seconds 14
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'-----------------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 103 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Wait Seconds 0,5
	Output Slot 103 1000     ' Stop_rotazione Lenta tavola 1
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3            ' attesa in cella 1
	
	Wait Slot 151 Low          ' sensore Stop jolly
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 126 0           ' Stop  rulliera diagonale
	Wait Seconds 1
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 135°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 155 Low          ' rotazione 135°  jolly
	Wait Seconds 0,5
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 1               ' attesa in cella jolly
	
	
	
'-----------------------------------Partenza rull. diagonale
	Output Slot 135 1000     ' Start  rulliera diagonale
	Output Slot 121 1000     ' Start  rulliera jolly
	
	Output Slot 113 1000     ' Set freno  CELLA 3
	Output Slot 114 1000     ' Set freno  CELLA 3
	Output Slot 114 0           ' Start rotazione Lenta  CELLA 3
	
	
	Wait Slot 149 Low          ' rotazione 45°  CELLA 3
	Wait Seconds 0,5
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000     ' Stop_rotazione Lenta CELLA 3
	Wait Seconds 0,3            ' attesa in cella CELLA 3
	
	
	Wait Seconds 13
	Output Slot 121 0           ' Stop  rulliera jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,2            ' attesa in cella jolly
	
	Output Slot 116 1000     ' Start rulliera tavola 3
	
	Wait Slot 147 Low          ' Stop maccHina in  tavola 3
	Output Slot 116 0           ' Stop  rulliera 3
	Output Slot 135 0           ' Stop  rulliera diagonale
	Wait Seconds 0,5           ' attesa in cella 3
	
	
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop

'--------------------------------CICLO 4------------------------------------------

Label ciclo-4
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 130 1000     'led 2 verde
	Output Slot 131 1000     'led 3 rosso
	Output Slot 134 1000     'led jolly verde
	
	
	
'------------------------  Start PRIMA PARTE CICLO 4
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 90°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 154 Low          ' rotazione 90°  jolly
	Output Slot 118 1000
	Wait Seconds 0,3            ' attesa in cella jolly
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Seconds 3
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 20
	
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 124 1000     ' Start rulliera passaggio  2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 2
	Output Slot 111 1000     ' Start rulliera tavola 2
	Wait Seconds 12
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Slot 143 Low          ' sensore Stop  rulliera 2
	Output Slot 111 0           ' Stop rulliera tavola 2
	Output Slot 124 0           ' Stop rulliera tavola corta
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
'----------------------------CICLO ROTAZIONE cella 2 a -90° ingresso in jolly
	Output Slot 108 1000     ' Set freno  2
	Output Slot 109 1000     ' Set freno  2
	Output Slot 109 0           ' Start rotazione Lenta  2
	Wait Slot 145 Low
	Wait Seconds 0,5
	Output Slot 109 1000     ' Stop_rotazione Lenta 2
	Output Slot 108 0
	Wait Slot 145 Low
	Output Slot 108 1000
	Wait Seconds 0,3            ' attesa in cella 2
	
	Output Slot 111 1000     ' Start rulliera tavola 2
	Output Slot 136 1000     ' Start rulliera verticale verso jolly
	Wait Seconds 15
	Output Slot 111 0           ' Stop rulliera tavola 2
	Wait Seconds 1
	Output Slot 121 1000     ' Start rulliera tavola jolly
	
	Wait Slot 151 Low
	Output Slot 136 0           ' Stop rulliera verticale verso jolly
	Output Slot 121 0           ' Stop rulliera tavola jolly
	Wait Seconds 0,3
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 135°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 155 Low          ' rotazione 135°  jolly
	Wait Seconds 0,5
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 1               ' attesa in cella jolly
	
'-----------------------------------Partenza rull. diagonale
	Output Slot 135 1000     ' Start  rulliera diagonale
	Output Slot 121 1000     ' Start  rulliera jolly
	
	Output Slot 113 1000     ' Set freno  CELLA 3
	Output Slot 114 1000     ' Set freno  CELLA 3
	Output Slot 114 0           ' Start rotazione Lenta  CELLA 3
	Wait Slot 149 Low          ' rotazione 45°  CELLA 3
	Wait Seconds 0,5
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000     ' Stop_rotazione Lenta CELLA 3
	Wait Seconds 0,3            ' attesa in cella CELLA 3
	
	
	Wait Seconds 13
	Output Slot 121 0           ' Stop  rulliera jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,2            ' attesa in cella jolly
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 109 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Wait Seconds 0,5
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 0,3            ' attesa in cella 1
	
	
	Output Slot 116 1000     ' Start rulliera tavola 3
	
	Wait Slot 147 Low          ' Stop maccHina in  tavola 3
	Output Slot 116 0           ' Stop  rulliera 3
	Output Slot 135 0           ' Stop  rulliera diagonale
	Wait Seconds 0,5            ' attesa in cella 3
	
	
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,5               ' attesa in cella 3
	
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
Stop
'2345678901234567890123456789012345678901234567890


' --------------------------------------------- Initializations
Slot 22 = 3

Button

Button 8 Slot 157                    'emergency Button

Button 1 Text ciclo-1
Button 2 Text ciclo-2
Button 3 Text ciclo-3
Button 4 Text ciclo-4
Button 5 Text ciclo-5
Button 6 Text ciclo-6
Button 7 Text home
Button 8 Text Reset
Button 9 Text cella-1-0
Button 10 Text cella-1-45
Button 11 Text cella-1-180
Button 12 Text cella-2-0
Button 13 Text cella-2-90
Button 14 Text cella-2-180
Button 15 Text cella-3-0
Button 16 Text cella-3-45
Button 17 Text cella-3-180
Button 18 Text jolly-0
Button 19 Text jolly-45
Button 20 Text jolly-90
Button 21 Text jolly-135
Button 22 Text jolly-180
Button 23 Text cella-2+90
Button 24 Text jolly+90

Button 1 Disabled
Button 2 Disabled
Button 3 Disabled
Button 4 Disabled
Button 5 Disabled
Button 6 Disabled
Button 7 Enabled
Button 8 Enabled
Button 9 Disabled
Button 10 Disabled
Button 11 Disabled
Button 12 Disabled
Button 13 Disabled
Button 14 Disabled
Button 15 Disabled
Button 16 Disabled
Button 17 Disabled
Button 18 Disabled
Button 19 Disabled
Button 20 Disabled
Button 21 Disabled
Button 22 Disabled
Button 23 Disabled
Button 24 Disabled

Stop


' ----------------------------------FUNCTION RESET
Label Reset
	Start Gcode -1
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	Output Slot 104 0
	Output Slot 105 0
	Output Slot 106 0
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	Output Slot 110 0
	Output Slot 111 0
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	Output Slot 115 0
	Output Slot 116 0
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	Output Slot 120 0
	Output Slot 121 0
	Output Slot 122 0
	Output Slot 123 0
	Output Slot 124 0
	Output Slot 125 0
	Output Slot 126 0
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	Output Slot 135 0
	Output Slot 158 0
	
'Output Slot 1 Sleep
'Output Slot 2 Sleep
'Output Slot 3 Sleep
	
	
	Button 7 Enabled
	Button 8 Enabled
	
	
Stop

' ----------------------------------Button Functions

Label home
'Start Gcode -1
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	
	Output Slot 127 1000
	Output Slot 129 1000
	Output Slot 131 1000
	Output Slot 133 1000
	
	
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	
	
'----------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	
'----------------------------CICLO ROTAZIONE cella 3 a 0°
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 148 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 152 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
'-------------------------------------
	
	Output Slot 127 0
	Output Slot 129 0
	Output Slot 131 0
	Output Slot 133 0
	Wait Seconds 0,2
	Output Slot 128 1000
	Output Slot 130 1000
	Output Slot 132 1000
	Output Slot 134 1000
	Wait Seconds 1,5
	Output Slot 128 0
	Output Slot 130 0
	Output Slot 132 0
	Output Slot 134 0
	
	
	
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	
	
Stop



'-------------------------------------------------MANUALE CELLE 1-2-3-jolly


Label cella-1-0
'Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop


Label cella-1-45
	Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Enabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 141 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop


Label cella-1-180
	Start Gcode -1
	Output Slot 127 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Enabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400
	Output Slot 102 1000
	Output Slot 103 1000
	Output Slot 102 0
	Wait Slot 142 Low
	Output Slot 102 1000
	Wait Seconds 0,3
	Output Slot 101 0
	Output Slot 102 0
	Output Slot 103 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 127 0
	
Stop

'---------------------------------------------------manuale cella 2
Label cella-2-0
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Enabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 129 0
	
Stop

Label cella-2-90
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Enabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 145 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Slot 129 = 0
	
Stop

Label cella-2+90
'Start Gcode -1
	Slot 129 = 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 23 Enabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 13 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 109 0
	Wait Slot 160 Low
	Output Slot 109 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 129 0
	
Stop


Label cella-2-180
'Start Gcode -1
	Output Slot 129 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Enabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 107 400
	Output Slot 108 1000
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 146 Low
	Output Slot 108 1000
	Wait Seconds 0,3
	Output Slot 107 0
	Output Slot 108 0
	Output Slot 109 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 129 0
	
Stop
'---------------------------------------------------manuale cella 3
Label cella-3-0
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Enabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 148 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 131 0
	
Stop


Label cella-3-45
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Enabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 131 0
	
Stop


Label cella-3-180
'Start Gcode -1
	Output Slot 131 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Enabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 112 400
	Output Slot 113 1000
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 150 Low
	Output Slot 113 1000
	Wait Seconds 0,3
	Output Slot 112 0
	Output Slot 113 0
	Output Slot 114 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	
	Output Slot 131 0
	
Stop
'---------------------------------------------------manuale jolly
Label jolly-0
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Enabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 152 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-45
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Enabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 153 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-90
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Enabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 154 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly+90
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 24 Enabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 20 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 119 0
	Wait Slot 159 Low
	Output Slot 119 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop



Label jolly-135
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Enabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop

Label jolly-180
'Start Gcode -1
	Output Slot 133 1000
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 8 Enabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 23 Disabled
	Button 24 Disabled
	Button 22 Enabled
	
	Output Slot 117 400
	Output Slot 118 1000
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 156 Low
	Output Slot 118 1000
	Wait Seconds 0,3
	Output Slot 117 0
	Output Slot 118 0
	Output Slot 119 0
	
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
	Output Slot 133 0
	
Stop
' ---------------------------- Start  PARTE CICLI -------------CICLO 1
Label ciclo-1
	Button 8 Enabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 102 1000   ' Set freno tavola 1
	Output Slot 103 1000   ' Set freno tavola 1
	
	
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 verde
	Output Slot 130 1000     'led 2 verde
	Output Slot 132 1000     'led 3 verde
	Output Slot 133 1000     'led jolly rosso
	
	
	Output Slot 122 1000     ' Start rulliera ingresso
' ---------------------------------------
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
' ---------------------------------------
	Wait Slot 139 Low        ' attesa sensore pos. skid in cella 1
	Output Slot 122 0         ' Stop rulliera ingresso
	Output Slot 105 0         ' Stop rulliera centrale
	Wait Seconds 0,3          ' tempo attesa partenza Gcode 1 TETTO
'-----------------------------------------
	Start Gcode 1                  ' CICLO TETTO
	Wait Seconds 20,5          ' TEMPO ESECUZIONE TETTO
	Output Slot 105 1000     ' Start rulliera centrale avanti veloce
	Wait Seconds 4               ' tempo di marcia avanti veloce
	Output Slot 105 0           ' Stop  rulliera centrale
	Wait Seconds 9               ' TEMPO ESECUZIONE BAULE DEF INIZIO BAULE
	Output Slot 106 1000     ' inversione rotazione rulliera insieme a g code
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Wait Seconds 5               ' TEMPO DI RITORNO DEFINISCE POS INIZIO COFANO
	Output Slot 106 0           ' Stop   RULLIERA CENTRALE
	Wait Seconds 12             ' TEMPO  ESECUZIONE COFANO
	Output Slot 105 1000     ' Start  RULLIERA CENTRALE
	Wait Slot 139 Low           ' attesa sensore pos. skid in cella 1
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait GcodeEnd               ' FINE CICLO TETTO BAULE COFANO MONTANTE E FIANCO 1
	Wait Seconds 0,3
'----------------------------CICLO ROTAZIONE A 180
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 180° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
'----------------------------CICLO FIANCO 2
	Start Gcode 2
	Wait Seconds 7                ' TEMPO FINO A PIANTONE
	Output Slot 105 1000      ' Start rulliera centrale indietro
	Wait Seconds 7                ' TEMPO RULLIERA INDIETRO
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait Seconds 0,3
	Output Slot 104 600         'set pwm rulliera tavola 1Lenta
	Output Slot 106 1000      ' Start RULLIERA CENTRALE
	Wait Seconds 15,3           ' TEMPO RULLIERA AVANTI ULTIMO MOVIMENTO
	Output Slot 106 0            ' Stop  RULLIERA CENTRALE
	Output Slot 104 1000      'set pwm rulliera tavola 1
	Wait GcodeEnd
	Output Slot 105 1000      ' Start rulliera centrale indietro
	Wait Slot 139 Low            ' attesa sensore pos. skid in cella 1
	Output Slot 105 0            ' Stop  RULLIERA CENTRALE
	Wait Seconds 0,3
'------------------------    CICLO ROTAZIONE TAVOLA 1  IN HOME
	Output Slot 102 0          ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low         ' rotazione 0° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0     ' Set freno tavola 1
	Output Slot 103 0     ' Set freno tavola 1
	Output Slot 101 0     ' Set pwm tavola 1
	
	
'------------------------ EFFETTUATO ciclo robot skid a zero °pronto a uscire
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 124 1000     ' Start rulliera passaggio  2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 2
	Output Slot 111 1000     ' Start rulliera tavola 2
	Wait Seconds 15
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Slot 143 Low          ' sensore Stop  rulliera 2
	Output Slot 111 0           ' Stop rulliera tavola 2
	Output Slot 124 0           ' Stop rulliera tavola corta
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 0,3               ' attesa in cella 2
	Output Slot 111 1000     ' Start  rulliera tavola 2
	Output Slot 125 1000     ' Start  rulliera passaggio
	Wait Seconds 15
	Output Slot 111 0           ' Stop  rulliera 2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 3
	Output Slot 116 1000     ' Start rulliera tavola 3
	Wait Slot 147 Low          ' sensore Stop  rulliera 3
	Output Slot 125 0           ' Stop rulliera corta
	Output Slot 116 0           ' Stop  rulliera 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,3               ' attesa in cella 3
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop

'------------------------------------------------CICLO 2

Label ciclo-2
	Button 8 Enabled
	Button 1 Disabled
	Button 3 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 127 1000     'led 1 ROSSO
	Output Slot 130 1000     'led 2 verde
	Output Slot 132 1000     'led 3 verde
	Output Slot 134 1000     'led jolly verde
	
	
	
	
	
'------------------------  Start PRIMA PARTE CICLO 2
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
'------------------------  Set posizione cella jolly a 45°
	
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 153 Low          ' rotazione 45°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,1
	Output Slot 118 0
	Output Slot 119 0
	
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'----------------------------CICLO ROTAZIONE cella 1 a 45°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 141 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	
'-----------------------------------Partenza rull. diagonale e rull tav 1
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 126 1000     ' Start  rulliera diagonale
	Wait Seconds 15
	
'------------------------  Set posizione cella 2 a +90°
	
	Output Slot 108 1000     ' Set freno  cella 2
	Output Slot 109 1000     ' Set freno  cella 2
	Output Slot 109 0           ' Start rotazione Lenta  cella 2
	Wait Slot 160 Low          ' rotazione +90°  cella 2
	Output Slot 109 1000     ' Stop_rotazione Lenta cella 2
	Wait Seconds 0,3
	Output Slot 108 0
	Output Slot 109 0
	
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'-----------------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 103 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Wait Seconds 0,5
	Output Slot 103 1000     ' Stop_rotazione Lenta tavola 1
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3            ' attesa in cella 1
	
	Wait Slot 151 Low          ' sensore Stop jolly
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 126 0           ' Stop  rulliera diagonale
	Wait Seconds 1
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a +90°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 159 Low          ' rotazione 90°  jolly
	Output Slot 119 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,3            ' attesa in cella jolly
	
'-----------------------------------Partenza rull. verticale e rull jolly
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 158 1000     ' Start  rulliera verticale
	Wait Seconds 14
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 111 1000     ' Start  rulliera tavola cella 2
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Slot 143 Low          ' sensore Stop cella  2
	Output Slot 111 0           ' Stop  rulliera cella 2
	Output Slot 158 0           ' Stop  rulliera verticale
	Wait Seconds 1
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 180°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
	
	Output Slot 111 1000     ' Start  rulliera tavola 2
	Output Slot 125 1000     ' Start  rulliera passaggio
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 3
	Output Slot 116 1000     ' Start rulliera tavola 3
	Wait Seconds 12
	Output Slot 111 0            ' Stop  rulliera tavola 2
	Wait Slot 147 Low           ' sensore Stop skid  tavola 3
	Output Slot 116 0            ' Stop  rulliera 3
	Output Slot 125 0            ' Stop  rulliera passaggio
	Wait Seconds 2                ' attesa in cella 3
	
	
'-----------------------------------CICLO ROTAZIONE cella 3 a180°
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	
	
'-----------------------------------CICLO ROTAZIONE cella 3 a0°
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,3            ' attesa in cella 3 prima di uscita
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop




'------------------------------------------------CICLO 3

Label ciclo-3
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 129 1000     'led 2 ROSSO
	Output Slot 132 1000     'led 3 verde
	Output Slot 134 1000     'led jolly verde
	
'------------------------  Start PRIMA PARTE CICLO 3
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
'------------------------  Set posizione cella jolly a 45°
	
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 153 Low          ' rotazione 45°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,1
	Output Slot 118 0
	Output Slot 119 0
	
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 45°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 141 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
'-----------------------------------Partenza rull. diagonale e rull tav jolly
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 126 1000     ' Start  rulliera diagonale
	Wait Seconds 14
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'-----------------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 103 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Wait Seconds 0,5
	Output Slot 103 1000     ' Stop_rotazione Lenta tavola 1
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3            ' attesa in cella 1
	
	Wait Slot 151 Low          ' sensore Stop jolly
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 126 0           ' Stop  rulliera diagonale
	Wait Seconds 1
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 135°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 155 Low          ' rotazione 135°  jolly
	Wait Seconds 0,5
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 1               ' attesa in cella jolly
	
	
	
'-----------------------------------Partenza rull. diagonale
	Output Slot 135 1000     ' Start  rulliera diagonale
	Output Slot 121 1000     ' Start  rulliera jolly
	
	Output Slot 113 1000     ' Set freno  CELLA 3
	Output Slot 114 1000     ' Set freno  CELLA 3
	Output Slot 114 0           ' Start rotazione Lenta  CELLA 3
	
	
	Wait Slot 149 Low          ' rotazione 45°  CELLA 3
	Wait Seconds 0,5
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000     ' Stop_rotazione Lenta CELLA 3
	Wait Seconds 0,3            ' attesa in cella CELLA 3
	
	
	Wait Seconds 13
	Output Slot 121 0           ' Stop  rulliera jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,2            ' attesa in cella jolly
	
	Output Slot 116 1000     ' Start rulliera tavola 3
	
	Wait Slot 147 Low          ' Stop maccHina in  tavola 3
	Output Slot 116 0           ' Stop  rulliera 3
	Output Slot 135 0           ' Stop  rulliera diagonale
	Wait Seconds 0,5           ' attesa in cella 3
	
	
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop

'----------------------------CICLO 4----------------------------------------

Label ciclo-4
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 130 1000     'led 2 verde
	Output Slot 131 1000     'led 3 rosso
	Output Slot 134 1000     'led jolly verde
	
	
	
'------------------------  Start PRIMA PARTE CICLO 4
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 90°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 154 Low          ' rotazione 90°  jolly
	Output Slot 118 1000
	Wait Seconds 0,3            ' attesa in cella jolly
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Seconds 3
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 20
	
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 124 1000     ' Start rulliera passaggio  2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 2
	Output Slot 111 1000     ' Start rulliera tavola 2
	Wait Seconds 12
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Slot 143 Low          ' sensore Stop  rulliera 2
	Output Slot 111 0           ' Stop rulliera tavola 2
	Output Slot 124 0           ' Stop rulliera tavola corta
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	
'----------------------------CICLO ROTAZIONE cella 2 a -90° ingresso in jolly
	Output Slot 108 1000     ' Set freno  2
	Output Slot 109 1000     ' Set freno  2
	Output Slot 109 0           ' Start rotazione Lenta  2
	Wait Slot 145 Low
	Wait Seconds 0,5
	Output Slot 109 1000     ' Stop_rotazione Lenta 2
	Output Slot 108 0
	Wait Slot 145 Low
	Output Slot 108 1000
	Wait Seconds 0,3            ' attesa in cella 2
	
	Output Slot 111 1000     ' Start rulliera tavola 2
	Output Slot 136 1000     ' Start rulliera verticale verso jolly
	Wait Seconds 15
	Output Slot 111 0           ' Stop rulliera tavola 2
	Wait Seconds 1
	Output Slot 121 1000     ' Start rulliera tavola jolly
	
	Wait Slot 151 Low
	Output Slot 136 0           ' Stop rulliera verticale verso jolly
	Output Slot 121 0           ' Stop rulliera tavola jolly
	Wait Seconds 0,3
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 135°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 155 Low          ' rotazione 135°  jolly
	Wait Seconds 0,5
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 1               ' attesa in cella jolly
	
'-----------------------------------Partenza rull. diagonale
	Output Slot 135 1000     ' Start  rulliera diagonale
	Output Slot 121 1000     ' Start  rulliera jolly
	
	Output Slot 113 1000     ' Set freno  CELLA 3
	Output Slot 114 1000     ' Set freno  CELLA 3
	Output Slot 114 0           ' Start rotazione Lenta  CELLA 3
	Wait Slot 149 Low          ' rotazione 45°  CELLA 3
	Wait Seconds 0,5
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000     ' Stop_rotazione Lenta CELLA 3
	Wait Seconds 0,3            ' attesa in cella CELLA 3
	
	
	Wait Seconds 13
	Output Slot 121 0           ' Stop  rulliera jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,2            ' attesa in cella jolly
	
'-----------------------------------CICLO ROTAZIONE cella 2 a 0°
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 109 0           ' Start rotazione Lenta tavola 2
	Wait Slot 144 Low          ' rotazione 0° tavola 2
	Wait Seconds 0,5
	Output Slot 109 1000
	Output Slot 108 0
	Wait Slot 144 Low
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 0,3            ' attesa in cella 1
	
	
	Output Slot 116 1000     ' Start rulliera tavola 3
	
	Wait Slot 147 Low          ' Stop maccHina in  tavola 3
	Output Slot 116 0           ' Stop  rulliera 3
	Output Slot 135 0           ' Stop  rulliera diagonale
	Wait Seconds 0,5            ' attesa in cella 3
	
	
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 0,5               ' attesa in cella 3
	
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
Stop
'2345678901234567890123456789012345678901234567890



'-----------------------------------CICLO ROTAZIONE cella 3 a180°
Output Slot 113 1000     ' Set freno tavola 3
Output Slot 114 1000     ' Set freno tavola 3
Output Slot 113 0           ' Start rotazione Lenta tavola 3
Wait Slot 150 Low          ' rotazione 180° tavola 3
Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
Wait Seconds 2               ' attesa in cella 3


'-----------------------------------CICLO ROTAZIONE cella 3 a0°
Output Slot 113 0           ' Start rotazione Lenta tavola 3
Wait Slot 148 Low          ' rotazione 0° tavola 3
Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
Wait Seconds 0,3            ' attesa in cella 3 prima di uscita

Output Slot 116 1000     ' Start  rulliera tavola 3
Output Slot 123 1000     ' Start  rulliera finale
Wait Slot 138 Low          ' sensore maccHina in uscita
Output Slot 123 0           ' Stop  rulliera finale
Output Slot 116 0           ' Stop  rulliera tavola 3

Wait Seconds 2
Output Slot 127 0
Output Slot 128 0
Output Slot 129 0
Output Slot 130 0
Output Slot 131 0
Output Slot 132 0
Output Slot 133 0
Output Slot 134 0

Button 1 Enabled
Button 2 Enabled
Button 3 Enabled
Button 4 Enabled
Button 5 Enabled
Button 6 Enabled
Button 7 Enabled
Button 8 Enabled
Button 9 Enabled
Button 10 Enabled
Button 11 Enabled
Button 12 Enabled
Button 13 Enabled
Button 14 Enabled
Button 15 Enabled
Button 16 Enabled
Button 17 Enabled
Button 18 Enabled
Button 19 Enabled
Button 20 Enabled
Button 21 Enabled
Button 22 Enabled
Button 23 Enabled
Button 24 Enabled

Stop




'------------------------------------------------CICLO 3

Label ciclo-3
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 4 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 129 1000     'led 2 ROSSO
	Output Slot 132 1000     'led 3 verde
	Output Slot 134 1000     'led jolly verde
	
'------------------------  Start PRIMA PARTE CICLO 3
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
'------------------------  Set posizione cella jolly a 45°
	
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 153 Low          ' rotazione 45°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,1
	Output Slot 118 0
	Output Slot 119 0
	
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 45°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 141 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
'-----------------------------------Partenza rull. diagonale e rull tav jolly
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 126 1000     ' Start  rulliera diagonale
	Wait Seconds 14
	Output Slot 121 1000     ' Start  rulliera jolly
	Output Slot 105 0           ' Stop rulliera tavola 1
	
'-----------------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 103 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Wait Seconds 0,5
	Output Slot 103 1000     ' Stop_rotazione Lenta tavola 1
	Output Slot 102 0
	Wait Slot 140 Low
	Output Slot 102 1000
	Wait Seconds 0,3            ' attesa in cella 1
	
	Wait Slot 151 Low          ' sensore Stop jolly
	Output Slot 121 0           ' Stop  rulliera jolly
	Output Slot 126 0           ' Stop  rulliera diagonale
	Wait Seconds 1
'----------------------------CICLO ROTAZIONE cella jolly a 180°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 156 Low          ' rotazione 180°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 3               ' attesa in cella jolly
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 135°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 119 0           ' Start rotazione Lenta  jolly
	Wait Slot 155 Low          ' rotazione 135°  jolly
	Wait Seconds 0,5
	Output Slot 119 1000
	Output Slot 118 0
	Wait Slot 155 Low
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 1               ' attesa in cella jolly
	
	
	
'-----------------------------------Partenza rull. diagonale
	Output Slot 135 1000     ' Start  rulliera diagonale
	Output Slot 121 1000     ' Start  rulliera jolly
	
	Output Slot 113 1000     ' Set freno  CELLA 3
	Output Slot 114 1000     ' Set freno  CELLA 3
	Output Slot 114 0           ' Start rotazione Lenta  CELLA 3
	
	
	Wait Slot 149 Low          ' rotazione 45°  CELLA 3
	Wait Seconds 0,5
	Output Slot 114 1000
	Output Slot 113 0
	Wait Slot 149 Low
	Output Slot 113 1000     ' Stop_rotazione Lenta CELLA 3
	Wait Seconds 0,3            ' attesa in cella CELLA 3
	
	
	Wait Seconds 13
	Output Slot 121 0           ' Stop  rulliera jolly
	
'----------------------------CICLO ROTAZIONE cella jolly a 0°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 152 Low          ' rotazione 0°  jolly
	Output Slot 118 1000     ' Stop_rotazione Lenta jolly
	Wait Seconds 0,2            ' attesa in cella jolly
	
	Output Slot 116 1000     ' Start rulliera tavola 3
	
	Wait Slot 147 Low          ' Stop maccHina in  tavola 3
	Output Slot 116 0           ' Stop  rulliera 3
	Output Slot 135 0           ' Stop  rulliera diagonale
	Wait Seconds 0,5           ' attesa in cella 3
	
	
	Output Slot 113 1000     ' Set freno tavola 3
	Output Slot 114 1000     ' Set freno tavola 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 150 Low          ' rotazione 180° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	Output Slot 113 0           ' Start rotazione Lenta tavola 3
	Wait Slot 148 Low          ' rotazione 0° tavola 3
	Output Slot 113 1000     ' Stop_rotazione Lenta tavola 3
	Wait Seconds 2               ' attesa in cella 3
	
	Output Slot 116 1000     ' Start  rulliera tavola 3
	Output Slot 123 1000     ' Start  rulliera finale
	Wait Slot 138 Low          ' sensore maccHina in uscita
	Output Slot 123 0           ' Stop  rulliera finale
	Output Slot 116 0           ' Stop  rulliera tavola 3
	
	
	Wait Seconds 2
	Output Slot 127 0
	Output Slot 128 0
	Output Slot 129 0
	Output Slot 130 0
	Output Slot 131 0
	Output Slot 132 0
	Output Slot 133 0
	Output Slot 134 0
	
	Button 1 Enabled
	Button 2 Enabled
	Button 3 Enabled
	Button 4 Enabled
	Button 5 Enabled
	Button 6 Enabled
	Button 7 Enabled
	Button 8 Enabled
	Button 9 Enabled
	Button 10 Enabled
	Button 11 Enabled
	Button 12 Enabled
	Button 13 Enabled
	Button 14 Enabled
	Button 15 Enabled
	Button 16 Enabled
	Button 17 Enabled
	Button 18 Enabled
	Button 19 Enabled
	Button 20 Enabled
	Button 21 Enabled
	Button 22 Enabled
	Button 23 Enabled
	Button 24 Enabled
	
Stop

'-------------------------------CICLO 4-------------------------------------------

Label ciclo-4
	Button 8 Enabled
	Button 1 Disabled
	Button 2 Disabled
	Button 3 Disabled
	Button 5 Disabled
	Button 6 Disabled
	Button 7 Disabled
	Button 9 Disabled
	Button 10 Disabled
	Button 11 Disabled
	Button 12 Disabled
	Button 13 Disabled
	Button 14 Disabled
	Button 15 Disabled
	Button 16 Disabled
	Button 17 Disabled
	Button 18 Disabled
	Button 19 Disabled
	Button 20 Disabled
	Button 21 Disabled
	Button 22 Disabled
	Button 23 Disabled
	Button 24 Disabled
	
	Output Slot 101 400     'set pwm tavola 1
	Output Slot 107 400     'set pwm tavola 2
	Output Slot 112 400     'set pwm tavola 3
	Output Slot 117 400     'set pwm tavola jolly
	Output Slot 104 1000   'set pwm rulliera tavola 1
	Output Slot 110 1000   'set pwm rulliera tavola 2
	Output Slot 115 1000   'set pwm rulliera tavola 3
	Output Slot 120 1000   'set pwm rulliera tavola jolly
	
'------------------------------------------------SET LED
	Output Slot 128 1000     'led 1 VERDE
	Output Slot 130 1000     'led 2 verde
	Output Slot 131 1000     'led 3 rosso
	Output Slot 134 1000     'led jolly verde
	
	
	
'------------------------  Start PRIMA PARTE CICLO 4
	
	Output Slot 122 1000     ' Start rulliera ingresso
	Wait Slot 137 Low          ' attesa sensore rulliera ingresso
	Output Slot 105 1000     ' Start rulliera tavola 1
	
	
'----------------------------CICLO ROTAZIONE cella jolly a 90°
	Output Slot 118 1000     ' Set freno  jolly
	Output Slot 119 1000     ' Set freno  jolly
	Output Slot 118 0           ' Start rotazione Lenta  jolly
	Wait Slot 154 Low          ' rotazione 90°  jolly
	Output Slot 118 1000
	Wait Seconds 0,3            ' attesa in cella jolly
	Wait Slot 139 Low          ' attesa sensore pos. skid in cella 1
	Output Slot 122 0           ' Stop rulliera ingresso
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Seconds 3
'----------------------------CICLO ROTAZIONE cella 1 a 180°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 142 Low          ' rotazione 45° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 2
	
'----------------------------CICLO ROTAZIONE cella 1 a 0°
	Output Slot 102 1000     ' Set freno tavola 1
	Output Slot 103 1000     ' Set freno tavola 1
	Output Slot 102 0           ' Start rotazione Lenta tavola 1
	Wait Slot 140 Low          ' rotazione 0° tavola 1
	Output Slot 102 1000     ' Stop_rotazione Lenta tavola 1
	Wait Seconds 0,3
	Output Slot 102 0
	Output Slot 103 0
	Wait Seconds 20
	
	
	Output Slot 105 1000     ' Start rulliera tavola 1
	Output Slot 124 1000     ' Start rulliera passaggio  2
	Wait Seconds 2               ' tempo di ritardo avviamento rulliera tav 2
	Output Slot 111 1000     ' Start rulliera tavola 2
	Wait Seconds 12
	Output Slot 105 0           ' Stop rulliera tavola 1
	Wait Slot 143 Low          ' sensore Stop  rulliera 2
	Output Slot 111 0           ' Stop rulliera tavola 2
	Output Slot 124 0           ' Stop rulliera tavola corta
	Wait Seconds 2               ' attesa in cella 2
	Output Slot 108 1000     ' Set freno tavola 2
	Output Slot 109 1000     ' Set freno tavola 2
	Output Slot 108 0           ' Start rotazione Lenta tavola 2
	Wait Slot 146 Low          ' rotazione 180° tavola 2
	Output Slot 108 1000     ' Stop_rotazione Lenta tavola 2
	Wait Seconds 2               ' attesa in cella 2
	

'EXEC Slot(3) = 0 : Slot(4) = 0
