Files
Mapo-IOB/StateMachineStati/ELENCO_EVENTI_E_STATI_MASTER_NEW.rul
2026-03-30 12:05:21 +02:00

196 lines
9.3 KiB
Plaintext

#
# QUI CI SONO TUTTI GLI EVENTI E GLI STATI MASTER usato per Creare nuova Famiglia
#
# ora viene usato il programma e i campi Key delle tabelle anagrafiche Stati ed Eventi
#
# 2023.08.11
# 2023.10.05 Barcode ColCom
# 2023.10.10 In Deroga - ColCom
# 2024.01.18 Barcode Rottura_Utensile - Colcom
# 2024.02.23 Aggiunto Barcode Pausa - 60 - Fluitek
# 2024.07.17 Aggiunti Barcode Lvf - 61 62 63
# 2025.01.28 Aggiunto Stato 40 HW_Riscaldam
# 2026.03.27 Aggiunti Barcode Fluitek - 64
# ELENCO STATI E EVENTI DI BASE
#
# 27 MancaRifornMPD -> Manca_Materia_Prima
#
$STATE : 0 : ND
$STATE : 1 : Macchina_Pronta
$STATE : 2 : Attrezzaggio
$STATE : 3 : Creazione_Programmi
$STATE : 4 : Lavori_Vari
$STATE : 5 : Guasto
$STATE : 6 : Manca_Pezzo
$STATE : 7 : Manca_Lavoro
$STATE : 8 : Assenteismo
$STATE : 9 : Manutenzione
$STATE : 10 : Pulizia
$STATE : 11 : Macchina_Spenta
$STATE : 12 : Fermo_Generico
$STATE : 13 : Lavorazione
$STATE : 14 : Cambio_Pezzo
$STATE : 15 : Allarme_CN
$STATE : 23 : Rottura_Nastro
$STATE : 24 : Manuale
$STATE : 25 : Scarico_Pieno
$STATE : 26 : Non_Disponibile
$STATE : 27 : Manca_Materia_Prima
$STATE : 28 : Magazzino_Grezzi_Vuoto
$STATE : 29 : Emergenza
$STATE : 30 : Fermo_Organizzativo
$STATE : 31 : Modifica_Programmi
$STATE : 32 : Sostituzione_Utensile
$STATE : 33 : Riempimento_Vasca
$STATE : 34 : Riscaldamento
$STATE : 35 : Anomalia_Macchina
$STATE : 36 : Accensione_Spegnimento
$STATE : 37 : Carico
$STATE : 38 : Riserva
$STATE : 39 : A_Vuoto
$STATE : 40 : Riscaldam_Autom
$STATE : 49 : Manca_Attrezzatura
$STATE : 50 : Usura_Utensile
$STATE : 51 : Adeguamento_Attrezzature
$STATE : 52 : Formazione_Personale
$STATE : 53 : Allarme_Tavola
$STATE : 54 : Attesa_Attrezzista
$STATE : 55 : Pausa_Pranzo
$STATE : 56 : Manca_Operatore
$STATE : 57 : Manca_Mater_Tagliato
$STATE : 58 : In_Deroga
$STATE : 59 : Rottura_Utensile
$STATE : 60 : Pausa
$STATE : 61 : Manutenzione_Straordinaria
$STATE : 62 : Manutenzione_Ordinaria
$STATE : 63 : Problemi_di_Lavorazione
$STATE : 64 : Prototipi
#definizione eventi : obbligatorio iniziare da 0 --> select * from AnagraficaEventi
# NOTE
#
# BARCODE SOSTITUITI
#
# 4 NoBarcode_Riempimento_Vasca -> Barcode_Lavori_Vari (DONATI)
# 6 NoBarcode_Riscaldamento -> Barcode_Manca_Pezzo (DONATI)
# 15 HW_PowerOn -> HW_Power_On
# 26 Barcode_Manca_Riforn_MPD -> Barcode_Manca_Materia_Prima
# 29 HW_magazzino_grezzi vuoto POTREBBE ESSERE HW - mancanza materiale DA CAMBIARE
# 33 HW_Allarme Macchina -> HW_Allarme_Macchina
# 34 HW_End_Pallet_1 -> HW_Deposito_Robot
# 35 HW_End_Pallet_2 -> HW_Start_Tavola
# 36 HW_Deposito_Robot -> HW_End_Tavola
$EVENT : 00 : EMPTY
$EVENT : 01 : Barcode_Lavora
$EVENT : 02 : Barcode_Attrezzaggio
$EVENT : 03 : Barcode_Creazione_Programmi
$EVENT : 04 : Barcode_Lavori_Vari
$EVENT : 05 : Barcode_Guasto
$EVENT : 06 : Barcode_Manca_Pezzo
$EVENT : 07 : Barcode_Manca_Ciclo_Lavoro
$EVENT : 08 : Barcode_Assenteismo
$EVENT : 09 : Barcode_Manutenzione
$EVENT : 10 : Barcode_Pulizia
$EVENT : 11 : Bcode_Cambio_Pallet
$EVENT : 12 : Barcode_Macchina_Spenta
$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_Fermo_Organizzativo
$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_Materia_Prima
$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_Robot
$EVENT : 35 : HW_Start_Tavola
$EVENT : 36 : HW_End_Tavola
$EVENT : 37 : Barcode_Riempimento_Vasca
$EVENT : 38 : Barcode_Riscaldamento
$EVENT : 39 : Barcode_Anomalia_macchina
$EVENT : 40 : HW_Ciclo_Accensione_Spegnimento
$EVENT : 41 : HW_Machining_SLOW
$EVENT : 42 : HW_Warn_Livello_Vasca
$EVENT : 43 : HW_Warn_Livello_Cell
$EVENT : 44 : HW_Warn_a_Vuoto
$EVENT : 45 : HW_Warn_Riserva
$EVENT : 46 : HW_Carico
$EVENT : 47 : HW_Mismatch
$EVENT : 48 : HW_Preparing
$EVENT : 49 : Barcode_Manca_Attrezzatura
$EVENT : 50 : Barcode_Usura_Utensile
$EVENT : 51 : Barcode_Adeguamento_Attrezzature
$EVENT : 52 : Barcode_Formazione_Personale
$EVENT : 53 : HW_Allarme_Tavola
$EVENT : 54 : Barcode_Attesa_Attrezzista
$EVENT : 55 : Barcode_Pausa_Pranzo
$EVENT : 56 : Barcode_Manca_Operatore
$EVENT : 57 : Barcode_Manca_Mater_Tagliato
$EVENT : 58 : Barcode_In_Deroga
$EVENT : 59 : Barcode_Rottura_Utensile
$EVENT : 60 : Barcode_Pausa
$EVENT : 61 : Barcode_Manutenzione_Straordinaria
$EVENT : 62 : Barcode_Manutenzione_Ordinaria
$EVENT : 63 : Barcode_Problemi_di_Lavorazione
$EVENT : 64 : Barcode_Prototipi
$RULES
# state : event : next state : Cod. Event
ALL_STATES : EMPTY : ND
ALL_STATES : Barcode_Lavora : Macchina_Pronta # 1
ALL_STATES : Barcode_Attrezzaggio : Attrezzaggio # 2
ALL_STATES : Barcode_Creazione_Programmi : Creazione_Programmi # 3
ALL_STATES : Barcode_Lavori_Vari : Lavori_Vari # 4
ALL_STATES : Barcode_Guasto : Guasto # 5
ALL_STATES : Barcode_Manca_Pezzo : Manca_Pezzo # 6
ALL_STATES : Barcode_Manca_Ciclo_Lavoro : Manca_Lavoro # 7
ALL_STATES : Barcode_Assenteismo : Assenteismo # 8
ALL_STATES : Barcode_Manutenzione : Manutenzione # 9
ALL_STATES : Barcode_Pulizia : Pulizia # 10
#ALL_STATES : Bcode_Cambio_Pallet : Cambio_Pezzo # 11 TOLTO perchè non dovrebbe mai essere usato da nessuno infatti nome sbagliato bcode
ALL_STATES : Barcode_Macchina_Spenta : Macchina_Spenta # 12
ALL_STATES : Barcode_Fermo_Organizzativo : Fermo_Organizzativo # 19
ALL_STATES : Barcode_Manca_Materia_Prima : Manca_Materia_Prima # 26
ALL_STATES : Barcode_Modifica_Programmi : Modifica_Programmi # 31
ALL_STATES : Barcode_Sostituzione_Utensile : Sostituzione_Utensile # 32
ALL_STATES : Barcode_Riempimento_Vasca : Riempimento_Vasca # 37
ALL_STATES : Barcode_Riscaldamento : Riscaldamento # 38
ALL_STATES : Barcode_Anomalia_Macchina : Anomalia_Macchina # 39
ALL_STATES : Barcode_Manca_Attrezzatura : Manca_Attrezzatura # 49
ALL_STATES : Barcode_Usura_Utensile : Usura_Utensile # 50
ALL_STATES : Barcode_Adeguamento_Attrezzature : Adeguamento_Attrezzature # 51
ALL_STATES : Barcode_Formazione_Personale : Formazione_Personale # 52
ALL_STATES : Barcode_Attesa_Attrezzista : Attesa_Attrezzista # 54
ALL_STATES : Barcode_Pausa_Pranzo : Pausa_Pranzo # 55
ALL_STATES : Barcode_Manca_Operatore : Manca_Operatore # 56
ALL_STATES : Barcode_Manca_Mater_Tagliato : Manca_Mater_Tagliato # 57
ALL_STATES : Barcode_In_Deroga : In_Deroga # 58
ALL_STATES : Barcode_Rottura_Utensile : Rottura_Utensile # 59
ALL_STATES : Barcode_Pausa : Pausa # 60
ALL_STATES : Barcode_Manutenzione_Straordinaria : Manutenzione_Straordinaria # 61
ALL_STATES : Barcode_Manutenzione_Ordinaria : Manutenzione_Ordinaria # 62
ALL_STATES : Barcode_Problemi_di_Lavorazione : Problemi_di_Lavorazione # 63
ALL_STATES : Barcode_Prototipi : Prototipi # 64
ALL_STATES : HW_power_off : Macchina_Spenta # 14