Shoestring Machining
Plastic
- Joined
- Mar 20, 2023
Trying to figure out what code would enable incremental C axis motion on a Fanuc 32i-Model B controlled lathe. The sub-spindle rotary axis and the code I use to move it is "A" and the main spindle uses "C" for it's rotary axis.
Example code below activates, homes, and moves the rotary axis to zero on the main spindle, then goes back into turning mode for the main spindle:
M76(MAIN SPINDLE MILLING MODE)
G0G28H0
G0G54C0
...
M75(MAIN SPINDLE TURNING MODE)
This code activates, homes, and moves the rotary axis to zero on the sub spindle, then goes back into turning mode for the sub spindle:
M71(SUB SPINDLE MILLING MODE)
G0G28A0
G0G55A0
...
M70(MAIN SPINDLE TURNING MODE)
Using an "H" address when M71 is active results in a "P0224 ZERO RETURN NOT FINISHED" alarm.
I would like the incremental commands in order to simplify hand-programming, which is how I program almost everything on my lathe (not happy with available post processors for Fusion, and I haven't got around to customizing my own yet). Another benefit to using incremental commands is to allow me to turn the rotary axis more than 180° with a single line of code. For example, when at C0 on the main spindle, G1C360. doesn't result in any movement, but G1H360. results in one full rotation of the rotary axis.
Thanks for any input you might have!
Example code below activates, homes, and moves the rotary axis to zero on the main spindle, then goes back into turning mode for the main spindle:
M76(MAIN SPINDLE MILLING MODE)
G0G28H0
G0G54C0
...
M75(MAIN SPINDLE TURNING MODE)
This code activates, homes, and moves the rotary axis to zero on the sub spindle, then goes back into turning mode for the sub spindle:
M71(SUB SPINDLE MILLING MODE)
G0G28A0
G0G55A0
...
M70(MAIN SPINDLE TURNING MODE)
Using an "H" address when M71 is active results in a "P0224 ZERO RETURN NOT FINISHED" alarm.
I would like the incremental commands in order to simplify hand-programming, which is how I program almost everything on my lathe (not happy with available post processors for Fusion, and I haven't got around to customizing my own yet). Another benefit to using incremental commands is to allow me to turn the rotary axis more than 180° with a single line of code. For example, when at C0 on the main spindle, G1C360. doesn't result in any movement, but G1H360. results in one full rotation of the rotary axis.
Thanks for any input you might have!