Yasnac Turning post and I'm stuck...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, I've hacked up a Fanuc turning post for someone to use on a very old lathe with a Yasnac control (it's got the bubble memory where it reads one line at a time) I feel quite satisfied with how far I got it from where it started. However, there are a couple of things I'm stuck on and I can't quite figure out what it is I need to change
Current code:
% N1 G50 X0 Z0 N2 X0 Z0 T100 (delete this line) N3 T100 N4 M08 N6 G00 S500 M03 N7 G00 X-29250 Z2219 T101 ...(CUTTING DATA REMOVED FOR BREVITY) N20 Z2219 N21 X0 Z0 T200 (this is the wrong T#. It should be T100) N22 M01 N23 T200 N25 G00 S500 M03 N26 G00 X-21620 Z2219 T202 ... N58 Z2219 N59 X0 Z0 T300 (again, wrong T#) N60 M01 N61 T300 N63 G00 S500 M03 N64 G00 X0 Z500 T303 ... N69 Z500 N70 M09 N71 X0 Z0 T300 M05 N72 T800 N73 M02 %
Desired code:
% N1 T100 M08 (notice how the G50 is on the next line, and M08 is on this one) N2 G50 X0 Z0 (no X0 Z0 Txxx call needed right off in the program) N3 G00 S500 M03 N4 G00 X-29250 Z2219 T101 ... N20 Z2219 N21 X0 Z0 T100 N22 M01 N23 T200 M08 (M08 would really be nice to have called out every time) N24 G50 X0 Z0 (this G50 X0 Y0 needs to be after every tool call) N25 G00 S500 M03 N26 G00 X-21620 Z2219 T202 ... N58 Z2219 N59 X0 Z0 T200 N60 M01 N61 T300 M08 N62 G50 X0 Z0 (see the G50 again?) N63 G00 S500 M03 N64 G00 X0 Z500 T303 ... N69 Z500 N70 M09 N71 X0 Z0 T300 M05 N72 T800 N73 M02 %
Basically, at the beginning of every tool, it needs to call up the tool, but no offset. It's offset will be called up on it's first move to the part.
At the end of every tool, there will be a X0 Z0 T100 (or whatever the CURRENT tool is, T200, T300 etc) to cancel the offset and send the tool home.
Also at the beginning of every tool, a G50 X0 Z0 is needed. The machine does not have a G54. Your WCS is established via the G50
Again, this is a hacked up Fanuc post. I'm happy with what else I was able to do to it, but I'm scratching my head on these last few bits. Anyone have any advice to give, or hints about which section of the code I could look to change?
Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.

