Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 09:58:00 PM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  KUKA Robots (Moderators: Werner Hampel, kai_n, MartinH)
| | |-+  REading a txt file from with a .src program
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: REading a txt file from with a .src program  (Read 377 times)
pliedas
Newbie
*
Offline Offline

Posts: 5


« on: August 07, 2008, 09:53:14 PM »

Is it possible to read a .txt ASCII file from within a Kuka program? I am interested in reading a .txt which contains some numbers and this file is sent over to the robot controller from a external PC thru FTP.


Logged
mookie
Full Member
***
Offline Offline

Posts: 111


« Reply #1 on: August 08, 2008, 03:06:05 PM »

I dont believe that you have file functions within the KRL language. this could be done but i dont believe theres a simple answer to what your looking for. can you provide an example?
Logged
pliedas
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: August 08, 2008, 07:12:12 PM »

Here is the sample - a .txt file containing the following ASCCII text :

Points: 18
PinRadius: 9.525
SecondPinRadius: 9.525
AvrgErr: 2
MaxErr: 5

I would like to read the integers and real values.

Thanks
Logged
mookie
Full Member
***
Offline Offline

Posts: 111


« Reply #3 on: August 08, 2008, 08:33:47 PM »

im not familar enough to tell you but id like to think that ethernet XML could do the job.
Logged
KukaBurra
Newbie
*
Offline Offline

Gender: Male
Posts: 5



« Reply #4 on: September 30, 2008, 03:00:34 AM »

Hi there.
One option you may want to consider is saving the file as a *.dat. Depending on  your software version you could create the varialble as a global real. Using Kuka dat loader you could automatically send the dat file over ethernet.
Or as one of the other post recommended ethernetKRL-XML may be worth a look
Logged

~~~~~~~~~~~~~~~~
         <>{
____________________
mookie
Full Member
***
Offline Offline

Posts: 111


« Reply #5 on: September 30, 2008, 03:59:29 AM »

yeah but the problem with that is that when the program is loaded and linked for execution, the variables are loaded (read copied) into memory. you can change the dat file all you really want and resave but the values are different in memory.


I could be wrong but in my experience, this is what ive found

Logged
KukaBurra
Newbie
*
Offline Offline

Gender: Male
Posts: 5



« Reply #6 on: September 30, 2008, 06:24:28 AM »

Using KRDirLoader stops the file being linked and overites the dat file aslong as it has the same name.
You can even configure it to automatically start the src program.
Logged

~~~~~~~~~~~~~~~~
         <>{
____________________
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!