Showing results for 
Search instead for 
Do you mean 
Reply

[offtopic] Macro Programs > Siemens 840d controller

[ Edited ]

Can anyone here tell me how to input a value into the "C"  fixture offset register on an 840d from inside the program? I"m probing 2 spots on the part, finding an angle and I need to adjust the C and then reprobe the center of the part.

 

NX11.0.1
2 REPLIES

Re: [offtopic] Macro Programs > Siemens 840d controller

[ Edited ]

Hello, Dstryr.

 

If I correctly understand your question you need to overwrite C-axis register in Sinumerik array of offsets called $P_UIFR.

 

For example, for G54:

 

$P_UIFR[1]=CTRANS(X,<x_offset>,Y,<y_offset>,Z,<z_offset>,A,<a_offset>,C,<c_offset>)

or just $P_UIFR[1]=CTRANS(C,<c_offset>).

 

For current offset number you need:

 

R199=$P_UIFRNUM

$P_UIFR[R199]=CTRANS(C,<c_offset>).

 

Regards, 

undrakot.

 

 

Re: [offtopic] Macro Programs > Siemens 840d controller

You the man. Thank you.
NX11.0.1

Learn online





Solution Information