Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80821members
346893posts

TM172DCL full manual

janim
Janeway Janeway
Janeway
0 Likes
8
1082

TM172DCL full manual

Where I can found full manual to program TM172DCL?

 

I need ST code to track it if display is unused some period and then open main page/close all page.

 

 



If it ain't broke, don't fix it.
Tags (1)
8 Replies 8
Rodrigo_Garcia
Administrator Administrator
Administrator
0
1066

Re: TM172DCL full manual

Hello @JJSANMA1 Could you please support?

Rodrigo G. 


Industrial Automation Community manager

Tags (1)
DZ_Japan
Cadet
Cadet
0 Likes
6
1039

Re: TM172DCL full manual

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,

 

 

Tags (1)
otrotabi
Lieutenant JG
Lieutenant JG
0 Likes
5
331

Re: TM172DCL full manual

Thanks for sharing the script, it works great. I could not find information regarding "syskeypressed".  Could you please tell me where to find it ?

Other than this, and just as an advice, I was thinking that while these secondary pages are open it would be a nice gesture for the operator to keep the light on (sysBackLight =1 seems to work). Any reason why I should not do it that you are aware of ?

 

Regards

Bastian_Schmitz
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
4
326

Re: TM172DCL full manual

syskeypressed is a target variabel on TM17**D or TM171DGRP or TM172DGRP which shows the status of the onboard keyboard. TM172DCL has no keyboard. Regarding to this the variabel is not available.

zz_syskey.PNG

But you could look at the variabel "sysLCD_Pressure" in Programming tab or Target Vars/Display.

zz_syslcdpress.PNG

This variabel is a strucutre which shows the coordinates of the last press and release.

zz_syspress2.PNG

You could use sysBacklight = 1 constantly. But in that case you will reduce normaly the lifetime of the backlight of the HMI. 

This point is not espacially descripted but it is in my opinion the normaly technical behaivor.

Tags (1)
otrotabi
Lieutenant JG
Lieutenant JG
0 Likes
3
320

Re: TM172DCL full manual

Hello Bastian and thanks for your feedback. 

 

I did not notice the post title actually so I´m sure you got confused about my question. My question is actually not related to a TM172DCL.

 

I implemented the script given on the original answer by DZ_JAPAN on a TM172PDG18R HMI and it works. This HMI has this variable "syskeypressed" available which has format dw (double word)  but I could not figure out how to check it´s format, I mean, what bits of the word change when I press one specific key, and how would I know which key is touched programatically.

 

Actually my ultimate goal is to develop a script to be able to increase or decrease an integer by pressing the up key or down key. This is the standard behaviour for "controllers" and I wanted to mimic it instead of entering the different digits one by one which could be rather cumbersome sometimes.

 

Thinking a little bit further I guess I could write a global action related to "right key" and "left key" to do this.... Not something that I really need to do it but I think this could be easier for changing values on the HMI.

 

Regards

 

 

 

 

 

Tags (1)
Bastian_Schmitz
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
2
315

Re: TM172DCL full manual

Hi,

You could see the meaning of the system variabel here in a picture of an old training sheet.

 

zz_syskey5.PNG

 

But in you case you could use directly an action on a button tocall a local procedur to increase or decrease a value.

 

zz_syskey6.PNG

 

best regards

 

Tags (3)
otrotabi
Lieutenant JG
Lieutenant JG
0 Likes
0
312

Re: TM172DCL full manual

Great info. 

 

Thanks. Have a nice 2022.

Tags (1)
santapong
Cadet
0 Likes
0
300

Re: TM172DCL full manual

thanks

 

Tags (1)