I have to apply an offset equal to the thickness of a sheet for a destacker, and I'm a bit confused on how the offset affects the data.
I did a bit of research and found that offsets are made like this:
But I'm not sure if that will change the data of P1 (modify the Z value) or just make the movement with that offset and nothing else.
If that will change the data of P1, I will have to use a copy of P1 and add the offset every time the robot picks a sheet, but I'm not 100% sure on how to do that. My try would be this:
;INI to start from the origen
P1_OFFS = P1
;Every time a sheet is picked
PTP {X 0, Y 0, Z OFFSET, A 0, B 0, C 0}:P1_OFFS
;OFFSET WILL BE LIKE 1.2mm
If the data is not modified, I will just substract 1.2mm to that offset variable and it will go 1.2mm lower each time.
If the data is modified, I will modify the copy that will "restart" when a new stack is placed.
I can't test it, I don't have the robot and I have to send the changes on the code so they can test it, so I want to be as sure as possible in everything that I can.
Thanks for reading.