Gary Bamberger
i Greg,
Your code is close except I think that you need to add a counter for input 1. Also you will want to move the time input statement to be last:
S1,
#R1: ADD R; SET T = 0 ---> SX
#R2: IF (T >= 30) AND (R >= 1) [@Chained, @Unchained]
@Chained: ADD C; SHOW 3,Chained,C; SET R = 0, T = 0 ---> S1
@Unchained: ADD U; SHOW 4,Unchained,U; SET R = 0, T = 0 ---> S1
1": ADD T ---> SX
The R counter is needed because what if a response happens on input 2 and T >= 0, but a response never happened on input 1. The time statement needs to be last because if a response on input 2 happens at exactly the same time as the 1″ timer, then the input 2 response would be missed.