Edit 03/03/2015 updated attachment see latest post for changes.
I've fixed a lot of errors in the Anilam post.
List of changes.
IJK needed to be output as XCenter, YCenter and ZCenter.
Added helical moves all planes.
Added spiral work around to reduce code size.
Work offset 0 recalls the machine home, change so only 1 to 9 are output. If 0 offset is used in the setup in HSM no offset is output so whatever offset the machine is set to wiil be used.
No modal output for planes or moves. Added 2 new functions "writePlaneBlock()" & "writeMoveBlock()" to replace G-code with the correct Anilam words.
Fixed drill cycles. XY coordinate are not on the same line as cycle set up, moved to next line. No dwell in drill cycles changed to use boring cycle. Fixed chip breaking and deep drilling to correct format.
Set start and return to same height and ZDepth to cycle.bottom
Added quillDRO to properties if you have 3 axis and a coupled DRO on quill set to true and program will pause so you can retract quill before move to Z home.
Changed M code output so it outputs "Mcode"
Commented out RPM output as it's set in the tool table on the machine. When I have time I'll put a setting in properties to make easier changes.
Changes in post are commented with "HT" and date.
I've tested what I can, if you spot any problems let me know.
Mark
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
