I have been trying to create a model with methods. However I am new in SimTalk, so I would appreciate any help.
I have Part 1 and Part 2, I want that all the Parts 1 go to Buffer 1, and Parts 2 go to buffer 2.
For buffer 1 I did this code, but it is unloading both parts: part 1 and part 2
while @.occupied loop
if buffer1.full then
debug;--buffer is full, avoid endless loop
Thank you in advance!!!
Solved! Go to Solution.
You can use a simple if-statement:
if @.name = "Part1" @.cont.move(Buffer1) else @.cont.move(Buffer2)
So parts name "part1" goes to buffer 1, all other parts goes to buffer2.