Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST_NAME = "UCCNC Plasma (*.nc)"
- FILE_EXTENSION = "tap"
- UNITS = "MM"
- +------------------------------------------------
- + Line terminating characters
- +------------------------------------------------
- LINE_ENDING = "[13][10]"
- +------------------------------------------------
- + Block numbering
- +------------------------------------------------
- LINE_NUMBER_START = 0
- LINE_NUMBER_INCREMENT = 10
- LINE_NUMBER_MAXIMUM = 999999
- +================================================
- +
- + Formating for variables
- +
- +================================================
- VAR LINE_NUMBER = [N|A|N|1.0]
- VAR SPINDLE_SPEED = [S|A|S|1.0]
- VAR CUT_RATE = [FC|A|F|1.1]
- VAR PLUNGE_RATE = [FP|A|F|1.1]
- VAR X_POSITION = [X|A|X|1.4]
- VAR Y_POSITION = [Y|A|Y|1.4]
- VAR Z_POSITION = [Z|A|Z|1.4]
- VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
- VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
- VAR X_HOME_POSITION = [XH|A|X|1.4]
- VAR Y_HOME_POSITION = [YH|A|Y|1.4]
- VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
- +================================================
- +
- + Block definitions for toolpath output
- +
- +================================================
- +---------------------------------------------------
- + Commands output at the start of the file
- +---------------------------------------------------
- begin HEADER
- "*** Start of Header ***"
- "M65"
- "G90"
- "[91][TP_FILENAME][93]"
- "M62"
- "*** End of Header ***"
- +---------------------------------------------------
- + Commands output for rapid moves
- +---------------------------------------------------
- begin RAPID_MOVE
- "*** Rapid Move Start ***"
- "G0 [X] [Y]"
- "*** Rapid Move End ***"
- +---------------------------------------------------
- + Commands output for the first feed rate move
- +---------------------------------------------------
- begin FIRST_FEED_MOVE
- "G1[X][Y][F]"
- +---------------------------------------------------
- + Commands output for the first clockwise arc move
- +---------------------------------------------------
- begin FIRST_CW_ARC_MOVE
- "G2[X][Y][I][J][F]"
- +---------------------------------------------------
- + Commands output for clockwise arc move
- +---------------------------------------------------
- begin CW_ARC_MOVE
- "G2[X][Y][I][J]"
- +---------------------------------------------------
- + Commands output for the first counterclockwise arc move
- +---------------------------------------------------
- begin FIRST_CCW_ARC_MOVE
- "G3[X][Y][I][J][F]"
- +---------------------------------------------------
- + Commands output for counterclockwise arc move
- +---------------------------------------------------
- begin CCW_ARC_MOVE
- "G3[X][Y][I][J]"
- +---------------------------------------------------
- + Commands output for Plunges Moves
- +---------------------------------------------------
- begin PLUNGE_MOVE
- "*** Plunge Start ***"
- + M31 Floating head macro
- "M31"
- +Set offser from floating head.
- +"G92 Z -1.5"
- "G0 Z 4"
- "M3"
- "G4 P 0.1"
- + Final cut height
- "G0 Z 2.0"
- "*** Plunge End ***"
- +---------------------------------------------------
- + Commands output for feed rate moves
- +---------------------------------------------------
- begin FEED_MOVE
- "*** Feed rate move start ***"
- "G1[X][Y][F]"
- "*** Feed rate move end ***"
- +---------------------------------------------------
- + Commands output for Retract Moves
- +---------------------------------------------------
- begin RETRACT_MOVE
- "*** Retract start ***"
- "M5"
- "G0 Z10"
- "*** Retract end ***"
- +---------------------------------------------------
- + Commands output at the end of the file
- +---------------------------------------------------
- begin FOOTER
- "G0 Z 30"
- "G0 [XH][YH]"
- "M30"
- %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement