Originally Posted by
txcncman
This is why programmers need to learn to write G-code by hand, correctly, BEFORE relying on software to do it incorrectly.
haha, agreed, you pay for a post to be written, you expect it to be correct! We've worked with SolidCAM quite a lot to fix the problems but you can only fix them when you come across them as they don't provide an exemplar suite of routines to check that everything works as it should out the box. Another problem is that I only have to get my hands dirty with NC when things go wrong and since it works most of the time I tend to forget the exact definition of a BNC G98 vs a ISNC G98 etc.
Anyway, we've worked out that the Hurco Basic NC canned cycles can't handle jumping over areas (you need the industry standard for that) or you have to end the cycle, re position and start again. It was all there in the manual pages, but I had some preconceptions that I think clouded my interpretation of it!
We must have just been lucky that this hasn't happened before now as most of our jobs are mould tools so the drilling operations are all done first into virgin stock so the retract height is always the same.
Since we're using a computer generated NC program anyway and some of the 3D moulds have over 1,500,000 lines of code anyway (you can't manually check that many!) I see no reason for us to even use canned cycles. Instead of G98's and G99's with R planes I plan on getting the post modified to put in rapid moves to the heights we want then call our G81 drilling cycle from our safety height (usually +2mm off the job). It also means any simulator will display the correct tool path as G0's and G81's are universal.
Our machinist seems against this approach, but can't give a good reason why! He'd rather we switch to industry standard but we're then essentially starting over again and I don't want to be solving the same NC problems again but this time for ISNC rather then BNC!
Does this seem reasonable? The Canned cycle from before would then become similar to this:
[quote]
Code:
G0 X51. Y0 S1000 M03 <- rapid to position and set up spindle
G0 Z50 <- rapid to tool start position
M8 <- coolant on
G0 Z10. <- rapid to clearance plane Z +10mm
G0 Z-65. <- rapid to safety height (+2mm off the job)
G81 Z5. F90 <- drill operation
G0 Z10 <-rapid to clearance plane
G0 X0. Y51. <- rapid to next hole position
G0 Z-65. <- rapid to safety height (+2mm off the job)
G81 Z5. F90 <- drill operation
G0 Z10 <- rapid to clearance plane
G0 X-51. Y0. <- rapid to next hole position
G0 Z-65. <- rapid to safety height (+2mm off the job)
G81 Z5. F90 <- drill operation
G0 Z10 <- rapid to clearance plane
G0 X0. Y-51. <- rapid to next hole position
G0 Z-65. <- rapid to safety height (+2mm off the job)
G81 Z5. F90 <- drill operation
G0 Z10 <- rapid to clearance plane
M9 <- coolant off
certainly not as efficient as the previous one but from programming the CAM job, its exactly the same, and the physical moves of the machine are then exactly what we want.
Thanks.
David