Originally Posted by
cncwhiz
I have been going back and forth with a few guys on another topic on four axis programming. They were talking about using a macro to calculate the position of part position. Now they did it, they made me think:idea: I am working on a post for a machine we have here in our shop. This controller is a "FAPT" control and will not allow "G54.1". I need to program my angle holes on the parts from the centerline "X, Z". I need to use "G10's" to do this. I need to shift my "G54, G55" back and forth to get this done as that the remaining work on the parts are done on the face of the part. I was working on my post to use a "G10" shift line to go from the centerline to the face of the part. The problem with this is everytime the shift takes place the is a "G10" line. When they need to adjust the work offsets, they need to change all of them. If they forget then they can scrap parts. I want to build a macro to control this. The first macro will be controlled by the system variable for "G54, G55 Z". The other macro will just be the distance from the spindle face to the center line of the "B axis" Does anyone have either the macro to do this or a list of system variables so I can build these macros? I have built some simple macros for the machines allready so I have a general understanding of what I need to do.
TIA
TIA