How do you write values to position registers for all axes in the same line? instead of six lines one for each axis.
Write values To Position Reg
-
Ereghi -
May 13, 2016 at 2:44 PM -
Thread is marked as Resolved.
-
-
PR[5] = LPOS.
-
I want a set value for z axis at 50.0mm and all others to 0.0 from 1 line
-
Not really a clean way to do what you are asking, but here is hacky way of doing it.
-
Not really a clean way to do what you are asking, but here is hacky way of doing it.
That works orPR[5]=PR[10:z+50]
and make PR[10:z+50] to X = 0.000 mm, Y = 0.000 mm, Z = 50.000 mm,
W = 0.000 deg, P = 0.000 deg, R = 0.000 deg -
You could create a macro doing it in six lines and then call the macro passing the values through AR reg's. You could take it further and pass the pr reg number also. If you plan on doing this multiple times it might be a benefit. Cut an paste works too.
Call Macro (0,0,0,0,0,50)
Macro
PR[1,1]=AR1
PR[1,2]=AR2
PR[1,3]=AR3
PR[1,4]=AR4
PR[1,5]=AR5
PR[1,6]=AR6 -
Thank you for the information