Hey, I have 2 questions:
1)I'm interested - Is there any possibillity to move files using KRL? I know how to write to txt and xml or how to create txt or xnl with Krl but what about other files? If, for example, I want to move log.dat from D:\ to C:\?
2) Does anyone know, is there is any posibillity to call for built-in functions, like tool calibration, not via graphic interface but using KRL? I know that every button connected to the function, that it calls , but that information hided. It's kinda annoying that If you want to create a base_data or tool_data by yourself you should write whole programm, when Kuka already using that mechanism and we just can call for functions.
Moving files with KRL and built-in functions
-
Acapulka -
June 26, 2017 at 8:01 AM -
Thread is Resolved
-
-
1: Not directly. It is possible to open files, read/write them, rename them, and delete them, so it should be possible to to "copy" or "move" a file from one location to another using roundabout means. But even then, most of the C drive is deliberately protected from the KRL file commands.
2: the math involved here is very non-trivial -- on the surface, it looks like a simple least-squares-fit, but making it work properly with "noisy" data and still give a decent result rather than a divide-by-zero error is not simple. A lot of the basic underlying math (VERY basic) is available in the KUKA_WEG module, which you may still find buried somewhere in the KRC, or can find copies on here on the forum.
-
2: yeah I have worked on this for a while; and it is hard. some of the driver files on the controller declare public methods that you can use....and it works quite well. I think these are there so app developers who write plugins for the pendant can use them. Or maybe app developers like myself, show write software to interface with tools that can't be easily taught....like profile scanners...
-
math was discussed before
calculate TCP using four points (calculate center of sphere from 4 points)
https://www.robot-forum.com/robotforum/kuk…98699/#msg98699
calculate base using 3points
https://www.robot-forum.com/robotforum/kuk…94103/#msg94103