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! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-17-2010, 11:22 PM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road
simple G code translation please!

Hi Folks,
When running certain bigger files, I keep getting 'postion errors' in our router. (servo controlled). Often it grinds to a halt in the same place, leading me to think it's possibly a toolpath error, from the software. (Enroute 3.4).

I tried downloading a couple of free backplotting programs to see if I could view the paths in them, as opposed to viewing them in Enroute prior to export, and I have not been able to get the backplot programs to work.

I wondered if the syntax from our machine or from Er may have been the issue, so I wondered if I could have a bit of advice on a brief translation, in case maybe I just need to edit a line or two at the start to make them compatible, or something like that.

This File was OK, no issues, but it contains parts I'd appreciate an explanation of, if possible.

I assume the IN at the start means the start of the program/file? but the PA at the end of that line I don't know. (Pen Activate?)
PU I guess means Pen Up (?) and I'm guessing it's moving to an origin, then I am wondering what the exclamation mark (!) and PZ0 (that's a zero after the Z) is.
I guess PD is Pen Down (?)
The !VZ1.0 I don't know, unless it's the velocity/speed of the Z axis in mm/sec
and the VS5.0 I can't figure, but many plots begin with those same figures-perhaps the X & Y axis speed?

The AA is what?
The exclamation mark is what?

Here's the start of the PLT file (in HPGL I think):
IN;SP2,19200;PA;
PU6347,12768;
!PZ0,500;
PD6347,12768;
!VZ1.0;
VS5.0;
ZM6347,12768,273;
ZM6348,12783,273;
ZM6345,12862,276;
ZM6333,13016,285;
ZM6303,13480,316;
ZM6281,13932,349;
ZM6265,14387,387;

then there are a heaps more ZM coordinates, then this with the AA in it

ZM5272,9830,567;
ZM5360,9752,600;
AA5542,10776,36.29;
ZM6058,9964,555;
ZM6106,10082,516; and lots more ZM coordinates, with an AA one like above every so often, then a few of these patterns:

ZM6347,12768,273;
PU6347,12768;
PU10369,15722;
!PZ0,500;
PD10369,15722;
!VZ1.0;
VS5.0;

ZM10369,15722,0;
ZM10419,15722,27; and more ZM figures for several pages, eventually finishing with this:

ZM15341,15592,152;
ZM15618,15552,0;
PU15618,15552;
PU18000,13042;
!PZ0,500;
PD18000,13042;
!VZ1.0;
VS5.0;
ZM18000,13042,600;
ZM18222,11790,644;
ZM18318,11721,600;
ZM18222,11790,644;
ZM18155,11707,600;
ZM18222,11790,644;
ZM18000,13042,600;
PU18000,13042;
.
.I am also wondering if there's a free (or otherwise inexpensive) downloadable program that would successfully read these Plt files as is, (without me having to firstly edit the text) to give me a screen view of the toolpaths for me to quickly verify the path issues that bring the router to a halt every so often?.
Or do I need to just say remove the lines with exclamation marks or something like that?

Any hints would really be appreciated, thanks!
Reply With Quote

  #2   Ban this user!
Old 10-17-2010, 11:25 PM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road

P.S. None of the files we generate have sequential 'line numbers' to them, and the spindle speed etc is controlled manually by me when I start it. (Maybe that's the set figure at the top the IN SP2 19200, being 19200 rpm of Spindle#2 perhaps?)

The plot (PLT) file is just the X,Y & Z movements of the spindle.

Still don't know what the AA bits mean, or how I can make it all recognisable by another backplotting program.

Last edited by Stewey; 10-18-2010 at 01:19 AM.
Reply With Quote

  #3   Ban this user!
Old 10-18-2010, 03:55 AM
 
Join Date: Dec 2004
Location: U.K.
Posts: 143
TURNER is on a distinguished road

Hi,
Sorry i cant really help you as i know nothing about this code, But out of interest i googled hpgl as i havent heard of it before. This link was at the top of the list, 'AA' is an arc, hope this may help you. Take a look it explains the code in full HPGL - Wikipedia, the free encyclopedia
Have fun
Keith.
Reply With Quote

  #4   Ban this user!
Old 10-18-2010, 04:52 AM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road

Thanks for that!
Reply With Quote

  #5   Ban this user!
Old 10-18-2010, 08:30 AM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road

- G in HPGL means 'graphics'.

Can anyone recommend an HPGL backplotting program to view the HPGL plot files in perspective?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-18-2010, 11:14 PM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road

There 'must' be some program that can view the supposedly HPGL toolpaths created above in a 3d perspective...

For the benefit of anyone reading this in the future, these are the answers I found:

I checked the wiki link and it explains all the syntax except the exclamation marks, and the ZM. I'm guessing the ! is specific to the interpreter on our machine, perhaps, and not a normal hpgl command, and the ZM means move in three axes, rather than a 2D move in just X,Y...?

SP means 'select pen' in our case 'pen 2' is the router spindle, and pen 1 is set up as a plotter blade holder with different location & offsets from the router collet.

PA means Plot Absolute, i.e. move to the exact coordinates following, rather than relative coordinates.
PU/PD pen up & pen down, & a move to the next x,y coordinates- Z isn;t a part of that.
AA is absolute angle move, of an X,Y centred circle, with the third figure being the anticlockwise angle in degrees.
VZ & VS are the move speeds of ther Z & the x,y servos, but the ! in front of VZ I am still unclear about.
Reply With Quote

  #7   Ban this user!
Old 10-18-2010, 11:34 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

You might check here:

Hpgl viewer Free Download
Reply With Quote

  #8   Ban this user!
Old 10-19-2010, 04:04 AM
 
Join Date: Jan 2007
Location: Australia
Posts: 154
Stewey is on a distinguished road

Thanks for that.

I downloaded a trial, & it did show something, but the swirls resembles spaghetti, not what we plot!

I ended up uninstalling ER & reinstalling it & rerunning the toolpath program & the paths it created actually ran this time, without any glitches on the router, so there must have been a bug in the software, the result of a crash or three from insufficient RAM, I guess.

Hopefully I now don't need to check up on the paths, but it would have been nice to find a program that could have shown me them.
Reply With Quote

Reply

Tags
back plot, hpgl, tool paths




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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know a simple g code generator? Ryan Higdon General CNC (Mill and Lathe) Control Software (NC) 5 03-16-2009 06:19 PM
Need help with simple G code Step by Step Coding 2 10-24-2008 08:49 PM
Simple G-Code program? N4NV G-Code Programing 10 03-24-2006 06:35 PM
Simple G-code commands... WilliamD G-Code Programing 5 01-12-2006 12:27 PM
Perhaps a bug in simple one line code?? thuffner3 TurboCNC 3 02-02-2004 08:21 PM




All times are GMT -5. The time now is 07:49 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