Can i access or put offset value in sunumeric 840's individual axis that is X, y , z offset from g54...g599 to any variable like R2...
I am making a macro there i am stuck...
Can i access or put offset value in sunumeric 840's individual axis that is X, y , z offset from g54...g599 to any variable like R2...
I am making a macro there i am stuck...
$P_UIFR[5]=CTRANS(X,-36.4, Y,225.25, Z,140.1, B,0);G505
This will write the value X-36.4 Y225.25 Z140.1 B0 to work offset register
G505
Original setting
$P_UIFR[6] =CTRANS(X,0,Y,495.3,Z,0,B,0) ; G506
After probing
R92 = 2.5
R93 = 0.5
R94 = (495.3+R93)
R95 = -0.5
Original setting can be changed thus
$P_UIFR[6] =CTRANS(X,R92,Y,R94,Z,R95,B,0)
Or to put the adjusted values in the FINE offset & leave
your Original setting intact, this way you can see the adjustment
$P_UIFR[6,X,FI] = R92
$P_UIFR[6,Y,FI] = R94
$P_UIFR[6,Z,FI] = R95
Tom
Thankyou TOM and mtak it was help full to me, and i have completed my macro for machine, now operators dont have to edit program, i am using empty offset to put variables, so that operator run same program that take variable from empty areas... Like mine Trans_6 etc...