Cancel
Showing results for 
Search instead for 
Did you mean: 

Workplace and Shiftcalendar

Pioneer
Pioneer

I have experimented that if the shift of a day ends while a worker is working in a workplace, that worker goes inmediatly to the workerpool (as it's logical) but when he exists the workplace he actives the ExitControl of that workplace.

Is there any manner to avoid that call to the exitcontrol when the day ends and the worker exits his workplace?

 

Thank you

2 REPLIES

Re: Workplace and Shiftcalendar

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Santiago94,

You cannot prevent that the exit control is being called.

But you can add the following code to the beginning:

if @.pause or @.unplanned then
    return;
end;

This code  will check if the worker leaves the workplace because a pause starts or the shift ends and then just returns.

 

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Betreff: Workplace and Shiftcalendar

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Santiago94,

 

if there is an exit control at the workplace this control method will be executed every time the worker leaves the workplace.

But in this exit control you can check if the state of the station is 'unplanned'.

local Station := self.~.Station;
if Station.unplanned then
    --nothing to do
else
    -- here enter your normal Exit control code
end

regards

 

 

GG

Regards
GG

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution