There are downloaded custom hmi screens (.stm files) on the control panel.
How to call the .stm file from the KL (TP) program.
Thank you in advance.
call .stm from .kl
-
zubareandrej -
August 11, 2017 at 12:52 PM -
Thread is marked as Resolved.
-
-
Hi,
you can use Karel program for it. Here is example of such a program, to "f_name" variable you must assign path to your stm file. Then you can use standard CALL Routine and call this program. TomasPROGRAM BRWSR
%NOLOCKGROUPVAR
f_name: STRING[20]BEGIN
f_name='/fr/HmiScreen.stm'
FORCE_LINK(TP_PANEL,f_name)
END BRWSR -
How to call the .pc file from the .stm (hmi screens)? Which element ActiveX should I use?
Thank you in advance. -
maybe there is some other way (I'm not skilled in HMIs), but I would use Macro. I would make a TP program (macro) to call your *.pc code, in a same way as previous HMI situation, then in macro screen I would link this TP program with some IO (so triggering this IO will run you TP program). And then in HMI you could use standard button, which will activate appropriate IO.
But as I said, maybe there is some easier wayTomas
-