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-10-2008, 07:15 AM
 
Join Date: Dec 2004
Location: U.K.
Posts: 143
TURNER is on a distinguished road
G84 PROBLEM

Hi Scott,
We have been having some funny results when plotting G84 tap cycle. I think the problem is when G84 is issued without an 'R' value. Does NCPlot store system variables after closing application? , It seems if you don't pass an 'R' value, it remembers what it was last time you did.See below i modified G840.prg to try and correct problem.

(G840.PRG)
#32=#5023 #33=#4203

IF [#18 NE #0] THEN G90 G0 Z#5102........was G90 G0 Z#5102
G1 Z#5101 F#9

IF [#4210 EQ 99] THEN G0 Z#5102
IF [#4210 EQ 98] THEN G0 Z#32
G#33
M99

(G84 - Forward Tap Cycle)
(G84 X_ Y_ Z_ R_ F_)

(X #24 X hole location)
(Y #25 Y hole location)
(Z #26 Finish depth)
(R #18 Rapid plane)
(F #9 Feedrate)

Cheers Turner.
Tweet this Post!Share on Facebook
Reply With Quote

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

Hi Turner,

By default NCPlot does store all variables on exit. However, you can turn this off on the Preferences dialog. Just uncheck the setting that says "Save Variables On Exit". This also disables re-loading of the variables on the next startup.

Can you explain in a little more detail what it is you're seeing? Do you only see the problem after first starting up NCPlot, or is it in any G84 block that doesn't include an "R" value? How does your control handle it?

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

  #3   Ban this user!
Old 01-18-2008, 07:19 AM
 
Join Date: Dec 2004
Location: U.K.
Posts: 143
TURNER is on a distinguished road

Hi again scott,
sorry for the wait been really busy.

Here is a snippet of program run on a haas
------------------------------
T1 M06
G43 H1 M08

G00 X20. Y0. S500 M03
G00 Z55.
G84 Z50.0F500
X40.
G80
G00 Z150. M1
------------------------------

this sample program when plotted on haas config
moves to X20. Y0. Z55.
then moves to X20. Y0. Z0.
then cuts to X20. Y0. Z50.
on the haas machine the control moves to X20. Y0. Z55
then cuts to Z50.

it seems to alway plot to Z0 first maybe i have'nt spotted the problem until
we did this job that was cutting in Z+

Thanks Turner
Tweet this Post!Share on Facebook
Reply With Quote

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

Turner,

I think I understand what's going on, but if it's not too much trouble I'd like you to run a quick test for me:

-----------------------
T1 M06
G43 H1 M08

G00 X20. Y0. S500 M03
G00 Z60.
G84 Z50.0 F500
X40. R55.
X60.
G80
G00 Z150. M1
-----------------------

I'd like you to run this program for me twice. Each time make a note of the sequence of motion for each of the three holes.

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

  #5   Ban this user!
Old 01-22-2008, 05:26 AM
 
Join Date: Dec 2004
Location: U.K.
Posts: 143
TURNER is on a distinguished road

Hi Scott,
I have tried your test prog and i got the same results on both runs. The preferences save variables on exit is switched off
did you want this on for this test?

these are the resulting plot moves

G00 X20.Y0.Z60.
G00 Z0.
G01 Z50.
G00 Z60.
G00 X40.Y0.Z60.
G00 Z55.
G01 Z50.
G00 Z60.
G00 X60.Y0.Z60.
G00 Z55.
G01 Z50.
G00 Z60.
G00 Z150.



While im here i have another question regarding scripting. Is there a way to return the full path of the currently opened
file?. I have written a script that generates operator toolsheets using regular expressions on the nc file and then
saves the file as .txt. The script needs the file name though to determine component type so toolsheet is made up
with correct tooling. I got it working by using sendkeys closing ncplot reading registry value for recent file and reopening
ncplot, loading file from registry value previously stored. Works fine but a long way round, and also unforgiving if anything
is touched while sendkeys
is running.
Thanks again
Turner
Tweet this Post!Share on Facebook
Reply With Quote

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

Turner,

I can add a scripting function that will return the loaded file/path, that's no problem.

As for the test program, I should have been more specific. What I really wanted to know was how the Haas handles the test program I posted. I am going to run it on a Mitsubishi control and compare the two. Then I'll be able to see how it should be handled in NCPlot.

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

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

Turner,

I ran the test program on a Mits control and here's what I get.

The first cycle, without the "R" value begins feeding from the current Z position, which is the endpoint of the initial rapid move. After reaching the final depth, Z retracts to the start position (Initial point return is active).

The second cycle with the "R" value rapids to the R plane and then feeds to depth. After reaching the final depth, Z retracts to the start position. Any further cycles without the "R" act the same way.

If I restart the program, the exact same scenario happens again.

I'm pretty certain that your HAAS will do the same thing, I would just like to confirm it before I make any changes to NCPlot.

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
machine problem or software problem? bcnc Syil Products 8 10-26-2009 10:51 AM




All times are GMT -5. The time now is 02:58 AM.





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