Hello,
I have a queue that flows to a seperator which seperates the flow item to 3 processors. I want the seperator to only pull flow items if all of the downstream processors are free, i.e. Idle.
I don't see any errors, but am unclear on how the pullrequirement activates. This code is on the "pullrequirement" node of the variables node of the separator object.
Is it correct to equate the getstatenum to STATE_IDLE? I've tried setting this line to getnodenum and referring to the node value in idle state which is 1.00, but this didn't work.
if(getstatenum(node("MT Repair 1",model())) == STATE_IDLE && getstatenum(node("ET Repair 1",model())) == STATE_IDLE && getnodenum(node("QC Check 1",model())) == STATE_IDLE)
{
return 1;
}
Thanks in advance for your help!! VERSION 6