Hello,
It been a while since I programed in KRL, and going through the docs available for me didn't help.
I have a program that iterates through a list of positions in a linear fashion. I want to save the positions and the exact time (Date +Time)when robot reach one of them in a .txt or .dat file, that I can fetch later on my USB key.
The pseudo-code would look like this:
Code
START
LIN P1
SavePositionAndTime(File txtFile, P1 E6POS)
LIN P2
SavePositionAndTime(File txtFile, P2 E6POS)
...
etc
END
Where SavePositionAndTime() function would look like this:
Code
START
IF txtFile EXISTS THEN
APPEND ("TimeStamp" +":" + "P1")
ELSE
Create txtFile AND SAVE ("TimeStamp" +":" + "P1")
END
Any help or suggestion is appreciated.
The setup is:
KSS 8.x
KRC4 controller
KR 1000 Robot