From e3c6fca908cd8b1c2e5e8303336744d85f2dea28 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 28 Nov 2018 20:52:52 +0100 Subject: [PATCH] Aggiunta appunto delle mappe ruoli nuove LVF --- StateMachine/Freeplast/46_OSAI_CMS.rul | 93 +++++++++++++++++++ ...5_GD32_5bit.csv => 45_GLD25_GD32_5bit.csv} | 0 ...5_GD32_5bit.rul => 45_GLD25_GD32_5bit.rul} | 0 ...5_GD32_7bit.csv => 45_GLD25_GD32_7bit.csv} | 0 ...5_GD32_7bit.rul => 45_GLD25_GD32_7bit.rul} | 0 StateMachine/LVF/47_OSAI_CMS.rul | 93 +++++++++++++++++++ 6 files changed, 186 insertions(+) create mode 100644 StateMachine/Freeplast/46_OSAI_CMS.rul rename StateMachine/Jetco/{43_GLD25_GD32_5bit.csv => 45_GLD25_GD32_5bit.csv} (100%) rename StateMachine/Jetco/{43_GLD25_GD32_5bit.rul => 45_GLD25_GD32_5bit.rul} (100%) rename StateMachine/Jetco/{43_GLD25_GD32_7bit.csv => 45_GLD25_GD32_7bit.csv} (100%) rename StateMachine/Jetco/{43_GLD25_GD32_7bit.rul => 45_GLD25_GD32_7bit.rul} (100%) create mode 100644 StateMachine/LVF/47_OSAI_CMS.rul diff --git a/StateMachine/Freeplast/46_OSAI_CMS.rul b/StateMachine/Freeplast/46_OSAI_CMS.rul new file mode 100644 index 0000000..8686a8f --- /dev/null +++ b/StateMachine/Freeplast/46_OSAI_CMS.rul @@ -0,0 +1,93 @@ +# +# Jetco macchine FANUC con contapezzi SEMPRE attivo (anche in attrezzaggio) +# +# partenza da IdxFam 40 +# +# +$DEFINITIONS + +$NAME : FANUC +$IDX : 42 +$N_STATES : 7 +$N_BITS : 5 + +#definizione bit : obbligatorio iniziare da 0 + +$BIT : 0 : power_on +$BIT : 1 : run +$BIT : 2 : end_cycle +$BIT : 3 : alarm +$BIT : 4 : manual +#$BIT : 5 : door_opened +#$BIT : 6 : emergency + +#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 + +#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 +ALL_STATES : end_cycle : ST_Cycle_end : HW_end_pallet +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 + +#-------------------------------------------------------------------------- + + + +$DO diff --git a/StateMachine/Jetco/43_GLD25_GD32_5bit.csv b/StateMachine/Jetco/45_GLD25_GD32_5bit.csv similarity index 100% rename from StateMachine/Jetco/43_GLD25_GD32_5bit.csv rename to StateMachine/Jetco/45_GLD25_GD32_5bit.csv diff --git a/StateMachine/Jetco/43_GLD25_GD32_5bit.rul b/StateMachine/Jetco/45_GLD25_GD32_5bit.rul similarity index 100% rename from StateMachine/Jetco/43_GLD25_GD32_5bit.rul rename to StateMachine/Jetco/45_GLD25_GD32_5bit.rul diff --git a/StateMachine/Jetco/43_GLD25_GD32_7bit.csv b/StateMachine/Jetco/45_GLD25_GD32_7bit.csv similarity index 100% rename from StateMachine/Jetco/43_GLD25_GD32_7bit.csv rename to StateMachine/Jetco/45_GLD25_GD32_7bit.csv diff --git a/StateMachine/Jetco/43_GLD25_GD32_7bit.rul b/StateMachine/Jetco/45_GLD25_GD32_7bit.rul similarity index 100% rename from StateMachine/Jetco/43_GLD25_GD32_7bit.rul rename to StateMachine/Jetco/45_GLD25_GD32_7bit.rul diff --git a/StateMachine/LVF/47_OSAI_CMS.rul b/StateMachine/LVF/47_OSAI_CMS.rul new file mode 100644 index 0000000..8686a8f --- /dev/null +++ b/StateMachine/LVF/47_OSAI_CMS.rul @@ -0,0 +1,93 @@ +# +# Jetco macchine FANUC con contapezzi SEMPRE attivo (anche in attrezzaggio) +# +# partenza da IdxFam 40 +# +# +$DEFINITIONS + +$NAME : FANUC +$IDX : 42 +$N_STATES : 7 +$N_BITS : 5 + +#definizione bit : obbligatorio iniziare da 0 + +$BIT : 0 : power_on +$BIT : 1 : run +$BIT : 2 : end_cycle +$BIT : 3 : alarm +$BIT : 4 : manual +#$BIT : 5 : door_opened +#$BIT : 6 : emergency + +#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 + +#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 +ALL_STATES : end_cycle : ST_Cycle_end : HW_end_pallet +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 + +#-------------------------------------------------------------------------- + + + +$DO