Fix state machine DOPOSAN x tavola

This commit is contained in:
2017-10-04 14:50:40 +02:00
parent 0692b416e7
commit 46257aef86
2 changed files with 8 additions and 24 deletions
+2 -15
View File
@@ -1,16 +1,3 @@
IdxFamigliaIngresso;IdxMicroStato;ValoreIngresso;IdxTipoEvento;next_IdxMicroStato
27;0;1;35;2
27;0;2;36;3
27;0;3;35;2
27;1;1;35;2
27;1;2;36;3
27;1;3;35;2
27;2;0;37;1
27;2;2;37;1
27;2;3;39;4
27;3;0;38;1
27;3;1;38;1
27;3;3;39;4
27;4;0;36;3
27;4;1;35;2
27;4;2;36;3
27;0;1;35;1
27;1;0;36;0
1 IdxFamigliaIngresso IdxMicroStato ValoreIngresso IdxTipoEvento next_IdxMicroStato
2 27 0 1 35 2 1
3 27 0 1 2 0 36 3 0
27 0 3 35 2
27 1 1 35 2
27 1 2 36 3
27 1 3 35 2
27 2 0 37 1
27 2 2 37 1
27 2 3 39 4
27 3 0 38 1
27 3 1 38 1
27 3 3 39 4
27 4 0 36 3
27 4 1 35 2
27 4 2 36 3
+6 -9
View File
@@ -20,8 +20,7 @@ $N_BITS : 1
#definizione bit : obbligatorio iniziare da 0
$BIT : 0 : B_EndCiclo
$BIT : 1 : B_LavoraTav
$BIT : 0 : B_LavoraTav
#definizione stati : obbligatorio iniziare da 0
@@ -64,18 +63,16 @@ $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 pallet
$EVENT : 36 : HW - end pallet
$EVENT : 34 : HW - deposito robot
$EVENT : 35 : HW - Start Tavola
$EVENT : 36 : HW - End Tavola
$RULES
# state : input : next state : event
ST_End : B_LavoraTav : ST_LavTav : HW - start pallet
ST_LavTav : B_EndCiclo : ST_End : HW - end pallet
ST_End : B_LavoraTav : ST_LavTav : HW - Start Tavola
ST_LavTav : NOT B_LavoraTav : ST_End : HW - End Tavola
#--------------------------------------------------------------------------