Hi, I am preparing HMI with sharepoint designer for CR35, I would like to push let say STATUS button on TP and by this start web pages. When TP is OFF, I am using macro for UK5=STATUS button to open pages(by KAREL macro), HMI is started, but problem is when TP is off, no macro is called... I tried to use system condition monitoring for TPIN status button, but than I had troubles with starting other programs. Is it possible to achieve it?
Starting *.stm pages on TP button
-
raskape -
April 12, 2019 at 10:55 PM -
Thread is marked as Resolved.
-
-
Try setting $MACRTPDSBEX to TRUE. When set to TRUE you can run any UK macro with the Teach Pendant key in 'off' position.
-
Thanks, I changed $MACRTPDSBEX to True, restart, but the result is the same, when TP is OFF and I push STATUS button, no result, just error message switch TP to ON..., any idea?
-
Odd, I could have sworn that would work (I feel like it used to back in the V7.X days), but I just tried to do what you are doing in V8.30, and it complains about the TP being on like you said.
Unfortunately, I don't really have a solution for you.
-
Hello, there is one solution:
Make a KAREL program that does that:Code
Display MoreROGRAM RUNUI %NOABORT = COMMAND %NOPAUSE = COMMAND+ERROR+TPENABLE %NOLOCKGROUP %NOBUSYLAMP %INCLUDE KLEVCCDF BEGIN REPEAT DELAY(200) -- it's made on I + DISP key IF ((TPIN[12288]=ON) AND (TPIN[240]=ON)) THEN FORCE_LINK(TP_PANEL,'/FR/index.stm') ENDIF UNTIL (something - it can be a key combination to stop the program) END RUNUI
Then check out this thread:
https://www.robot-forum.com/robotforum/fan…ram-at-startup/
Use Shell to start it. This program will always run in background.