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 > NCPlot G-Code editor / backplotter


NCPlot G-Code editor / backplotter Discuss NCPlot software here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-22-2008, 07:45 AM
 
Join Date: Feb 2007
Location: USA
Posts: 20
GRANDPA is on a distinguished road
IGNORING CERTAIN CODES?

Hi Scott....is there a way to have NC-PLOT ignore certain G or M codes?
I have a siemens 3M control on one of my machines and i can use G64 to
have the machine not decelerate at each programed line (it eliminates dwell marks) and G60 to turn off G64, but NC-PLOT does funny things when it encounters these commands. thanks
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 01-22-2008, 09:31 AM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 724
MetLHead is on a distinguished road

I don't think NCPlot is doing anything with G60 or G64, they should be ignored. What kind of funny things do you see? Can you post an example?

Thanks,
Scott
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 01-26-2008, 02:09 PM
 
Join Date: Feb 2007
Location: USA
Posts: 20
GRANDPA is on a distinguished road

sorry for taking so long....here is one of the short programs i am having problems with.
you will notice it is giving full arcs in the slots and eliminating a line in cutter comp mode.
then on the right side it is also acting funny, doesn't come out as machined. thanks ahead of time for looking.had to change the .nc file to .txt
Attached Files
File Type: txt temp.txt‎ (2.0 KB, 90 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 01-26-2008, 02:51 PM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 724
MetLHead is on a distinguished road

Ok, I've taken a look at your program and it is the G60 commands that are causing the problem. If you remove these commands from your program, it plots fine. I will either have to set up a way for certain G-Codes to be ignored, or just ignore the G60.

Thanks,
Scott
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 01-29-2008, 05:31 PM
 
Join Date: May 2007
Location: US
Posts: 766
Andre' B is on a distinguished road

You could add to the Machine Configuration menu (Default, Haas Mill, Horizontal Mill, etc.) a machine like Simple G-Code that just ignores any unrecognized codes.

I sometimes use your program to check a path for a wire EDM program (Older Mitsubishi machines). EDM programs have some strange codes for power settings and stuff that I have to delete or comment out to get the path to display.

This line for example.
Code:
EHH72FHH73HH74(POWER,SETTINGS)
The EHH72 sets the power level word E, the H is just like # in Fanuc macros.
The FHH73 is the target feed rate.
And the HH74 sets the wire radius compensation, there is no word letter for this just that the variable accessed be in a set range (1 to 30) I think.

And this line.
Code:
G02 X0.0000 Y1.5020 I0.0300 J0.0000 AH75
The A word sets the wire angle to the value in variable 75, the problem here being the H again.

And instead of an O word they use the letter L for the program number.

Overall it is not a big problem. I have learned to do my text copy using the CTRL key to skip the problem lines so I just have to delete the AH75 word on one line.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6  
Old 01-29-2008, 07:29 PM
MetLHead's Avatar
Gold Member
 
Join Date: Mar 2003
Location: USA
Posts: 724
MetLHead is on a distinguished road

Andre,

I think there's actually a simpler solution to cases like this. On the Mitsubishi controls (non-EDM that is, and may also be true for other brands), if an address letter is followed by another without a value in between, it's value is assumed to be zero. For example:

G28XYZ

The Mits controls actually interpret this as G28 X0 Y0 Z0. Having NCPlot do the same thing would cause it to interpret your sample line:

EHH72FHH73HH74(POWER,SETTINGS)

as:

E0 H0 H72 F0 H0 H73 H0 H74(POWER,SETTINGS)

Which, is basically meaningless to NCPlot as there are no G-Codes, but it would not generate an error message.

This would also allow other control specific keywords to be used without errors. I do think that I will eventually want the ability to create control specific configuration files, but I think this would be a good compromise in the meantime.

Thanks,
Scott
Tweet this Post!Share on Facebook
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ignoring Feed Speeds xichanceix DeskCNC Controller Board 1 12-17-2007 09:55 PM
M-codes and G-codes 4 Matsuura ES-1000V maximusek G-Code Programing 2 11-27-2007 07:41 AM
mach-3 ignoring my origin. goes to home instead mxpro32 Mach Mill 1 09-26-2007 01:43 PM
MDI Codes Anyone know about them? manyhobies Coding 5 08-03-2007 04:16 PM
g-codes pimp215 General Metalwork Discussion 11 03-07-2005 02:43 PM




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