My search skills may be limited but I didn't see this but i believe it would have been discussed before if you can point me to the thread.
Ultimately, I am trying to drive a robot from a .csv file to points from that .csv file.
I move to an x,y and move about 4 or 5 z moves for that same x,y, so
(x1,y1,z1)
(x1,y1,z2)
(x1,y1,z3)
(x1,y1,z4)
(x1,y1,z5)
then I move and repeat
(x2,y2,z1)
(x2,y2,z2)
(x2,y2,z3)
(x2,y2,z4)
(x2,y2,z5)
there are about 30 x,y positions
My first question is how can I insert the Z to make them a variable so I can update all my z movements?
The X and Y will be pulled from a .csv file
(1.000,2.000)
(3.000,1.000)
(2.000,2.000)
(4.000,1.000)
(5.000,2.000)
I exported the .ls file and see that the points are defined at the bottom of the text file.
[1]{
GP1:
UF : 2, UT : 2, CONFIG : 'N U T, 0, 0, 0',
X = 3.075 mm, Y = -13.610 mm, Z = 58.056 mm,
W = -90.107 deg, P = -.530 deg, R = -179.055 deg
};
P[2]{
GP1:
UF : 2, UT : 2, CONFIG : 'N U T, 0, 0, 0',
X = 3.141 mm, Y = -13.164 mm, Z = 20.335 mm,
W = -90.127 deg, P = -.516 deg, R = -179.027 deg
Is there a way to have this Z a variable?
for the second part of getting the x,y from the .csv into the program, do you have any suggestions.
I was going to try python and let chat gpt help me make a program.
Any advice on this is greatly appreciated.