I'm in the situation where I have a process, where there are manufactured 3 products; A, B and C.
Process times (sec) are as so far:
A = 30
B = 34
C = 38
Furthermore, during the manufacturing process, we have quality checks and clean-up of the manufacturing equipment, which is conducted every 8th product. It adds 4 seconds to each product process time.
The default code within Flexsim are as follows and I simply want to combine them into one code:
Code for Values By Case
Object current = ownerobject(c);
Object item = param(1);
/***popup:ValuesByCaseLabel:valuestr=Time:doreturn=1*/
/**Values By Case*/
Variant value = /** \nCase Function: *//***tag:ValueFunc*//**/item.Type/**/;
/** \nCases:\n*/
double retValue = /**\nDefault Port:*//***tag:default*//**/30/**/;
/***tagex:data*/
if (value == /**\nCase: *//**/1/**/){ retValue = /** Time: *//**/34/**/;}
if (value == /**\nCase: *//**/2/**/){ retValue = /** Time: *//**/38/**/;}/***//**/ /**/
return retValue/**/;
Code for Different Time for Nth Item
Object current = ownerobject(c);
Object item = param(1);
/***popup:NthItem*/
/**Different Time for Nth Item*/
int cnt = /**\nN: *//***tag:count*//**/8/**/;
if (fmod(getinput(current),cnt) == 0)
return /**\nTime for Nth item: *//***tag:time_nth*//**/34/**/;
else return /**\nTime for all others: *//***tag:time_others*//**/30/**/;
Can anyone assist or propose a solution to this problem