utrikesministern
Member
Hi
I have a project were i want to indicate to the plc that someone is logged on to the hmi system. This is done with cicode in the base template. Log in works ok, but log out doesn't.
After logging out the 'HMI_Login' variable in the plc stays '1' and the 'HMI_Login' variable in the hmi flips between '1' and '0'.
IF UserInfo(0) = "1" THEN
PLC1_HMI_Login = true;
PLC2_HMI_LogIn = true;
ELSE
PLC1_HMI_Login = false;
PLC2_HMI_LogIn = false;
END
I suspect the behavior is because i'm not allowed to change the variable after logging out from the hmi.
Anyone got a better solution?
I have a project were i want to indicate to the plc that someone is logged on to the hmi system. This is done with cicode in the base template. Log in works ok, but log out doesn't.
After logging out the 'HMI_Login' variable in the plc stays '1' and the 'HMI_Login' variable in the hmi flips between '1' and '0'.
IF UserInfo(0) = "1" THEN
PLC1_HMI_Login = true;
PLC2_HMI_LogIn = true;
ELSE
PLC1_HMI_Login = false;
PLC2_HMI_LogIn = false;
END
I suspect the behavior is because i'm not allowed to change the variable after logging out from the hmi.
Anyone got a better solution?