Factory Simulation: Same Input, Different Output based on Activity Count.

 

 

Hello,

I was trying to figure out how to achieve this functionality:

For two transform activities, I have the same Input (called it, Input). One activity, I have the output, output.2, and the other I have output.2. As follows:

Transform 1: Input 1, Output 1
Transform 2: Input 1, Output 2

I have different activities occuring on this work center but they have the same input and output, so the entire work cell looks like: 

EG:

Transform 1: Input 1, Output 1
Transform 2: Input 1, Output 2
Transform 3 Input 2, Output 3
Transform 4: Input 3, Output 4
Transform 5: Input 4, Output 5

I would like to simulate the behaviour that every 5 times Transform 1 occurs, when the machine receieves Input 1, it instead performs Transform 2.

I cannot do group-based sequence activity mode as my flow is too complex to have a defined sequence. 

I tried the following User Logic described in the image. 
 

It appears that the user logic "At Accept Part" doesn't allow me to change the S_NextActivity even though the condition becomes true.