From 508a286158891ff350be1cce2fded741a9801735 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 25 Jan 2019 14:38:40 +0100 Subject: [PATCH] Update state machine 7 x ColCom (senza bit2) --- .../ColCom/7_MoriSeiki_main_cambio.csv | 452 ------------------ .../ColCom/7_MoriSeiki_main_cambio.rul | 99 ---- StateMachine/ColCom/7_MoriSeiki_simple.csv | 65 +++ StateMachine/ColCom/7_MoriSeiki_simple.rul | 86 ++++ 4 files changed, 151 insertions(+), 551 deletions(-) delete mode 100644 StateMachine/ColCom/7_MoriSeiki_main_cambio.csv delete mode 100644 StateMachine/ColCom/7_MoriSeiki_main_cambio.rul create mode 100644 StateMachine/ColCom/7_MoriSeiki_simple.csv create mode 100644 StateMachine/ColCom/7_MoriSeiki_simple.rul diff --git a/StateMachine/ColCom/7_MoriSeiki_main_cambio.csv b/StateMachine/ColCom/7_MoriSeiki_main_cambio.csv deleted file mode 100644 index 8d1def2..0000000 --- a/StateMachine/ColCom/7_MoriSeiki_main_cambio.csv +++ /dev/null @@ -1,452 +0,0 @@ -IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStato -7;0;0;14;1 -7;0;1;15;2 -7;0;2;14;1 -7;0;3;16;3 -7;0;4;14;1 -7;0;5;34;4 -7;0;6;14;1 -7;0;7;34;4 -7;0;8;14;1 -7;0;9;18;5 -7;0;10;14;1 -7;0;11;18;5 -7;0;12;14;1 -7;0;13;18;5 -7;0;14;14;1 -7;0;15;18;5 -7;0;16;14;1 -7;0;17;15;2 -7;0;18;14;1 -7;0;19;16;3 -7;0;20;14;1 -7;0;21;34;4 -7;0;22;14;1 -7;0;23;34;4 -7;0;24;14;1 -7;0;25;18;5 -7;0;26;14;1 -7;0;27;18;5 -7;0;28;14;1 -7;0;29;18;5 -7;0;30;14;1 -7;0;31;18;5 -7;0;32;14;1 -7;0;33;15;2 -7;0;34;14;1 -7;0;35;16;3 -7;0;36;14;1 -7;0;37;34;4 -7;0;38;14;1 -7;0;39;34;4 -7;0;40;14;1 -7;0;41;18;5 -7;0;42;14;1 -7;0;43;18;5 -7;0;44;14;1 -7;0;45;18;5 -7;0;46;14;1 -7;0;47;18;5 -7;0;48;14;1 -7;0;49;15;2 -7;0;50;14;1 -7;0;51;16;3 -7;0;52;14;1 -7;0;53;34;4 -7;0;54;14;1 -7;0;55;34;4 -7;0;56;14;1 -7;0;57;18;5 -7;0;58;14;1 -7;0;59;18;5 -7;0;60;14;1 -7;0;61;18;5 -7;0;62;14;1 -7;0;63;18;5 -7;1;1;15;2 -7;1;3;16;3 -7;1;5;34;4 -7;1;7;34;4 -7;1;9;18;5 -7;1;11;18;5 -7;1;13;18;5 -7;1;15;18;5 -7;1;17;15;2 -7;1;19;16;3 -7;1;21;34;4 -7;1;23;34;4 -7;1;25;18;5 -7;1;27;18;5 -7;1;29;18;5 -7;1;31;18;5 -7;1;33;15;2 -7;1;35;16;3 -7;1;37;34;4 -7;1;39;34;4 -7;1;41;18;5 -7;1;43;18;5 -7;1;45;18;5 -7;1;47;18;5 -7;1;49;15;2 -7;1;51;16;3 -7;1;53;34;4 -7;1;55;34;4 -7;1;57;18;5 -7;1;59;18;5 -7;1;61;18;5 -7;1;63;18;5 -7;2;0;14;1 -7;2;2;14;1 -7;2;3;16;3 -7;2;4;14;1 -7;2;5;34;4 -7;2;6;14;1 -7;2;7;34;4 -7;2;8;14;1 -7;2;9;18;5 -7;2;10;14;1 -7;2;11;18;5 -7;2;12;14;1 -7;2;13;18;5 -7;2;14;14;1 -7;2;15;18;5 -7;2;16;14;1 -7;2;18;14;1 -7;2;19;16;3 -7;2;20;14;1 -7;2;21;34;4 -7;2;22;14;1 -7;2;23;34;4 -7;2;24;14;1 -7;2;25;18;5 -7;2;26;14;1 -7;2;27;18;5 -7;2;28;14;1 -7;2;29;18;5 -7;2;30;14;1 -7;2;31;18;5 -7;2;32;14;1 -7;2;34;14;1 -7;2;35;16;3 -7;2;36;14;1 -7;2;37;34;4 -7;2;38;14;1 -7;2;39;34;4 -7;2;40;14;1 -7;2;41;18;5 -7;2;42;14;1 -7;2;43;18;5 -7;2;44;14;1 -7;2;45;18;5 -7;2;46;14;1 -7;2;47;18;5 -7;2;48;14;1 -7;2;50;14;1 -7;2;51;16;3 -7;2;52;14;1 -7;2;53;34;4 -7;2;54;14;1 -7;2;55;34;4 -7;2;56;14;1 -7;2;57;18;5 -7;2;58;14;1 -7;2;59;18;5 -7;2;60;14;1 -7;2;61;18;5 -7;2;62;14;1 -7;2;63;18;5 -7;3;0;14;1 -7;3;1;15;2 -7;3;2;14;1 -7;3;4;14;1 -7;3;5;34;4 -7;3;6;14;1 -7;3;7;34;4 -7;3;8;14;1 -7;3;9;18;5 -7;3;10;14;1 -7;3;11;18;5 -7;3;12;14;1 -7;3;13;18;5 -7;3;14;14;1 -7;3;15;18;5 -7;3;16;14;1 -7;3;17;16;6 -7;3;18;14;1 -7;3;19;16;6 -7;3;20;14;1 -7;3;21;34;4 -7;3;22;14;1 -7;3;23;34;4 -7;3;24;14;1 -7;3;25;18;5 -7;3;26;14;1 -7;3;27;18;5 -7;3;28;14;1 -7;3;29;18;5 -7;3;30;14;1 -7;3;31;18;5 -7;3;32;14;1 -7;3;33;16;7 -7;3;34;14;1 -7;3;35;16;7 -7;3;36;14;1 -7;3;37;34;4 -7;3;38;14;1 -7;3;39;34;4 -7;3;40;14;1 -7;3;41;18;5 -7;3;42;14;1 -7;3;43;18;5 -7;3;44;14;1 -7;3;45;18;5 -7;3;46;14;1 -7;3;47;18;5 -7;3;48;14;1 -7;3;49;16;6 -7;3;50;14;1 -7;3;51;16;6 -7;3;52;14;1 -7;3;53;34;4 -7;3;54;14;1 -7;3;55;34;4 -7;3;56;14;1 -7;3;57;18;5 -7;3;58;14;1 -7;3;59;18;5 -7;3;60;14;1 -7;3;61;18;5 -7;3;62;14;1 -7;3;63;18;5 -7;4;0;14;1 -7;4;1;15;2 -7;4;2;14;1 -7;4;3;16;3 -7;4;4;14;1 -7;4;6;14;1 -7;4;8;14;1 -7;4;9;18;5 -7;4;10;14;1 -7;4;11;18;5 -7;4;12;14;1 -7;4;13;18;5 -7;4;14;14;1 -7;4;15;18;5 -7;4;16;14;1 -7;4;17;15;2 -7;4;18;14;1 -7;4;19;16;3 -7;4;20;14;1 -7;4;22;14;1 -7;4;24;14;1 -7;4;25;18;5 -7;4;26;14;1 -7;4;27;18;5 -7;4;28;14;1 -7;4;29;18;5 -7;4;30;14;1 -7;4;31;18;5 -7;4;32;14;1 -7;4;33;15;2 -7;4;34;14;1 -7;4;35;16;3 -7;4;36;14;1 -7;4;38;14;1 -7;4;40;14;1 -7;4;41;18;5 -7;4;42;14;1 -7;4;43;18;5 -7;4;44;14;1 -7;4;45;18;5 -7;4;46;14;1 -7;4;47;18;5 -7;4;48;14;1 -7;4;49;15;2 -7;4;50;14;1 -7;4;51;16;3 -7;4;52;14;1 -7;4;54;14;1 -7;4;56;14;1 -7;4;57;18;5 -7;4;58;14;1 -7;4;59;18;5 -7;4;60;14;1 -7;4;61;18;5 -7;4;62;14;1 -7;4;63;18;5 -7;5;0;14;1 -7;5;1;15;2 -7;5;2;14;1 -7;5;3;16;3 -7;5;4;14;1 -7;5;5;34;4 -7;5;6;14;1 -7;5;7;34;4 -7;5;8;14;1 -7;5;10;14;1 -7;5;12;14;1 -7;5;14;14;1 -7;5;16;14;1 -7;5;17;15;2 -7;5;18;14;1 -7;5;19;16;3 -7;5;20;14;1 -7;5;21;34;4 -7;5;22;14;1 -7;5;23;34;4 -7;5;24;14;1 -7;5;26;14;1 -7;5;28;14;1 -7;5;30;14;1 -7;5;32;14;1 -7;5;33;15;2 -7;5;34;14;1 -7;5;35;16;3 -7;5;36;14;1 -7;5;37;34;4 -7;5;38;14;1 -7;5;39;34;4 -7;5;40;14;1 -7;5;42;14;1 -7;5;44;14;1 -7;5;46;14;1 -7;5;48;14;1 -7;5;49;15;2 -7;5;50;14;1 -7;5;51;16;3 -7;5;52;14;1 -7;5;53;34;4 -7;5;54;14;1 -7;5;55;34;4 -7;5;56;14;1 -7;5;58;14;1 -7;5;60;14;1 -7;5;62;14;1 -7;6;0;14;1 -7;6;1;17;3 -7;6;2;14;1 -7;6;3;17;3 -7;6;4;14;1 -7;6;5;34;4 -7;6;6;14;1 -7;6;7;34;4 -7;6;8;14;1 -7;6;9;18;5 -7;6;10;14;1 -7;6;11;18;5 -7;6;12;14;1 -7;6;13;18;5 -7;6;14;14;1 -7;6;15;18;5 -7;6;16;14;1 -7;6;17;15;2 -7;6;18;14;1 -7;6;19;16;3 -7;6;20;14;1 -7;6;21;34;4 -7;6;22;14;1 -7;6;23;34;4 -7;6;24;14;1 -7;6;25;18;5 -7;6;26;14;1 -7;6;27;18;5 -7;6;28;14;1 -7;6;29;18;5 -7;6;30;14;1 -7;6;31;18;5 -7;6;32;14;1 -7;6;33;17;3 -7;6;34;14;1 -7;6;35;17;3 -7;6;36;14;1 -7;6;37;34;4 -7;6;38;14;1 -7;6;39;34;4 -7;6;40;14;1 -7;6;41;18;5 -7;6;42;14;1 -7;6;43;18;5 -7;6;44;14;1 -7;6;45;18;5 -7;6;46;14;1 -7;6;47;18;5 -7;6;48;14;1 -7;6;49;15;2 -7;6;50;14;1 -7;6;51;16;3 -7;6;52;14;1 -7;6;53;34;4 -7;6;54;14;1 -7;6;55;34;4 -7;6;56;14;1 -7;6;57;18;5 -7;6;58;14;1 -7;6;59;18;5 -7;6;60;14;1 -7;6;61;18;5 -7;6;62;14;1 -7;6;63;18;5 -7;7;0;14;1 -7;7;1;17;3 -7;7;2;14;1 -7;7;3;17;3 -7;7;4;14;1 -7;7;5;34;4 -7;7;6;14;1 -7;7;7;34;4 -7;7;8;14;1 -7;7;9;18;5 -7;7;10;14;1 -7;7;11;18;5 -7;7;12;14;1 -7;7;13;18;5 -7;7;14;14;1 -7;7;15;18;5 -7;7;16;14;1 -7;7;17;17;3 -7;7;18;14;1 -7;7;19;17;3 -7;7;20;14;1 -7;7;21;34;4 -7;7;22;14;1 -7;7;23;34;4 -7;7;24;14;1 -7;7;25;18;5 -7;7;26;14;1 -7;7;27;18;5 -7;7;28;14;1 -7;7;29;18;5 -7;7;30;14;1 -7;7;31;18;5 -7;7;32;14;1 -7;7;33;15;2 -7;7;34;14;1 -7;7;35;16;3 -7;7;36;14;1 -7;7;37;34;4 -7;7;38;14;1 -7;7;39;34;4 -7;7;40;14;1 -7;7;41;18;5 -7;7;42;14;1 -7;7;43;18;5 -7;7;44;14;1 -7;7;45;18;5 -7;7;46;14;1 -7;7;47;18;5 -7;7;48;14;1 -7;7;49;15;2 -7;7;50;14;1 -7;7;51;16;3 -7;7;52;14;1 -7;7;53;34;4 -7;7;54;14;1 -7;7;55;34;4 -7;7;56;14;1 -7;7;57;18;5 -7;7;58;14;1 -7;7;59;18;5 -7;7;60;14;1 -7;7;61;18;5 -7;7;62;14;1 -7;7;63;18;5 diff --git a/StateMachine/ColCom/7_MoriSeiki_main_cambio.rul b/StateMachine/ColCom/7_MoriSeiki_main_cambio.rul deleted file mode 100644 index c481b99..0000000 --- a/StateMachine/ColCom/7_MoriSeiki_main_cambio.rul +++ /dev/null @@ -1,99 +0,0 @@ -# -# Colcom Macchine DOPPIO PALLET (es. Mori Seiki) - macchina PRINCIPALE -# -# partenza da MoriSeiki Colcom (5) -# - aggiunta gestione segnali pallet x indicare IL CAMBIO -# -# -$DEFINITIONS - -$NAME : MORI_SEIKI_main -$IDX : 7 -$N_STATES : 8 -$N_BITS : 6 - -#definizione bit : obbligatorio iniziare da 0 - -$BIT : 0 : bPowerOn -$BIT : 1 : bRun -$BIT : 2 : bDepPezzo -$BIT : 3 : bAlarm -$BIT : 4 : bTav1 -$BIT : 5 : bTav2 - -#definizione stati : obbligatorio iniziare da 0 - -$STATE : 0 : ST_Init -$STATE : 1 : ST_Power_off -$STATE : 2 : ST_Machine_ready -$STATE : 3 : ST_RunOK -$STATE : 4 : ST_PezzoRobot -$STATE : 5 : ST_Alarm -$STATE : 6 : ST_Tav1 -$STATE : 7 : ST_Tav2 - -#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_deposito_pezzo - - -$RULES - -# state : input : next state : event -ALL_STATES : NOT bPowerOn : ST_Power_off : HW_power_off - -ALL_STATES : bAlarm : ST_Alarm : HW_error - -ALL_STATES : bDepPezzo : ST_PezzoRobot : HW_deposito_pezzo - -# rifare: VA VIA il bit della tavola --> end machining -# 23 / 03 / 13 (tav 2 --> tav 1) -# 13 / 03 / 23 (tav 1 --> tav 2) -ST_Tav1 : NOT bTav1 : ST_RunOK : HW_end_machining -ST_Tav2 : NOT bTav2 : ST_RunOK : HW_end_machining -ST_RunOK : bTav1 : ST_Tav1 : HW_machining -ST_RunOK : bTav2 : ST_Tav2 : HW_machining - -ALL_STATES : bRun : ST_RunOK : HW_machining - -ALL_STATES : bPowerOn : ST_Machine_ready : HW_power_on - -#-------------------------------------------------------------------------- - -$DO - - diff --git a/StateMachine/ColCom/7_MoriSeiki_simple.csv b/StateMachine/ColCom/7_MoriSeiki_simple.csv new file mode 100644 index 0000000..1a294af --- /dev/null +++ b/StateMachine/ColCom/7_MoriSeiki_simple.csv @@ -0,0 +1,65 @@ +IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStato +7;0;0;14;1 +7;0;1;24;2 +7;0;2;14;1 +7;0;3;16;3 +7;0;4;14;1 +7;0;5;24;2 +7;0;6;14;1 +7;0;7;16;3 +7;0;8;14;1 +7;0;9;18;4 +7;0;10;14;1 +7;0;11;18;4 +7;0;12;14;1 +7;0;13;18;4 +7;0;14;14;1 +7;0;15;18;4 +7;1;1;24;2 +7;1;3;16;3 +7;1;5;24;2 +7;1;7;16;3 +7;1;9;18;4 +7;1;11;18;4 +7;1;13;18;4 +7;1;15;18;4 +7;2;0;14;1 +7;2;2;14;1 +7;2;3;16;3 +7;2;4;14;1 +7;2;6;14;1 +7;2;7;16;3 +7;2;8;14;1 +7;2;9;18;4 +7;2;10;14;1 +7;2;11;18;4 +7;2;12;14;1 +7;2;13;18;4 +7;2;14;14;1 +7;2;15;18;4 +7;3;0;14;1 +7;3;1;24;2 +7;3;2;14;1 +7;3;4;14;1 +7;3;5;24;2 +7;3;6;14;1 +7;3;8;14;1 +7;3;9;18;4 +7;3;10;14;1 +7;3;11;18;4 +7;3;12;14;1 +7;3;13;18;4 +7;3;14;14;1 +7;3;15;18;4 +7;4;0;14;1 +7;4;1;24;2 +7;4;2;14;1 +7;4;3;16;3 +7;4;4;14;1 +7;4;5;24;2 +7;4;6;14;1 +7;4;7;16;3 +7;4;8;14;1 +7;4;10;14;1 +7;4;12;14;1 +7;4;14;14;1 diff --git a/StateMachine/ColCom/7_MoriSeiki_simple.rul b/StateMachine/ColCom/7_MoriSeiki_simple.rul new file mode 100644 index 0000000..72e4ffc --- /dev/null +++ b/StateMachine/ColCom/7_MoriSeiki_simple.rul @@ -0,0 +1,86 @@ +# +# Colcom Macchine DOPPIO PALLET (es. Mori Seiki) - macchina PRINCIPALE +# +# partenza da 5 SEMPLIFICAOT (NON considera bit2 / +4) +# +# +$DEFINITIONS + +$NAME : MORI_SEIKI_main +$IDX : 7 +$N_STATES : 5 +$N_BITS : 4 + +#definizione bit : obbligatorio iniziare da 0 + +$BIT : 0 : bPowerOn +$BIT : 1 : bRun +$BIT : 2 : bDepPezzo +$BIT : 3 : bAlarm + +#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_Alarm + +#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 : 39 : Barcode_Anomalia_Macchina +$EVENT : 40 : HW_Test_WU_CD +$EVENT : 41 : HW_run_slow +#$EVENT : 999 : Commento + + +$RULES + +# state : input : next state : event +ALL_STATES : NOT bPowerOn : ST_Power_off : HW_power_off +ALL_STATES : bAlarm : ST_Alarm : HW_error +ALL_STATES : bRun : ST_Run : HW_machining +ALL_STATES : bPowerOn : ST_Machine_ready : HW_manuale + +#-------------------------------------------------------------------------- + +$DO \ No newline at end of file