Hi there,
Maybe some of you already did it. I would like to get my Kuka to send an email to a specific address when a program is started, when it is finished, possibly every 25% of completion of the program and whenever there is a stop for some mistake within the code. I did some research on this but I could not find any litterature about any of this goals. When I process very long milling files would be good to have this updates system. Do you have any suggestion?
Best,
Marco
Programming KRC to send program state message via email
-
Marco -
August 6, 2016 at 3:44 PM -
Thread is marked as Resolved.
-
-
i can think of many ways to do this but ... what is your system? what KSS? any tech packages?
-
I have krc2 ed05 with system version 5.6.11, no tech packages. I could implement it using an Arduino board with an Internet shield, but of course I would prefer to use the KRC hardware directly.
-
it is easy to write email client in many languages (C#, VN.NET, AutoIT) but getting such application aware of what goes on inside KRL is another story. of course one can use EthernetKRL for example or OPC etc. for most people low cost solution would be more interesting even if it means some sacrifices. on KRC2 one could use RS232 and CWRITE. on KRC4 one could use CWRITE and file access.
-
Got it, I guess that a little interface developed through Arduino (even if it is not a solid industrial solution) is going to be the most suitable option considering my knowledge then. I was looking at the system variable book to find out if there is a variable that tells the total length of the program (total number of lines) and current line while the program is running but I could not find it. Having access to the number of line showed in the KCP at the bottom of the display when the program is running would be perfect. Do you know how to get this numbe out?
-
i am unaware of exact thing you are asking for since line numbers displayed on HMI screen are .... messed up. they are ok as relative reference, since line number values change depending on if folds are open or not etc.
the best thing i can think of is $PRO_IP variable. or more precisely: $PRO_IP.SNR_C
-
forgot to mention, that is going to show you line number precisely - IF you activate all editor options (display DEF, open all folds, display ASCII view). in a programs like your there are hardly any inline forms so even without activating all editor options you will still be quite close....
-
Ok, I found the description of these variables in the manual, I will explore how to use them. Because to calculate the % of program executed I just need to read automatically the total number of lines (blocks) and the number of the current block being executed, from there through Arduino I can do all other steps I need. Thanks!