Cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Total Setup times to a variable - Problem With Method

Creator
Creator

Hello,

 

I'm trying to write the setup times from 3 machines to a variable.

First, I defined the method to do it. At the end of simulation, the method Endsim, should sum the setup times from the 3 machines.

 

However, it contains syntax errors. Can someone help me figure out what is wrong?

Method:

 

is
do
totalSetupTime:=machine1.statSetupPortion+
machine2.statSetupPortion+
machine3.statSetupPortion;
end;

 

Attached is the print screen.

 

Thanks in advance.

 

Julianna

 

 

2 REPLIES

Re: Writing Total Setup times to a variable - Problem With Method

Phenom
Phenom

have you tried the simtalk 2 syntax

 

e.g.

 

totalSetupTime:=machine1.statSetupPortion+
machine2.statSetupPortion+
machine3.statSetupPortion

Re: Writing Total Setup times to a variable - Problem With Method

Creator
Creator

It worked. Easier than I tought. Thanks!