K
i have created one function in cicode that check time hour to change shift value. my code is like that<pre>
function Shift_check()
current_hour = Timehour(timecurrent());
if current_hour = 15 then
shift = 2
end
end</pre>
current_hour and shift are variable tags defined in disk I/O and i am calling this function every hour for which event is created in citect project editor.
the problem with this function is that when no user is logged in this function do not run but it is working fine when privilege level 3 and above user is logged in.
please help what may be the solution of this problem.
function Shift_check()
current_hour = Timehour(timecurrent());
if current_hour = 15 then
shift = 2
end
end</pre>
current_hour and shift are variable tags defined in disk I/O and i am calling this function every hour for which event is created in citect project editor.
the problem with this function is that when no user is logged in this function do not run but it is working fine when privilege level 3 and above user is logged in.
please help what may be the solution of this problem.