diff --git a/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.csv b/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.csv new file mode 100644 index 0000000..46af9e0 --- /dev/null +++ b/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.csv @@ -0,0 +1,225 @@ +IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStato +67;0;0;14;1 +67;0;1;24;6 +67;0;2;14;1 +67;0;3;24;6 +67;0;4;14;1 +67;0;5;24;6 +67;0;6;14;1 +67;0;7;24;6 +67;0;8;14;1 +67;0;9;24;6 +67;0;10;14;1 +67;0;11;24;6 +67;0;12;14;1 +67;0;13;24;6 +67;0;14;14;1 +67;0;15;24;6 +67;0;16;14;1 +67;0;17;24;7 +67;0;18;14;1 +67;0;19;15;2 +67;0;20;14;1 +67;0;21;24;7 +67;0;22;14;1 +67;0;23;16;3 +67;0;24;14;1 +67;0;25;18;5 +67;0;26;14;1 +67;0;27;18;5 +67;0;28;14;1 +67;0;29;18;5 +67;0;30;14;1 +67;0;31;18;5 +67;1;1;24;6 +67;1;3;24;6 +67;1;5;24;6 +67;1;7;24;6 +67;1;9;24;6 +67;1;11;24;6 +67;1;13;24;6 +67;1;15;24;6 +67;1;17;24;7 +67;1;19;15;2 +67;1;21;24;7 +67;1;23;16;3 +67;1;25;18;5 +67;1;27;18;5 +67;1;29;18;5 +67;1;31;18;5 +67;2;0;14;1 +67;2;1;24;6 +67;2;2;14;1 +67;2;3;24;6 +67;2;4;14;1 +67;2;5;24;6 +67;2;6;14;1 +67;2;7;24;6 +67;2;8;14;1 +67;2;9;24;6 +67;2;10;14;1 +67;2;11;24;6 +67;2;12;14;1 +67;2;13;24;6 +67;2;14;14;1 +67;2;15;24;6 +67;2;16;14;1 +67;2;17;24;7 +67;2;18;14;1 +67;2;20;14;1 +67;2;21;24;7 +67;2;22;14;1 +67;2;23;16;3 +67;2;24;14;1 +67;2;25;18;5 +67;2;26;14;1 +67;2;27;18;5 +67;2;28;14;1 +67;2;29;18;5 +67;2;30;14;1 +67;2;31;18;5 +67;3;0;14;1 +67;3;1;22;4 +67;3;2;14;1 +67;3;3;22;4 +67;3;4;14;1 +67;3;5;24;6 +67;3;6;14;1 +67;3;7;24;6 +67;3;8;14;1 +67;3;9;22;4 +67;3;10;14;1 +67;3;11;22;4 +67;3;12;14;1 +67;3;13;24;6 +67;3;14;14;1 +67;3;15;24;6 +67;3;16;14;1 +67;3;17;22;4 +67;3;18;14;1 +67;3;19;22;4 +67;3;20;14;1 +67;3;21;24;7 +67;3;22;14;1 +67;3;24;14;1 +67;3;25;22;4 +67;3;26;14;1 +67;3;27;22;4 +67;3;28;14;1 +67;3;29;18;5 +67;3;30;14;1 +67;3;31;18;5 +67;4;0;14;1 +67;4;1;24;6 +67;4;2;14;1 +67;4;3;24;6 +67;4;4;14;1 +67;4;5;15;2 +67;4;6;14;1 +67;4;7;15;2 +67;4;8;14;1 +67;4;9;24;6 +67;4;10;14;1 +67;4;11;24;6 +67;4;12;14;1 +67;4;13;15;2 +67;4;14;14;1 +67;4;15;15;2 +67;4;16;14;1 +67;4;17;24;7 +67;4;18;14;1 +67;4;19;15;2 +67;4;20;14;1 +67;4;21;15;2 +67;4;22;14;1 +67;4;23;15;2 +67;4;24;14;1 +67;4;25;18;5 +67;4;26;14;1 +67;4;27;18;5 +67;4;28;14;1 +67;4;29;15;2 +67;4;30;14;1 +67;4;31;15;2 +67;5;0;14;1 +67;5;1;24;6 +67;5;2;14;1 +67;5;3;24;6 +67;5;4;14;1 +67;5;5;24;6 +67;5;6;14;1 +67;5;7;24;6 +67;5;8;14;1 +67;5;9;24;6 +67;5;10;14;1 +67;5;11;24;6 +67;5;12;14;1 +67;5;13;24;6 +67;5;14;14;1 +67;5;15;24;6 +67;5;16;14;1 +67;5;17;24;7 +67;5;18;14;1 +67;5;19;15;2 +67;5;20;14;1 +67;5;21;24;7 +67;5;22;14;1 +67;5;23;16;3 +67;5;24;14;1 +67;5;26;14;1 +67;5;28;14;1 +67;5;30;14;1 +67;6;0;14;1 +67;6;2;14;1 +67;6;4;14;1 +67;6;6;14;1 +67;6;8;14;1 +67;6;10;14;1 +67;6;12;14;1 +67;6;14;14;1 +67;6;16;14;1 +67;6;17;24;7 +67;6;18;14;1 +67;6;19;15;2 +67;6;20;14;1 +67;6;21;24;7 +67;6;22;14;1 +67;6;23;16;3 +67;6;24;14;1 +67;6;25;18;5 +67;6;26;14;1 +67;6;27;18;5 +67;6;28;14;1 +67;6;29;18;5 +67;6;30;14;1 +67;6;31;18;5 +67;7;0;14;1 +67;7;1;24;6 +67;7;2;14;1 +67;7;3;24;6 +67;7;4;14;1 +67;7;5;24;6 +67;7;6;14;1 +67;7;7;24;6 +67;7;8;14;1 +67;7;9;24;6 +67;7;10;14;1 +67;7;11;24;6 +67;7;12;14;1 +67;7;13;24;6 +67;7;14;14;1 +67;7;15;24;6 +67;7;16;14;1 +67;7;18;14;1 +67;7;19;15;2 +67;7;20;14;1 +67;7;22;14;1 +67;7;23;16;3 +67;7;24;14;1 +67;7;25;18;5 +67;7;26;14;1 +67;7;27;18;5 +67;7;28;14;1 +67;7;29;18;5 +67;7;30;14;1 +67;7;31;18;5 diff --git a/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.rul b/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.rul new file mode 100644 index 0000000..e82190c --- /dev/null +++ b/StateMachineIngressi/Jetco/67_GLD25_GD32_5bit.rul @@ -0,0 +1,97 @@ +# +# Jetco macchine GLD25 e GD32 cablate con IOB-PI in hw con segnale di RUN / contapezzi misto e emergenza su bit 2 +# +# partenza da IdxFam 40 +# +# cv modificato regola per tutti gli altri stati quando va via run +# +$DEFINITIONS + +$NAME : GLD_GD +$IDX : 67 +$N_STATES : 8 +$N_BITS : 5 + +#definizione bit : obbligatorio iniziare da 0 + +$BIT : 0 : power_on +$BIT : 1 : not_emergency +$BIT : 2 : run_end_cycle +$BIT : 3 : alarm +$BIT : 4 : door_closed +#$BIT : 5 : main_spindle_closed +#$BIT : 6 : sec_spindle_closed + +#definizione stati : obbligatorio iniziare da 0 + +$STATE : 0 : ST_Init +$STATE : 1 : ST_Power_off +$STATE : 2 : ST_Machine_ready +$STATE : 3 : ST_Run +$STATE : 4 : ST_Cycle_end +$STATE : 5 : ST_Alarm +$STATE : 6 : ST_Manual +$STATE : 7 : ST_Emergency + +#definizione eventi : obbligatorio iniziare da 0 + +$EVENT : 00 : EV_00 +$EVENT : 01 : EV_01 +$EVENT : 02 : EV_02 +$EVENT : 03 : EV_03 +$EVENT : 04 : EV_04 +$EVENT : 05 : EV_05 +$EVENT : 06 : EV_06 +$EVENT : 07 : EV_07 +$EVENT : 08 : EV_08 +$EVENT : 09 : EV_09 +$EVENT : 10 : EV_10 +$EVENT : 11 : EV_11 +$EVENT : 12 : EV_12 +$EVENT : 13 : HW_init +$EVENT : 14 : HW_power_off +$EVENT : 15 : HW_power_on +$EVENT : 16 : HW_machining +$EVENT : 17 : HW_end_machining +$EVENT : 18 : HW_error +$EVENT : 19 : Barcode_cambio operatore +$EVENT : 20 : Contapezzi +$EVENT : 21 : HW_start_pallet +$EVENT : 22 : HW_end_pallet +$EVENT : 23 : HW_rottura_nastro_abrasivo +$EVENT : 24 : HW_manuale +$EVENT : 25 : HW_nastro_scarico_pieno +$EVENT : 26 : Barcode_Manca_Riforn_MPD +$EVENT : 27 : Timer_timeout_tempo_ciclo +$EVENT : 28 : Timer_timeout_TURNO_by_tempo_ciclo +$EVENT : 29 : HW_magazzino_grezzi vuoto +$EVENT : 30 : HW_emergenza +$EVENT : 31 : Barcode_Modifica_Programmi +$EVENT : 32 : Barcode_Sostituzione_Utensile +$EVENT : 33 : HW_Allarme Macchina +$EVENT : 34 : HW_end_pallet_1 +$EVENT : 35 : HW_end_pallet_2 +$EVENT : 36 : HW_deposito_robot +$EVENT : 37 : Barcode_Riempimento_Vasca +$EVENT : 38 : Barcode_Riscaldamento +#$EVENT : 999 : Commento + +$RULES + +# state : input : next state : event + +ALL_STATES : NOT power_on : ST_Power_off : HW_power_off +ST_Run : NOT run_end_cycle : ST_Cycle_end : HW_end_pallet +ST_Cycle_end : run_end_cycle : ST_Machine_ready : HW_power_on +ALL_STATES : NOT door_closed : ST_Manual : HW_manuale +ALL_STATES : alarm : ST_Alarm : HW_error +ALL_STATES : NOT not_emergency : ST_Emergency : HW_manuale +ALL_STATES : run_end_cycle : ST_Run : HW_machining +ALL_STATES : power_on : ST_Machine_ready : HW_power_on + + +#-------------------------------------------------------------------------- + + + +$DO