g-codeguy
05-08-2008, 10:00 AM
I use a G65 macro call to set DOC, feedrates, etc. for my G71 canned rough turn cycle. The sub also sets the starting S-value. We purchased two T42 lathes at the same time. One with 16C collet, the other with 20C collet. The latter alarms unless I put a value in the starting S-code. Both have 18T controls. I think a FIX statement could be written to force the S-value to be a whole number...but why should I have to?
All the other Hardinge and Daewoo lathes will process this without an error. This includes the 21i and OT controlled machines. I talked to Hardinge Brothers, but they didn't know what parameter might be causing it. Haven't as yet contacted Fanuc to see if they could solve the problem. Figured I'd tap the extensive knowledge on this forum first.
My code looks like this: S[3.82*#119/#115] where #119=SFM & #115=stock size.
I got tired of writing 4 or 5 programs for the same job...on the same machine...because of using different stock sizes. I originally changed my rough turn operation to a G71 canned cycle to make my life easier.
However, I've been teaching myself variable programming the past year. Finally got to the point where I realized I could write a 'While' statement that would do it for me. I loaded it in the contols as a subprogram and use the G65 call to set all my variables. Works like a champ. :D
Well except for this one lathe. :(
BTW, I find Hardinge Brothers to be top notch with their support. They are always willing to try and help regardless of the type of problem I am having. Not that we have a lot of problems with Hardinge lathes. This is the first time I've called them in at least a couple years.
All the other Hardinge and Daewoo lathes will process this without an error. This includes the 21i and OT controlled machines. I talked to Hardinge Brothers, but they didn't know what parameter might be causing it. Haven't as yet contacted Fanuc to see if they could solve the problem. Figured I'd tap the extensive knowledge on this forum first.
My code looks like this: S[3.82*#119/#115] where #119=SFM & #115=stock size.
I got tired of writing 4 or 5 programs for the same job...on the same machine...because of using different stock sizes. I originally changed my rough turn operation to a G71 canned cycle to make my life easier.
However, I've been teaching myself variable programming the past year. Finally got to the point where I realized I could write a 'While' statement that would do it for me. I loaded it in the contols as a subprogram and use the G65 call to set all my variables. Works like a champ. :D
Well except for this one lathe. :(
BTW, I find Hardinge Brothers to be top notch with their support. They are always willing to try and help regardless of the type of problem I am having. Not that we have a lot of problems with Hardinge lathes. This is the first time I've called them in at least a couple years.