Hi,
I would like to know if it is possible to have multiple lines associated to the same trigger inside a state, for example,
==========================================================
every 1 s / vTimeOut--
[sSW1] / vCook_Min++; vTimeOut=10 [vCook_Min==60] / vCook_Min=0
[sSW2] / vCook_Seg++; vTimeOut=10 [vCook_Seg==60] / vCook_Seg=0
===========================================================
In the upper lines I would expect that "every 1s" affects the three lines,
1) vTimeOut-- , without condition,
2) [sSW1] / vCook_Min++; vTimeOut=10 [vCook_Min==60] / vCook_Min=0, having the sSW1 event condition , and
3) [sSW2] / vCook_Seg++; vTimeOut=10 [vCook_Seg==60] / vCook_Seg=0, , having the sSW2 event condition.
By analising the generated code I don´t get what I wish because lines 2 and 3 are not linked to "every 1s" trigger.
Now, If I re-write the code as follows,
==========================================================
every 1 s / vTimeOut--
every 1 s [sSW1] / vCook_Min++; vTimeOut=10 [vCook_Min==60] / vCook_Min=0
every 1 s [sSW2] / vCook_Seg++; vTimeOut=10 [vCook_Seg==60] / vCook_Seg=0
===========================================================
Here, seen the generated code again, I have obtained 3 differents events by each line, what is not exactly what I wish.
Any suggestions?
Thanks in advance,
Eduardo