From 757e8ba066e9fb7bc7389150c102b2d2fa5c405a Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 7 Nov 2022 18:33:09 +0100 Subject: [PATCH 1/2] Update decodifica input machine x nikkei --- StateMachine/Donati/20_nikkei.csv | 34 ++++++++--------- StateMachine/Donati/20_nikkei.rul | 61 ++++++++++++++++--------------- 2 files changed, 49 insertions(+), 46 deletions(-) diff --git a/StateMachine/Donati/20_nikkei.csv b/StateMachine/Donati/20_nikkei.csv index 2a21cb3..5fdc85a 100644 --- a/StateMachine/Donati/20_nikkei.csv +++ b/StateMachine/Donati/20_nikkei.csv @@ -20,7 +20,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;0;18;14;1 20;0;19;16;3 20;0;20;14;1 -20;0;21;24;6 +20;0;21;22;4 20;0;22;14;1 20;0;23;16;3 20;0;24;14;1 @@ -41,7 +41,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;1;15;18;5 20;1;17;24;6 20;1;19;16;3 -20;1;21;24;6 +20;1;21;22;4 20;1;23;16;3 20;1;25;18;5 20;1;27;18;5 @@ -67,7 +67,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;2;18;14;1 20;2;19;16;3 20;2;20;14;1 -20;2;21;24;6 +20;2;21;22;4 20;2;22;14;1 20;2;23;16;3 20;2;24;14;1 @@ -96,7 +96,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;3;17;24;6 20;3;18;14;1 20;3;20;14;1 -20;3;21;24;6 +20;3;21;22;4 20;3;22;14;1 20;3;24;14;1 20;3;25;18;5 @@ -107,7 +107,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;3;30;14;1 20;3;31;18;5 20;4;0;14;1 -20;4;1;0;7 +20;4;1;15;2 20;4;2;14;1 20;4;3;16;3 20;4;4;14;1 @@ -126,7 +126,6 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;4;18;14;1 20;4;19;16;3 20;4;20;14;1 -20;4;21;24;6 20;4;22;14;1 20;4;23;16;3 20;4;24;14;1 @@ -154,7 +153,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;5;18;14;1 20;5;19;16;3 20;5;20;14;1 -20;5;21;24;6 +20;5;21;22;4 20;5;22;14;1 20;5;23;16;3 20;5;24;14;1 @@ -162,11 +161,11 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;5;28;14;1 20;5;30;14;1 20;6;0;14;1 -20;6;1;0;7 +20;6;1;15;2 20;6;2;14;1 20;6;3;16;3 20;6;4;14;1 -20;6;5;0;7 +20;6;5;22;4 20;6;6;14;1 20;6;7;16;3 20;6;8;14;1 @@ -181,6 +180,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;6;18;14;1 20;6;19;16;3 20;6;20;14;1 +20;6;21;22;4 20;6;22;14;1 20;6;23;16;3 20;6;24;14;1 @@ -192,11 +192,11 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;6;30;14;1 20;6;31;18;5 20;7;0;14;1 -20;7;1;0;8 +20;7;1;15;2 20;7;2;14;1 20;7;3;16;3 20;7;4;14;1 -20;7;5;0;4 +20;7;5;22;4 20;7;6;14;1 20;7;7;16;3 20;7;8;14;1 @@ -212,7 +212,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;7;18;14;1 20;7;19;16;3 20;7;20;14;1 -20;7;21;24;6 +20;7;21;22;4 20;7;22;14;1 20;7;23;16;3 20;7;24;14;1 @@ -224,11 +224,11 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;7;30;14;1 20;7;31;18;5 20;8;0;14;1 -20;8;1;0;9 +20;8;1;15;2 20;8;2;14;1 20;8;3;16;3 20;8;4;14;1 -20;8;5;0;4 +20;8;5;22;4 20;8;6;14;1 20;8;7;16;3 20;8;8;14;1 @@ -244,7 +244,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;8;18;14;1 20;8;19;16;3 20;8;20;14;1 -20;8;21;24;6 +20;8;21;22;4 20;8;22;14;1 20;8;23;16;3 20;8;24;14;1 @@ -260,7 +260,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;9;2;14;1 20;9;3;16;3 20;9;4;14;1 -20;9;5;0;4 +20;9;5;22;4 20;9;6;14;1 20;9;7;16;3 20;9;8;14;1 @@ -276,7 +276,7 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 20;9;18;14;1 20;9;19;16;3 20;9;20;14;1 -20;9;21;24;6 +20;9;21;22;4 20;9;22;14;1 20;9;23;16;3 20;9;24;14;1 diff --git a/StateMachine/Donati/20_nikkei.rul b/StateMachine/Donati/20_nikkei.rul index 8220c8a..309b084 100644 --- a/StateMachine/Donati/20_nikkei.rul +++ b/StateMachine/Donati/20_nikkei.rul @@ -75,36 +75,39 @@ ALL_STATES : NOT power_on : ST_Power_off : HW - power off ALL_STATES : alarm : ST_Alarm : HW - error ALL_STATES : run : ST_Run : HW - machining -ALL_STATES : door_open : ST_Manual : HW manuale +ALL_STATES : end_cycle : ST_Cycle_end : HW - end pallet -#-------------------------------------------------------------------------- +ALL_STATES : door_open : ST_Manual : HW manuale +ALL_STATES : power_on : ST_Machine_ready : HW - power on -ST_Init : end_cycle : ST_Cycle_end : HW - end pallet -ST_Power_off : end_cycle : ST_Cycle_end : HW - end pallet -ST_Alarm : end_cycle : ST_Cycle_end : HW - end pallet -ST_Run : end_cycle : ST_Cycle_end : HW - end pallet -ST_Machine_ready : end_cycle : ST_Cycle_end : HW - end pallet - -ST_Cycle_end : end_cycle : ST_Cycle_end : EV_00 -ST_CycEnd_2 : end_cycle : ST_Cycle_end : EV_00 -ST_CycEnd_3 : end_cycle : ST_Cycle_end : EV_00 -ST_CycEnd_4 : end_cycle : ST_Cycle_end : EV_00 - -#-------------------------------------------------------------------------- - -ST_Init : power_on : ST_Machine_ready : HW - power on -ST_Power_off : power_on : ST_Machine_ready : HW - power on -ST_Alarm : power_on : ST_Machine_ready : HW - power on -ST_Run : power_on : ST_Machine_ready : HW - power on -ST_Machine_ready : power_on : ST_Machine_ready : HW - power on - -ST_Manual : power_on : ST_CycEnd_2 : EV_00 - -ST_Cycle_end : power_on : ST_CycEnd_2 : EV_00 -ST_CycEnd_2 : power_on : ST_CycEnd_3 : EV_00 -ST_CycEnd_3 : power_on : ST_CycEnd_4 : EV_00 -ST_CycEnd_4 : power_on : ST_Machine_ready : HW - power on - -#-------------------------------------------------------------------------- +##-------------------------------------------------------------------------- +# +#ST_Init : end_cycle : ST_Cycle_end : HW - end pallet +#ST_Power_off : end_cycle : ST_Cycle_end : HW - end pallet +#ST_Alarm : end_cycle : ST_Cycle_end : HW - end pallet +#ST_Run : end_cycle : ST_Cycle_end : HW - end pallet +#ST_Machine_ready : end_cycle : ST_Cycle_end : HW - end pallet +# +#ST_Cycle_end : end_cycle : ST_Cycle_end : EV_00 +#ST_CycEnd_2 : end_cycle : ST_Cycle_end : EV_00 +#ST_CycEnd_3 : end_cycle : ST_Cycle_end : EV_00 +#ST_CycEnd_4 : end_cycle : ST_Cycle_end : EV_00 +# +##-------------------------------------------------------------------------- +# +#ST_Init : power_on : ST_Machine_ready : HW - power on +#ST_Power_off : power_on : ST_Machine_ready : HW - power on +#ST_Alarm : power_on : ST_Machine_ready : HW - power on +#ST_Run : power_on : ST_Machine_ready : HW - power on +#ST_Machine_ready : power_on : ST_Machine_ready : HW - power on +# +#ST_Manual : power_on : ST_CycEnd_2 : EV_00 +# +#ST_Cycle_end : power_on : ST_CycEnd_2 : EV_00 +#ST_CycEnd_2 : power_on : ST_CycEnd_3 : EV_00 +#ST_CycEnd_3 : power_on : ST_CycEnd_4 : EV_00 +#ST_CycEnd_4 : power_on : ST_Machine_ready : HW - power on +# +##-------------------------------------------------------------------------- $DO From 8cc99c480508bc4b8c3a968b09f9b5572e29ac68 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 27 Jan 2023 10:28:06 +0100 Subject: [PATCH 2/2] Fix state machine x LVF ABB1 robot --- StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.csv | 14 ++++++++++++++ StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.rul | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.csv b/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.csv index e0d2ae8..b97b0e8 100644 --- a/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.csv +++ b/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.csv @@ -65,3 +65,17 @@ IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStat 65;4;10;14;1 65;4;12;14;1 65;4;14;14;1 +65;5;0;14;1 +65;5;2;14;1 +65;5;3;15;2 +65;5;4;14;1 +65;5;6;14;1 +65;5;7;16;3 +65;5;8;14;1 +65;5;9;22;4 +65;5;10;14;1 +65;5;11;22;4 +65;5;12;14;1 +65;5;13;22;4 +65;5;14;14;1 +65;5;15;22;4 diff --git a/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.rul b/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.rul index fe1872c..6bf3622 100644 --- a/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.rul +++ b/StateMachine/LVF/65_LVF_ROB_ABB_IOB_PI.rul @@ -8,7 +8,7 @@ $DEFINITIONS $NAME : ABB_ROBOT_HW $IDX : 65 -$N_STATES : 5 +$N_STATES : 6 $N_BITS : 4 #definizione bit : obbligatorio iniziare da 0