diff --git a/StateMachine/Jetco/41_SIEMENS_TORRI.csv b/StateMachine/Jetco/41_SIEMENS_TORRI.csv index a46435f..604b8c4 100644 --- a/StateMachine/Jetco/41_SIEMENS_TORRI.csv +++ b/StateMachine/Jetco/41_SIEMENS_TORRI.csv @@ -12,41 +12,89 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;0;10;14;1 41;0;11;18;5 41;0;12;14;1 -41;0;13;18;5 +41;0;13;22;4 41;0;14;14;1 -41;0;15;18;5 +41;0;15;22;4 41;0;16;14;1 41;0;17;24;6 41;0;18;14;1 41;0;19;24;6 41;0;20;14;1 -41;0;21;24;6 +41;0;21;22;4 41;0;22;14;1 -41;0;23;24;6 +41;0;23;22;4 41;0;24;14;1 41;0;25;24;6 41;0;26;14;1 41;0;27;24;6 41;0;28;14;1 -41;0;29;24;6 +41;0;29;22;4 41;0;30;14;1 -41;0;31;24;6 +41;0;31;22;4 +41;0;32;14;1 +41;0;33;40;7 +41;0;34;14;1 +41;0;35;40;7 +41;0;36;14;1 +41;0;37;22;4 +41;0;38;14;1 +41;0;39;22;4 +41;0;40;14;1 +41;0;41;40;7 +41;0;42;14;1 +41;0;43;40;7 +41;0;44;14;1 +41;0;45;22;4 +41;0;46;14;1 +41;0;47;22;4 +41;0;48;14;1 +41;0;49;40;7 +41;0;50;14;1 +41;0;51;40;7 +41;0;52;14;1 +41;0;53;22;4 +41;0;54;14;1 +41;0;55;22;4 +41;0;56;14;1 +41;0;57;40;7 +41;0;58;14;1 +41;0;59;40;7 +41;0;60;14;1 +41;0;61;22;4 +41;0;62;14;1 +41;0;63;22;4 41;1;1;15;2 41;1;3;16;3 41;1;5;22;4 41;1;7;22;4 41;1;9;18;5 41;1;11;18;5 -41;1;13;18;5 -41;1;15;18;5 +41;1;13;22;4 +41;1;15;22;4 41;1;17;24;6 41;1;19;24;6 -41;1;21;24;6 -41;1;23;24;6 +41;1;21;22;4 +41;1;23;22;4 41;1;25;24;6 41;1;27;24;6 -41;1;29;24;6 -41;1;31;24;6 +41;1;29;22;4 +41;1;31;22;4 +41;1;33;40;7 +41;1;35;40;7 +41;1;37;22;4 +41;1;39;22;4 +41;1;41;40;7 +41;1;43;40;7 +41;1;45;22;4 +41;1;47;22;4 +41;1;49;40;7 +41;1;51;40;7 +41;1;53;22;4 +41;1;55;22;4 +41;1;57;40;7 +41;1;59;40;7 +41;1;61;22;4 +41;1;63;22;4 41;2;0;14;1 41;2;2;14;1 41;2;3;16;3 @@ -59,25 +107,57 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;2;10;14;1 41;2;11;18;5 41;2;12;14;1 -41;2;13;18;5 +41;2;13;22;4 41;2;14;14;1 -41;2;15;18;5 +41;2;15;22;4 41;2;16;14;1 41;2;17;24;6 41;2;18;14;1 41;2;19;24;6 41;2;20;14;1 -41;2;21;24;6 +41;2;21;22;4 41;2;22;14;1 -41;2;23;24;6 +41;2;23;22;4 41;2;24;14;1 41;2;25;24;6 41;2;26;14;1 41;2;27;24;6 41;2;28;14;1 -41;2;29;24;6 +41;2;29;22;4 41;2;30;14;1 -41;2;31;24;6 +41;2;31;22;4 +41;2;32;14;1 +41;2;33;40;7 +41;2;34;14;1 +41;2;35;40;7 +41;2;36;14;1 +41;2;37;22;4 +41;2;38;14;1 +41;2;39;22;4 +41;2;40;14;1 +41;2;41;40;7 +41;2;42;14;1 +41;2;43;40;7 +41;2;44;14;1 +41;2;45;22;4 +41;2;46;14;1 +41;2;47;22;4 +41;2;48;14;1 +41;2;49;40;7 +41;2;50;14;1 +41;2;51;40;7 +41;2;52;14;1 +41;2;53;22;4 +41;2;54;14;1 +41;2;55;22;4 +41;2;56;14;1 +41;2;57;40;7 +41;2;58;14;1 +41;2;59;40;7 +41;2;60;14;1 +41;2;61;22;4 +41;2;62;14;1 +41;2;63;22;4 41;3;0;14;1 41;3;1;15;2 41;3;2;14;1 @@ -90,25 +170,57 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;3;10;14;1 41;3;11;18;5 41;3;12;14;1 -41;3;13;18;5 +41;3;13;22;4 41;3;14;14;1 -41;3;15;18;5 +41;3;15;22;4 41;3;16;14;1 41;3;17;24;6 41;3;18;14;1 41;3;19;24;6 41;3;20;14;1 -41;3;21;24;6 +41;3;21;22;4 41;3;22;14;1 -41;3;23;24;6 +41;3;23;22;4 41;3;24;14;1 41;3;25;24;6 41;3;26;14;1 41;3;27;24;6 41;3;28;14;1 -41;3;29;24;6 +41;3;29;22;4 41;3;30;14;1 -41;3;31;24;6 +41;3;31;22;4 +41;3;32;14;1 +41;3;33;40;7 +41;3;34;14;1 +41;3;35;40;7 +41;3;36;14;1 +41;3;37;22;4 +41;3;38;14;1 +41;3;39;22;4 +41;3;40;14;1 +41;3;41;40;7 +41;3;42;14;1 +41;3;43;40;7 +41;3;44;14;1 +41;3;45;22;4 +41;3;46;14;1 +41;3;47;22;4 +41;3;48;14;1 +41;3;49;40;7 +41;3;50;14;1 +41;3;51;40;7 +41;3;52;14;1 +41;3;53;22;4 +41;3;54;14;1 +41;3;55;22;4 +41;3;56;14;1 +41;3;57;40;7 +41;3;58;14;1 +41;3;59;40;7 +41;3;60;14;1 +41;3;61;22;4 +41;3;62;14;1 +41;3;63;22;4 41;4;0;14;1 41;4;1;15;2 41;4;2;14;1 @@ -120,25 +232,43 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;4;10;14;1 41;4;11;18;5 41;4;12;14;1 -41;4;13;18;5 41;4;14;14;1 -41;4;15;18;5 41;4;16;14;1 41;4;17;24;6 41;4;18;14;1 41;4;19;24;6 41;4;20;14;1 -41;4;21;24;6 41;4;22;14;1 -41;4;23;24;6 41;4;24;14;1 41;4;25;24;6 41;4;26;14;1 41;4;27;24;6 41;4;28;14;1 -41;4;29;24;6 41;4;30;14;1 -41;4;31;24;6 +41;4;32;14;1 +41;4;33;40;7 +41;4;34;14;1 +41;4;35;40;7 +41;4;36;14;1 +41;4;38;14;1 +41;4;40;14;1 +41;4;41;40;7 +41;4;42;14;1 +41;4;43;40;7 +41;4;44;14;1 +41;4;46;14;1 +41;4;48;14;1 +41;4;49;40;7 +41;4;50;14;1 +41;4;51;40;7 +41;4;52;14;1 +41;4;54;14;1 +41;4;56;14;1 +41;4;57;40;7 +41;4;58;14;1 +41;4;59;40;7 +41;4;60;14;1 +41;4;62;14;1 41;5;0;14;1 41;5;1;15;2 41;5;2;14;1 @@ -150,23 +280,57 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;5;8;14;1 41;5;10;14;1 41;5;12;14;1 +41;5;13;22;4 41;5;14;14;1 +41;5;15;22;4 41;5;16;14;1 41;5;17;24;6 41;5;18;14;1 41;5;19;24;6 41;5;20;14;1 -41;5;21;24;6 +41;5;21;22;4 41;5;22;14;1 -41;5;23;24;6 +41;5;23;22;4 41;5;24;14;1 41;5;25;24;6 41;5;26;14;1 41;5;27;24;6 41;5;28;14;1 -41;5;29;24;6 +41;5;29;22;4 41;5;30;14;1 -41;5;31;24;6 +41;5;31;22;4 +41;5;32;14;1 +41;5;33;40;7 +41;5;34;14;1 +41;5;35;40;7 +41;5;36;14;1 +41;5;37;22;4 +41;5;38;14;1 +41;5;39;22;4 +41;5;40;14;1 +41;5;41;40;7 +41;5;42;14;1 +41;5;43;40;7 +41;5;44;14;1 +41;5;45;22;4 +41;5;46;14;1 +41;5;47;22;4 +41;5;48;14;1 +41;5;49;40;7 +41;5;50;14;1 +41;5;51;40;7 +41;5;52;14;1 +41;5;53;22;4 +41;5;54;14;1 +41;5;55;22;4 +41;5;56;14;1 +41;5;57;40;7 +41;5;58;14;1 +41;5;59;40;7 +41;5;60;14;1 +41;5;61;22;4 +41;5;62;14;1 +41;5;63;22;4 41;6;0;14;1 41;6;1;15;2 41;6;2;14;1 @@ -180,14 +344,106 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 41;6;10;14;1 41;6;11;18;5 41;6;12;14;1 -41;6;13;18;5 +41;6;13;22;4 41;6;14;14;1 -41;6;15;18;5 +41;6;15;22;4 41;6;16;14;1 41;6;18;14;1 41;6;20;14;1 +41;6;21;22;4 41;6;22;14;1 +41;6;23;22;4 41;6;24;14;1 41;6;26;14;1 41;6;28;14;1 +41;6;29;22;4 41;6;30;14;1 +41;6;31;22;4 +41;6;32;14;1 +41;6;33;40;7 +41;6;34;14;1 +41;6;35;40;7 +41;6;36;14;1 +41;6;37;22;4 +41;6;38;14;1 +41;6;39;22;4 +41;6;40;14;1 +41;6;41;40;7 +41;6;42;14;1 +41;6;43;40;7 +41;6;44;14;1 +41;6;45;22;4 +41;6;46;14;1 +41;6;47;22;4 +41;6;48;14;1 +41;6;49;40;7 +41;6;50;14;1 +41;6;51;40;7 +41;6;52;14;1 +41;6;53;22;4 +41;6;54;14;1 +41;6;55;22;4 +41;6;56;14;1 +41;6;57;40;7 +41;6;58;14;1 +41;6;59;40;7 +41;6;60;14;1 +41;6;61;22;4 +41;6;62;14;1 +41;6;63;22;4 +41;7;0;14;1 +41;7;1;15;2 +41;7;2;14;1 +41;7;3;16;3 +41;7;4;14;1 +41;7;5;22;4 +41;7;6;14;1 +41;7;7;22;4 +41;7;8;14;1 +41;7;9;18;5 +41;7;10;14;1 +41;7;11;18;5 +41;7;12;14;1 +41;7;13;22;4 +41;7;14;14;1 +41;7;15;22;4 +41;7;16;14;1 +41;7;17;24;6 +41;7;18;14;1 +41;7;19;24;6 +41;7;20;14;1 +41;7;21;22;4 +41;7;22;14;1 +41;7;23;22;4 +41;7;24;14;1 +41;7;25;24;6 +41;7;26;14;1 +41;7;27;24;6 +41;7;28;14;1 +41;7;29;22;4 +41;7;30;14;1 +41;7;31;22;4 +41;7;32;14;1 +41;7;34;14;1 +41;7;36;14;1 +41;7;37;22;4 +41;7;38;14;1 +41;7;39;22;4 +41;7;40;14;1 +41;7;42;14;1 +41;7;44;14;1 +41;7;45;22;4 +41;7;46;14;1 +41;7;47;22;4 +41;7;48;14;1 +41;7;50;14;1 +41;7;52;14;1 +41;7;53;22;4 +41;7;54;14;1 +41;7;55;22;4 +41;7;56;14;1 +41;7;58;14;1 +41;7;60;14;1 +41;7;61;22;4 +41;7;62;14;1 +41;7;63;22;4 diff --git a/StateMachine/Jetco/41_SIEMENS_TORRI.rul b/StateMachine/Jetco/41_SIEMENS_TORRI.rul index 25ef2c5..cf4e8f7 100644 --- a/StateMachine/Jetco/41_SIEMENS_TORRI.rul +++ b/StateMachine/Jetco/41_SIEMENS_TORRI.rul @@ -8,8 +8,8 @@ $DEFINITIONS $NAME : SIEMENS_TORRI $IDX : 41 -$N_STATES : 7 -$N_BITS : 5 +$N_STATES : 8 +$N_BITS : 6 #definizione bit : obbligatorio iniziare da 0 @@ -18,6 +18,7 @@ $BIT : 1 : run $BIT : 2 : end_cycle $BIT : 3 : alarm $BIT : 4 : manual +$BIT : 5 : wu_cd #definizione stati : obbligatorio iniziare da 0 @@ -28,6 +29,7 @@ $STATE : 3 : ST_Run $STATE : 4 : ST_Cycle_end $STATE : 5 : ST_Alarm $STATE : 6 : ST_Manual +$STATE : 7 : ST_WU_CD #definizione eventi : obbligatorio iniziare da 0 @@ -70,16 +72,19 @@ $EVENT : 35 : HW_end_pallet_2 $EVENT : 36 : HW_deposito_robot $EVENT : 37 : Barcode_Riempimento_Vasca $EVENT : 38 : Barcode_Riscaldamento +$EVENT : 39 : Barcode_Anomalia_Macchina +$EVENT : 40 : HW_WarmUp_CoolDown #$EVENT : 999 : Commento $RULES -# state : input : next state : event +# state : input : next state : event ALL_STATES : NOT power_on : ST_Power_off : HW_power_off +ALL_STATES : end_cycle : ST_Cycle_end : HW_end_pallet +ALL_STATES : wu_cd : ST_WU_CD : HW_WarmUp_CoolDown ALL_STATES : manual : ST_Manual : HW_manuale ALL_STATES : alarm : ST_Alarm : HW_error -ALL_STATES : end_cycle : ST_Cycle_end : HW_end_pallet ALL_STATES : run : ST_Run : HW_machining ALL_STATES : power_on : ST_Machine_ready : HW_power_on diff --git a/StateMachine/Jetco/42_FANUC_AllCount.csv b/StateMachine/Jetco/42_FANUC_AllCount.csv index ae1cd73..15e2dd8 100644 --- a/StateMachine/Jetco/42_FANUC_AllCount.csv +++ b/StateMachine/Jetco/42_FANUC_AllCount.csv @@ -31,6 +31,38 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;0;29;22;4 42;0;30;14;1 42;0;31;22;4 +42;0;32;14;1 +42;0;33;40;7 +42;0;34;14;1 +42;0;35;40;7 +42;0;36;14;1 +42;0;37;22;4 +42;0;38;14;1 +42;0;39;22;4 +42;0;40;14;1 +42;0;41;40;7 +42;0;42;14;1 +42;0;43;40;7 +42;0;44;14;1 +42;0;45;22;4 +42;0;46;14;1 +42;0;47;22;4 +42;0;48;14;1 +42;0;49;40;7 +42;0;50;14;1 +42;0;51;40;7 +42;0;52;14;1 +42;0;53;22;4 +42;0;54;14;1 +42;0;55;22;4 +42;0;56;14;1 +42;0;57;40;7 +42;0;58;14;1 +42;0;59;40;7 +42;0;60;14;1 +42;0;61;22;4 +42;0;62;14;1 +42;0;63;22;4 42;1;1;15;2 42;1;3;16;3 42;1;5;22;4 @@ -47,6 +79,22 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;1;27;24;6 42;1;29;22;4 42;1;31;22;4 +42;1;33;40;7 +42;1;35;40;7 +42;1;37;22;4 +42;1;39;22;4 +42;1;41;40;7 +42;1;43;40;7 +42;1;45;22;4 +42;1;47;22;4 +42;1;49;40;7 +42;1;51;40;7 +42;1;53;22;4 +42;1;55;22;4 +42;1;57;40;7 +42;1;59;40;7 +42;1;61;22;4 +42;1;63;22;4 42;2;0;14;1 42;2;2;14;1 42;2;3;16;3 @@ -78,6 +126,38 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;2;29;22;4 42;2;30;14;1 42;2;31;22;4 +42;2;32;14;1 +42;2;33;40;7 +42;2;34;14;1 +42;2;35;40;7 +42;2;36;14;1 +42;2;37;22;4 +42;2;38;14;1 +42;2;39;22;4 +42;2;40;14;1 +42;2;41;40;7 +42;2;42;14;1 +42;2;43;40;7 +42;2;44;14;1 +42;2;45;22;4 +42;2;46;14;1 +42;2;47;22;4 +42;2;48;14;1 +42;2;49;40;7 +42;2;50;14;1 +42;2;51;40;7 +42;2;52;14;1 +42;2;53;22;4 +42;2;54;14;1 +42;2;55;22;4 +42;2;56;14;1 +42;2;57;40;7 +42;2;58;14;1 +42;2;59;40;7 +42;2;60;14;1 +42;2;61;22;4 +42;2;62;14;1 +42;2;63;22;4 42;3;0;14;1 42;3;1;15;2 42;3;2;14;1 @@ -109,6 +189,38 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;3;29;22;4 42;3;30;14;1 42;3;31;22;4 +42;3;32;14;1 +42;3;33;40;7 +42;3;34;14;1 +42;3;35;40;7 +42;3;36;14;1 +42;3;37;22;4 +42;3;38;14;1 +42;3;39;22;4 +42;3;40;14;1 +42;3;41;40;7 +42;3;42;14;1 +42;3;43;40;7 +42;3;44;14;1 +42;3;45;22;4 +42;3;46;14;1 +42;3;47;22;4 +42;3;48;14;1 +42;3;49;40;7 +42;3;50;14;1 +42;3;51;40;7 +42;3;52;14;1 +42;3;53;22;4 +42;3;54;14;1 +42;3;55;22;4 +42;3;56;14;1 +42;3;57;40;7 +42;3;58;14;1 +42;3;59;40;7 +42;3;60;14;1 +42;3;61;22;4 +42;3;62;14;1 +42;3;63;22;4 42;4;0;14;1 42;4;1;15;2 42;4;2;14;1 @@ -133,6 +245,30 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;4;27;24;6 42;4;28;14;1 42;4;30;14;1 +42;4;32;14;1 +42;4;33;40;7 +42;4;34;14;1 +42;4;35;40;7 +42;4;36;14;1 +42;4;38;14;1 +42;4;40;14;1 +42;4;41;40;7 +42;4;42;14;1 +42;4;43;40;7 +42;4;44;14;1 +42;4;46;14;1 +42;4;48;14;1 +42;4;49;40;7 +42;4;50;14;1 +42;4;51;40;7 +42;4;52;14;1 +42;4;54;14;1 +42;4;56;14;1 +42;4;57;40;7 +42;4;58;14;1 +42;4;59;40;7 +42;4;60;14;1 +42;4;62;14;1 42;5;0;14;1 42;5;1;15;2 42;5;2;14;1 @@ -163,6 +299,38 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;5;29;22;4 42;5;30;14;1 42;5;31;22;4 +42;5;32;14;1 +42;5;33;40;7 +42;5;34;14;1 +42;5;35;40;7 +42;5;36;14;1 +42;5;37;22;4 +42;5;38;14;1 +42;5;39;22;4 +42;5;40;14;1 +42;5;41;40;7 +42;5;42;14;1 +42;5;43;40;7 +42;5;44;14;1 +42;5;45;22;4 +42;5;46;14;1 +42;5;47;22;4 +42;5;48;14;1 +42;5;49;40;7 +42;5;50;14;1 +42;5;51;40;7 +42;5;52;14;1 +42;5;53;22;4 +42;5;54;14;1 +42;5;55;22;4 +42;5;56;14;1 +42;5;57;40;7 +42;5;58;14;1 +42;5;59;40;7 +42;5;60;14;1 +42;5;61;22;4 +42;5;62;14;1 +42;5;63;22;4 42;6;0;14;1 42;6;1;15;2 42;6;2;14;1 @@ -191,3 +359,91 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 42;6;29;22;4 42;6;30;14;1 42;6;31;22;4 +42;6;32;14;1 +42;6;33;40;7 +42;6;34;14;1 +42;6;35;40;7 +42;6;36;14;1 +42;6;37;22;4 +42;6;38;14;1 +42;6;39;22;4 +42;6;40;14;1 +42;6;41;40;7 +42;6;42;14;1 +42;6;43;40;7 +42;6;44;14;1 +42;6;45;22;4 +42;6;46;14;1 +42;6;47;22;4 +42;6;48;14;1 +42;6;49;40;7 +42;6;50;14;1 +42;6;51;40;7 +42;6;52;14;1 +42;6;53;22;4 +42;6;54;14;1 +42;6;55;22;4 +42;6;56;14;1 +42;6;57;40;7 +42;6;58;14;1 +42;6;59;40;7 +42;6;60;14;1 +42;6;61;22;4 +42;6;62;14;1 +42;6;63;22;4 +42;7;0;14;1 +42;7;1;15;2 +42;7;2;14;1 +42;7;3;16;3 +42;7;4;14;1 +42;7;5;22;4 +42;7;6;14;1 +42;7;7;22;4 +42;7;8;14;1 +42;7;9;18;5 +42;7;10;14;1 +42;7;11;18;5 +42;7;12;14;1 +42;7;13;22;4 +42;7;14;14;1 +42;7;15;22;4 +42;7;16;14;1 +42;7;17;24;6 +42;7;18;14;1 +42;7;19;24;6 +42;7;20;14;1 +42;7;21;22;4 +42;7;22;14;1 +42;7;23;22;4 +42;7;24;14;1 +42;7;25;24;6 +42;7;26;14;1 +42;7;27;24;6 +42;7;28;14;1 +42;7;29;22;4 +42;7;30;14;1 +42;7;31;22;4 +42;7;32;14;1 +42;7;34;14;1 +42;7;36;14;1 +42;7;37;22;4 +42;7;38;14;1 +42;7;39;22;4 +42;7;40;14;1 +42;7;42;14;1 +42;7;44;14;1 +42;7;45;22;4 +42;7;46;14;1 +42;7;47;22;4 +42;7;48;14;1 +42;7;50;14;1 +42;7;52;14;1 +42;7;53;22;4 +42;7;54;14;1 +42;7;55;22;4 +42;7;56;14;1 +42;7;58;14;1 +42;7;60;14;1 +42;7;61;22;4 +42;7;62;14;1 +42;7;63;22;4 diff --git a/StateMachine/Jetco/42_FANUC_AllCount.rul b/StateMachine/Jetco/42_FANUC_AllCount.rul index 8686a8f..761054d 100644 --- a/StateMachine/Jetco/42_FANUC_AllCount.rul +++ b/StateMachine/Jetco/42_FANUC_AllCount.rul @@ -8,8 +8,8 @@ $DEFINITIONS $NAME : FANUC $IDX : 42 -$N_STATES : 7 -$N_BITS : 5 +$N_STATES : 8 +$N_BITS : 6 #definizione bit : obbligatorio iniziare da 0 @@ -18,8 +18,7 @@ $BIT : 1 : run $BIT : 2 : end_cycle $BIT : 3 : alarm $BIT : 4 : manual -#$BIT : 5 : door_opened -#$BIT : 6 : emergency +$BIT : 5 : wu_cd #definizione stati : obbligatorio iniziare da 0 @@ -30,6 +29,7 @@ $STATE : 3 : ST_Run $STATE : 4 : ST_Cycle_end $STATE : 5 : ST_Alarm $STATE : 6 : ST_Manual +$STATE : 7 : ST_WU_CD #definizione eventi : obbligatorio iniziare da 0 @@ -72,16 +72,18 @@ $EVENT : 35 : HW_end_pallet_2 $EVENT : 36 : HW_deposito_robot $EVENT : 37 : Barcode_Riempimento_Vasca $EVENT : 38 : Barcode_Riscaldamento +$EVENT : 39 : Barcode_Anomalia_Macchina +$EVENT : 40 : HW_WarmUp_CoolDown #$EVENT : 999 : Commento $RULES -# state : input : next state : event +# state : input : next state : event ALL_STATES : NOT power_on : ST_Power_off : HW_power_off ALL_STATES : end_cycle : ST_Cycle_end : HW_end_pallet +ALL_STATES : wu_cd : ST_WU_CD : HW_WarmUp_CoolDown ALL_STATES : manual : ST_Manual : HW_manuale -#ALL_STATES : door_opened : ST_Manual : HW_manuale ALL_STATES : alarm : ST_Alarm : HW_error ALL_STATES : run : ST_Run : HW_machining ALL_STATES : power_on : ST_Machine_ready : HW_power_on