I might be able to help with this. Can you paste a bit of your G-code? I'd like to see its formatting.
Has anyone done any code for estimating cycle time from a G-Code program ? I presume it will be reading every line of code, measuring the travel length and dividing that by commanded feedrate and adding it all together.
Though the logic seems simple, it is pretty complex when it comes to measuring G02 / G03 moves. Just wondering whether someone out here has already done this stuff and the code can be utilized
Similar Threads:
I might be able to help with this. Can you paste a bit of your G-code? I'd like to see its formatting.
Hi yaji63, here 2 g-codes.
Mach3 have that feature, i'm not sure how exact it is.
Well, I've been writing a really basic standalone G-Code simulator using OpenGL in VB.NET, and I could pretty easily work some sort of run-time estimator into it and send it to you. Thing is, I was really only going to handle a few different G-codes in my simulator (for now), since my job mostly only really uses G00 thru G03 for movement and then of course setting the machine variables (G90/G91 and whatnot). If you sent me all the different commands you typically use, I can maybe whip something up.
My purpose for this simulator was mostly just for testing of some G-code GENERATING apps I've been writing: small, standalone VB.NET applications which can be run from our Windows-based CNC controller out in the shop by any shop worker. They punch in some dimensions for some standard types of components we make, and out pops their G-Code. I wanted to test this generated code without having to take it to my machine every time, so I just started on a real basic sim (it's really rough still, but it worked for the testing I had to do). I've attached some screencaps: one shows one of my g-code generators (this one for a 3-piece rolled steel elbow) and the other is my simulator after simulating.
I haven't used a FANUC machine for the better part of a decade, so maybe send me a link to a list of accurate FANUC G-codes with their descriptions and tell me which codes you want to be able to estimate, or type a list out yourself, or however you want to do it.