CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-09-2009, 09:26 AM
 
Join Date: Jan 2008
Location: us
Posts: 75
pofo is on a distinguished road
What is a Postprocessor

Good Day,

I'm interested in DesignCAD/Contour CAM as it is hobbyist-priced. But it does not have a post-processor for Millpwr.

What is a post processor and how hard is it to write one? What is it written in? Does it clean up the G code, modify it, add to it?

Also, I noticed that this package doesn't have much activity on this forum. Any comments on why?
Reply With Quote

  #2   Ban this user!
Old 12-09-2009, 12:36 PM
 
Join Date: Apr 2006
Location: USA
Posts: 28
Bugsy36 is on a distinguished road

Does the CAM program have a demo? If so, you may want to look to see if they have a generic "G-Code" post. Not saying that Millpwr will run on it but it may.
Reply With Quote

  #3   Ban this user!
Old 12-10-2009, 05:12 AM
 
Join Date: Jun 2003
Location: Australia
Posts: 431
Splint is on a distinguished road

A post processor is a program used to modify generic g-code such that it can be used on a particular cnc machine. The modifications to the code are generally fairly minimal and can be done manually by the operator if required. I've never had to write one so I can't comment on that, best you track down someone who has written one for the software you're looking at and see what they have to say, or contact the software seller or manufacturer.
Reply With Quote

  #4   Ban this user!
Old 12-10-2009, 05:18 PM
 
Join Date: Dec 2008
Location: usa
Posts: 1,858
BurrMan is on a distinguished road

I'll take a stab at simplifying an explanation. Anyone else chiming in would be great.

So you have XYZ moves in a coordinate system. These may look like this:

X-6.032136Y1.41912Z0.835333
X-5.907102Y1.41912Z0.822
X-5.782069Y1.41912Z0.803333
X-5.657035Y1.41912Z0.776
X-5.532001Y1.41912Z0.751333


These moves have to be defined as a certain "type" of move. So a human readable version may look like this:

[setup]
[home]
X-6.032136Y1.41912Z0.835333
[rapid]
X-5.907102Y1.41912Z0.822
[feed]
X-5.782069Y1.41912Z0.803333
[start]
X-5.657035Y1.41912Z0.776
X-5.532001Y1.41912Z0.751333
[end]

very simplified.

All the controlers use different "commands" to represent the human readable.


So one controller may use G00/G01 ro represent a command for a move, another may require a different command.

So you could have this for a single line profile:

N04 T01 M06
N05 G90 G54 X.1027 Y.232 S1252 M03
N06 G43 H01 Z.1 M08
N07 G01 Z-.5 F5.0115
N08 X1.7002 F9.7724
N09 G00 Z.1
N10 M09
N11 M05
N12 G91 G28 Z0.
N13 G91 G28 Y0.
N14 T01 M06
N15 M02

Notice the commands mixed in to the coordinate values. THe same operation with a different post process could be:


N02 M00
N03 G00 X0.1027 Y0.232
N04 Z0.1
N05 G01 Z-0.5 F5.0115
N06 X1.7002 F9.7724
N07 G00 Z0.1
N08 M02

Just different commands created for the same thing. Formated in a different way. Some controllers wont like to see the line numbers. N04. Your post would need to not put these in in that case.

To write your own, you will need to have software that allows you to configue it (or they provide one for your contollers needs). Some are just text files. You will need to know the syntax that the post uses to set the commands for various moves and operations, and you will need to know what your controller is expecting/needs to see for these settings.

The post processor is a "configuration engine" that inserts/formats the gcode "post (after) generation of toolpath" to suit the needs of the controller.

Does that make sense?
Reply With Quote

  #5   Ban this user!
Old 12-10-2009, 08:38 PM
 
Join Date: Jan 2008
Location: us
Posts: 75
pofo is on a distinguished road

Very good. Yes, that makes it clear.

Thank you.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-11-2009, 07:43 AM
 
Join Date: Aug 2007
Location: USA
Posts: 339
Boots is on a distinguished road

Posts are generally written in C++ Language but can also be written in C. using cammands and satements to generate the G Code. such as "GO TO" "IF THEN" "END IF" and many many others. You would need to understand the Control for the Machine and write the Post accordingly for that machine.

Below is a small snipit of the post I use to show you the basic format of one.

$------------------------- PROGRAM LEADING/TRAILING LINES -------------------
$10 File LEADING lines
$LET DATE = DAT
''
$IF DEBUG = 1
-> $10
$ENDIF
''
%
''
$12 Main Program LEADING lines
$LET COUNT = 1
$LL1
$IF COUNT <= NMT
(OP [(COUNT)] TOOL [T(COUNT)], [TNM(COUNT)] [TNT(COUNT)])
$LET COUNT = COUNT + 1
$GOTO 1
$ENDIF
''
$IF DEBUG = 1
-> $12
$ENDIF
''
(NC CODE FILE - [FNM][FNE])
(CREATED - [DATE])
$IF SOLIDCAM = 0
(POST-PROCESSED FOR FLEXICAM BY ALPHACAM)
(PROGRAMMED BY - [MY_NAME])
([DESCRIPTION])
$ELSE
(POST-PROCESSED FOR FLEXICAM BY INTELLI-CAM)
(PROGRAMMED BY - [MYNAME])
([DESCRIPTION])
$ENDIF
''
$IF [NSH] >= 1
(SHEET NUMBER [SHN] OF [NSH])
$ENDIF
''
$IF METRIC = 0
''(PANEL LENGTH - X: [PANEL_X])
''(PANEL HEIGHT - Y: [PANEL_Y])
''(PANEL DEPTH - Z: [PANEL_Z])
G70 G90 G40
$ELSE
''(PANEL LENGTH - X: [PANEL_XM])
''(PANEL HEIGHT - Y: [PANEL_YM])
''(PANEL DEPTH - Z: [PANEL_ZM])
G71 G90 G40
$ENDIF
''
$15 Main Program TRAILING lines
''
$IF DEBUG = 1
-> $15
$ENDIF
''
G0 X[SHX] Y[SHY]
''
$IF [NSH] > 1
$GOTO 10
$ELSE
$GOTO 99
$ENDIF
''
$LL 10
$IF [SHN] < [NSH]
M00
(LOAD NEXT SHEET)

$ENDIF
''
$LL 99
''
$17 File TRAILING Lines
''
$IF DEBUG = 1
-> $17
$ENDIF
''
M30
%
''
$----------------------- RAPID MOVES ----------------------------------------
$20 Rapid Move IN XY (MILL/ROUTER/FLAME/LASER) or XZ (LATHE) only
''
$IF DEBUG = 1
-> $20
$ENDIF
''
$IF OPT = 2 '' Drilling?
$GOTO 99
$ENDIF
''
$IF [GAX] < 0
$MSG
All toolpaths MUST be IN the FIRST Quadrant!

Modify your operations and Re-Post.
$EXIT
$ELSEIF [GAY] < 0
$MSG
All toolpaths MUST be IN the FIRST Quadrant!

Modify your operations and Re-Post.
$EXIT
$ENDIF
''
$IF FIRST_RAPID = 0
G0 X[GAX] Y[GAY]
$ELSE
G0 X[GAX] Y[GAY] Z[-GAZ]
$ENDIF
''
$LL99
$LET FIRST_RAPID = 0
$LET AFTER_DRILL = 0
''
$----------------------------------------------------------------------------
$21 3D Rapid Move IN XYZ (MILL/ROUTER ONLY)
''
$IF DEBUG = 1
-> $21
$ENDIF
''
$IF [GAX] < 0
$MSG
All toolpaths MUST be IN the FIRST Quadrant!

Modify your operations and Re-Post.
$EXIT
$ELSEIF [GAY] < 0
$MSG
All toolpaths MUST be IN the FIRST Quadrant!

Modify your operations and Re-Post.
$EXIT
$ENDIF
''
G0 X[GAX] Y[GAY] Z[-GAZ]
$LET FIRST_RAPID = 0
$LET AFTER_DRILL = 0
''
$----------------------------------------------------------------------------
$25 Rapid Move IN Z only (MILL etc)
''
$IF DEBUG = 1
-> $25
$ENDIF
''
$IF FIRST_RAPID = 1
$GOTO 99
$ENDIF
$IF AFTER_DRILL = 1
$GOTO 99
$ENDIF
G0 Z[-GAZ]
''
$LL99
$LET AFTER_DRILL = 0
''
__________________
We all live in Tents! Some live in content others live in discontent.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie- Postprocessor? RP Designs LinuxCNC (formerly EMC2) 4 09-11-2009 04:00 PM
Need Help!- postprocessor jrcalleja PTC Pro/Manufacture 2 09-17-2008 08:14 AM
ISO Postprocessor scholtus CamBam 1 09-01-2008 04:07 AM
Need Help!- Postprocessor scholtus HURCO 0 07-01-2008 01:28 PM




All times are GMT -5. The time now is 06:20 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361