I am very new to plant simulation and taking baby step to learn using it.
I try to execute simple stock removal problem from from one book, but it is not run as expected. The code errors keep coming out. I attached files for references.
if store. numMU = 99 then
Solved! Go to Solution.
You are currently building your code in Simtalk 2.0, so a lot of your code is not necessary; there is a syntax error however, you cannot have a space between store. and numMU. Check the help documentation for the difference between the two different syntaxes. In this case, you can simply suffice with the following code.
if store.numMU = 99 store.deletemovables end
Additionally I saw that you have the entrance control on 'before actions'. This means that you will check on the 100th MU coming in, to delete the rest of the MU's. Just an observation. If you want the 99th to be the trigger, you have to turn this off.