Gunna
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by Gunna
-
-
On 10/28/2022 at 11:25 AM, Colin Gilchrist said:
Attach a copy of your Post to this thread so someone can take a look. This is probably 5-10 minutes of work for me, and would be a good example for others, so I'd be happy to do it and share the results.
Only for Canned Cycles? Always "W" motion for the cutting, with a Z pre-position?
Easy to add a Z Position output before the Canned Cycle call. I would do that in 'ptlchg$' and 'psof$', by reading the value of a Miscellaneous Real Number, which would allow you to plug in a number in the Misc. Values, to trigger the output in the NC Code. (mr4$, or any of the other unused misc reals...)
For the Canned Cycle itself, you should use the 'nwadrs' function to "rename the prefix string" from Z to W, inside the canned cycle. (Then, in the Canned Cycle Cancel Post Block, use 'nwadrs' again to switch output back to Z.)
'pretract' and 'peof$' are where the retract cycles occur, so that would be easy to edit. Do you always want "Z0. W0." on every G91 G28 line, or only when a Canned Cycle was used? If always, that is super easy. If "only on the canned cycle", still easy, but would require setting a "flag variable" in the Canned Cycle Common block, to trigger the "W0." output on the retract/home line.
Hello @Colin Gilchrist
I would be great to have when not in a canned cycle for it to output a W on a separate line for positioning but only canned cycles would be a major improvement. I say a previous post where you were speaking about this but I was struggling to get it done.
Yes, always "W" motion for cutting and Z pre-position for canned cycles.
Having "Z0. W0." on ever G91 G28 line is perfect yes.
Attached is the post as-well, any help is appreciated.
-
I have seen several posts about this topic but I haven't had any luck.
The goal is to adjust our current post (Generic Fanuc 3 axis post) to be able to allow for a W axis when using canned cycles but output a Z location on the line before (can be manually adjusted at machine) and a W0. move on the homing line.
I have minimal experience modifying posts but I've been successful each time I have dug into it in the past.
Currently our code for a simple canned cycle looks like this..
T1 M6 G0 G90 G54 X0. Y0. S1200 M3 G43 H1 Z1. M8 G98 G81 Z-.1 R.1 F4. G80 M9 M5 G91 G28 Z0. G28 X0. Y0. M30
I'd like for find a way for the output code to look like this..
T1 M6 G0 G90 G54 X0. Y0. S1200 M3 Z-20.0 G43 H1 W1. M8 G98 G81 W-.1 R.1 F4. G80 M9 M5 G91 G28 Z0. W0. G28 X0. Y0. M30
Any insight on accomplishing this?
Using W axis for canned cycles on HBM - Post mod?
in Industrial Forum
Posted
@Colin Gilchrist Thank you! That is a major help and a great starting point.