Hello @janim
There is no specific manual for the M172P DCL as far as I know. You can reference the legacy Display/HMI manual.
To answer your question you can use this (create as global ex. gbl_TimeOut) script:
//Timeout Script Return to main
if (sysKeyPressed AND 2) = 0 and sysKeyPressed <> 0 then
uiStartTime := sysTimer;
end_if;
if (sysTimer - uiStartTime) > 300000 then
retUINT := Video_SendEvent(kWM_Key, kKEY_VK_F1);
uiStartTime := sysTimer;
end_if;
sysKeyPressed := sysKeyPressed OR 2;
Next you need to set the Project/Properties/GlobalOnTimer to point to the above global script.
You should create a DINT global variables such as uiStartTime
Set an event for kKEY_VK_F1 (open page,etc)
Set the 300000 to your desired timeout (ms).
Regards,
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!