I was playing a bit with VB editor.
Does someone know if it is possible to reverse the sign of a DRO value?
Like in this code, would be possible to reverse the signs of the variables X,Y and Zdro? I couldn't find the VB code for it.
1st:
'Script to transfer X,Y,Z DRO to the corresponding G52 Px line in the table (each button transfers to different SetUserDRO ( *********x, Xdro) ecc...)
Xdro = GetOEMDRO (800) 'Get X DRO current working offset
Ydro = GetOEMDRO (801) 'Get Y DRO current working offset
Zdro = GetOEMDRO (802) 'Get Z DRO current working offset
SetUserDRO (1100, Xdro)
SetUserDRO (1101, Ydro)
SetUserDRO (1102, Zdro)