plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LinuxCNC - Code XYZ Artcam post processor

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> CNC & Robotics-Reg. U
View previous topic :: View next topic  
Author Message
ratko
Member 3
Member 3


Joined: 20 Jul 2012
Posts: 524

PostPosted: 12/01/2014 18:35    Post subject: LinuxCNC - Code XYZ Artcam post processor Reply with quote

LinuxCNC - Code XYZ Artcam post processor
Code:
;
; LinuxCNC - Code XYZ Artcam post processor
;
DESCRIPTION = "LinuxCNC - 3-Axis test (mm) (*.ngc)"
FILE_EXTENSION = "ngc"
UNITS = MM
;
; Line numbering
FORMAT = [N|@|N|1.0]
LINE_NUM_START   = 0
LINE_NUM_INCREMENT = 10
LINE_NUM_MAXIMUM   = 999999
;
;Standard line ending in Linux:
;END_OF_LINE = "[10]"
;Standard line ending in Windows(Default):
END_OF_LINE = "[13][10]"
;
;
;  ######## Set up default formating for variables ########
;
;
; Current tool number
FORMAT = [T|@||1.0]
; Old tool number
FORMAT = [TP|@||1.0]
; Spindle Speed
FORMAT = [S|@|S|1.0]
; XYZR co-ord of tool position in default units (R Angle in degrees for rotary axis)
FORMAT = [X|@|X|+1.4]
FORMAT = [Y|@|Y|+1.4]
FORMAT = [Z|@|Z|+1.4]
FORMAT = [R|@|R|+1.4]
; Coordinated helical motion ("Arc feed")
FORMAT = [I|@|I|+1.4]
FORMAT = [J|@|J|+1.4]
; Feed Rate (F) in default units/mm
FORMAT =  [F|@|F|1.1]
; Rapid feed rate (FR) in default units/mm
FORMAT = [FR|@|F|1.1]
; Plunge feed rate (FP) in default units/mm
FORMAT = [FP|@|F|1.1]
; Standard feedrate (FC) in default units/mm
FORMAT = [FC|@|F|1.1]
; Safe Z position from toolpath
FORMAT = [SZ|@|Z|+1.4]
; Home tool positions XYZR co-ord (R Angle in degrees for rotary axis).
FORMAT = [XH|@|X|+1.4]
FORMAT = [YH|@|Y|+1.4]
FORMAT = [ZH|@|Z|+1.4]
FORMAT = [RH|@|R|+1.4]
; Minimum coordinate value of relief
FORMAT = [XMIN|@|X|+1.4]
FORMAT = [YMIN|@|Y|+1.4]
FORMAT = [ZMIN|@|Z|+1.4]
; Maximum coordinate value of relief
FORMAT = [XMAX|@|X|+1.4]
FORMAT = [YMAX|@|Y|+1.4]
FORMAT = [ZMAX|@|Z|+1.4]
;
;
;  ######## Program moves ########
;
;
RAPID_FEED_RATE         =  2800
FIRST_RAPID_RATE_MOVE  = "[F|#] [S|#] G00 [SZ] G00 [X] [Y] G01 [Z] (FRRM)"
RAPID_RATE_MOVE         = "[F|#] [S|#] G00 [SZ] G00 [X] [Y] G01 [Z]"
;
FIRST_FEED_RATE_MOVE   = "[F|#] [S|#] G01 [X|#] [Y|#] [Z|#] (FFRM)"
FEED_RATE_MOVE           = "[F|#] [S|#] G01 [X|#] [Y|#] [Z|#]"
;FEED_RATE_CHANGE          = "[F|#] [S|#]"
;
;
;
; Coordinated helical motion ("Arc feed")
FIRST_CW_ARC_MOVE         = "[F|#] [S|#] G02 [X] [Y] [I] [J] (F_CW)"
CW_ARC_MOVE                     = "[F|#] [S|#] G02 [X] [Y] [I] [J]"
;
FIRST_CCW_ARC_MOVE       = "[F|#] [S|#] G03 [X] [Y] [I] [J] (F_CCW)"
CCW_ARC_MOVE               = "[F|#] [S|#] G03 [X] [Y] [I] [J]"
;
;   ????????
; Retract move(It is a challenge of the drilling cycle?)
; RETRACT_MOVE = " ( RETRACT MOVE )"
;   ????????
;
;  ######## END Program moves ########
;
;
START = " "
START = " "
START = " ( S=[S]         )"
START = " ( F=[F] FC=[FC] FP=[FP] FR=[FR]       )"
START = " ( SZ=[SZ]                                                )"
START = " ( XH=[XH] XMIN=[XMIN] XMAX=[XMAX]  )"
START = " ( YH=[YH] YMIN=[YMIN]  YMAX=[YMAX]  )"
START = " ( ZH=[ZH] ZMIN=[ZMIN] ZMAX=[ZMAX]  )"
START = " ( RH=[RH] RMIN=RMIN RMAX=RMAX  )"
;
;
START = " "
START = " "
START = " (######## Set up program header ########)"
START = " "
START = " "
START = "G90 ( set to absolute coordinates )"
START = "G21 ( set to metric mode_mm )"
START = "G17 ( specify XY plane for circular interpolation )"
;
START = " "
START = " "
START = " (Copy of sections TOOLCHANGE)"
; Disabling coolant etc.
START = "M9"
;Disabling spindle
START = "M05"
; Give him time to stop
START = "G04P15"
; Reset tool
START = "G40"
START = "G49"
; Going into position for tool change
START = "[FR]"
START = "G53 G00 Z100"
START = "G53 G00 X350 Y150"
; Tool selection
START = "T[T] M06"
; Specifying settings tool (should be)
START = "G40"
START = "G49"
; Going to work
START = "[FR]"
START = "G53 G0 Z100"
START = "G00 [XH] [YH]"
START = "(MSG set offset and cancel pause)"
START = "M1"
START = "G53 G0 Z100"
START = "G00 [XH] [YH]"
START = "G00 [SZ]"
; Enabling Basic cooling
START = "M8"
; Inclusion of additional cooling
;START = "M7"
;
START = "M03 [FP] [S]"
;Pause for 15 seconds., Spindle had to be dispersed
START = "G04P15"
;
START = " (End sections of copies TOOLCHANGE)"
;
START = " "
START = " "
START = " (######## END Set up program header ########)"
START = " "
START = " "
;
;
;
TOOLCHANGE = " "
TOOLCHANGE = " "
TOOLCHANGE = " (########  Toolchange ########)"
TOOLCHANGE = " "
TOOLCHANGE = " "
;Withdraw the tool to a safe altitude, speed, [FP] or [FC], which is not to spoil.
TOOLCHANGE = "[FC] G00 [SZ]"
; Disabling the primary and secondary cooling
TOOLCHANGE = "M9"
; disabling spindle
TOOLCHANGE = "M05"
; Pause for 15 seconds., Spindle had to stay
TOOLCHANGE = "G04P15"
; Reset tool
TOOLCHANGE = "G40"
TOOLCHANGE = "G49"
; Going into position for manual tool change at the maximum height Z CARS, which is not to spoil.
TOOLCHANGE = "[FR]"
TOOLCHANGE = "G53 G0 100"
TOOLCHANGE = "G53 G0 X350 Y150"
; change of tool
TOOLCHANGE = "T[T] M06"
; Going to measure parameters of compensation tool at maximum height Z CARS, which is not to spoil.
TOOLCHANGE = "[FR]"
TOOLCHANGE = "G53 G0 100"
TOOLCHANGE = "G00 [XH] [YH]"
; Specifying settings for the tool length offset and diameter.
; For now, just disable to understand how to do it all manually set during pause.
TOOLCHANGE = "G40"
TOOLCHANGE = "G49"
TOOLCHANGE = "(MSG set offset and cancel pause)"
TOOLCHANGE = "M1"
; Going into the workspace on the maximum height Z CARS, which is not to spoil.
TOOLCHANGE = "[FR]"
TOOLCHANGE = "G53 G0 100"
TOOLCHANGE = "G00 [XH] [YH]"
TOOLCHANGE = "G00 [SZ]"
; Enabling Basic cooling
TOOLCHANGE = "M8"
; Enabling eXtra cooling
;TOOLCHANGE = "M7"
; Enable spindle supply unit to supply gauge (precaution) and installation of spindle speed
TOOLCHANGE = "M03 [S] [FP]"
; Pause for 15 seconds., Spindle had to be dispersed
TOOLCHANGE = "G04P15"
;
TOOLCHANGE = " "
TOOLCHANGE = " "
TOOLCHANGE = " (######## END  Toolchange ########)"
TOOLCHANGE = " "
TOOLCHANGE = " "
;
;
;
END = "  "
END = " "
END = " (######## End of file ########)"
END = " "
END = " "
; the tool is
END = "G00 [SZ]"
; Reset tool
END = "G40"
END = "G49"
; Disabling tool cooling.
END = "M9"
;disabling spindle
END = "M05"
; Give him time to stop
END = "G04P15"
; Going into position for manual tool change
END = "G53 G00 100"
END = "G53 G00 X350 Y150"
; Return the tool shop
; (S=[S],I wonder what value S now, if 0, it can call a subroutine TOOLCHANGE?)
END = "T0 M06"
;parking portal
END = "G53 G00 Z100"
END = "G53 G00 X350 Y400"
; The remaining steps before disconnecting the machine
; Deactivate the machine
END = "M30"
END = " "
END = " "
END = " (######## End of file ########)"
END = " "
END = " "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> CNC & Robotics-Reg. U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro