Modifica x simulare emergenza da no centralina / no magnete

This commit is contained in:
2020-10-19 17:28:29 +02:00
parent a7a0fc63bb
commit 44d4aeefad
2 changed files with 1643 additions and 548 deletions
File diff suppressed because it is too large Load Diff
@@ -8,7 +8,7 @@ $DEFINITIONS
$NAME : Delta Syntesys Diastep4
$IDX : 59
$N_STATES : 5
$N_STATES : 7
$N_BITS : 9
#definizione bit : obbligatorio iniziare da 0
@@ -28,7 +28,8 @@ $STATE : 1 : ST_Power_off
$STATE : 2 : ST_Machine_ready
$STATE : 3 : ST_machining
$STATE : 4 : ST_manuale
#$STATE : 5 : ST_EndCut
$STATE : 5 : ST_NoMag
$STATE : 6 : ST_Emerg
#definizione eventi : obbligatorio iniziare da 0
$EVENT : 00 : EV_00
@@ -89,11 +90,17 @@ $RULES
# state : input : next state : event
ALL_STATES : NOT bPowerOn : ST_Power_off : HW_power_off
# catena emergenza (NO centralina moto e no magnete)
ST_Emerg : bCentrMoto : ST_Machine_ready : HW_PowerOn
ST_Emerg : bMagnOk : ST_Machine_ready : HW_PowerOn
ST_NoMag : bCentrMoto : ST_Machine_ready : HW_PowerOn
ST_NoMag : bMagnOk : ST_Machine_ready : HW_PowerOn
ST_NoMag : NOT bCentrMoto : ST_Emerg : HW_emergenza
ALL_STATES : NOT bMagnOk : ST_NoMag : HW_manuale
# eventi --> stato MANUALE
ALL_STATES : NOT bDoorClosed : ST_manuale : HW_manuale
ALL_STATES : NOT bCentrMoto : ST_manuale : HW_manuale
ALL_STATES : NOT bStartTav : ST_manuale : HW_manuale
ALL_STATES : NOT bMagnOk : ST_manuale : HW_manuale
ALL_STATES : NOT bMolaStart : ST_manuale : HW_manuale
#lavora