Hi all,
I have an x, y, z, p, w, and r offset of 25mm / 20 degrees written to position registers 2-7 (PR[2] = x_offset, PR[3] = y_offset, etc.). I made a write_offset (PR[8]) position register where I would like to combine these offsets and change them as needed but am stuck on the syntax. I successfully changed PR[8] by doing this:
R[1] = (PR[2,1]*5)
PR[8,1] = r[1]
... But I'd like to simplify this into one line, something like:
PR[8] = [(PR[2,1]*5), 0, (PR[4,3]), 0, 0, 0]
... But that doesn't seem to work. I'm guessing it's a syntax error due to my lack of fanuc coding experience. Any help would be greatly appreciated, thanks in advance.