Hi Sim Superusers,
I have a unique situation where I need to check if an incoming part is the first part of first shift on an entrance control. Challenge is, we do not know when the first part arrives. it may arrive 7 am, or 9 am, or 10.15 am. But no matter when it arrives, I need to check if that is the first part of first shift.
Share your thoughts and Thank you!!
Solved! Go to Solution.
Hello Karthik Murugan,
how about using an unplanned control with a shiftcalendar and setting a variable there?
Then check the variable in your entrance control.
The shiftcalendar have a control "Unplanned". I believe it is actived both when a shift ends and when a shift starts.
In the control, set a global boolean variable FirstProductInShift := true
In the entrance control:
if FirstProductInShift = true --do the special code FirstProductInShift := false end
This way the code should only be run for the special first product of each shift.
Do you mean where you define the control?
In that case, open the shiftcalendar. Press F12. This should open a panel where you define controls for objects. In the section called "Unplanned", set the path to your method.
Or did you mean something else?