Fanuc OT Macro question
- From: "JBower" <jbower@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 04 Sep 2007 15:48:10 GMT
I have a Miyano LE-22 with a Fanuc O-TC (0662-12) control. I tried writing a
macro for it last night (probably a stupid macro) yet when I went to
download it to the lathe, I got a P/S alarm (I think 87). The program only
loaded my comments, the first block with a # character seems to have
triggered an end of program response. Furthermore, if I try to edit at the
control, the EOB / , # button, will not give me a # character as it cycles
through. I would interpret this as meaning I don't have the Macro option
turned on, on this control. What's weird is I can't figure out how to add
parenthesis when edititng at the control either, but that's a different
discussion.
What I am attempting to do, is have a quick way of shifting the Z zero start
point of all my tools with one one value. I've already set my tools in Z,
but I am machining the same ends on a series of different length blanks, I
have a collet stop set up, so the distance each blank sticks out varies. The
first time through I manually went to the geometry offset page and input
the same W value for each tool in order to move them toward or away from the
collet nose. This can be tedious and a little error prone.
I am coming at the lathe from mill perspective, I use work coordinate shifts
all the time, set my tools off the table, I am used to knowing where my
tools will end up if I specify where G54 is. I am confounded by the lack of
a G54 work coordinate (at least in Z) for the lathe. The Miyano doesn't have
a toolsetter, so it's the old fashioned take a cut, measure the part and
input the value into the control and it does the adjustment.
For what it's worth, here is a a section of my macro program:
%
O8999(TOOL SHIFT MACRO)
(SEND ONE ARGUEMENT A)
(USE FORM: G65 P8999 A1.0)
(FOR 1 INCH SHIFT)
(WHICH IS THE ABSOLUTE DISTANCE)
(FROM Z ZERO POSITION THAT THE)
(TOOLS WERE SET FROM)
(THIS WILL SHIFT THE TOOL)
(GEOMETRY ON ALL TOOLS)
(STORE PREVIOUS SHIFT VALUE IN OFFSET 32)
(ZERO OUT SHIFT VALUE)
#1=#1 - #2832
(SHIFT TOOL 1)
#2801=#2801+#1
(SHIFT TOOL 2)
#2802=#2802+#1
etc, etc
Regards,
John
.
- Follow-Ups:
- Re: Fanuc OT Macro question--thanks for the response
- From: JBower
- Re: Fanuc OT Macro question
- From: brewertr
- Re: Fanuc OT Macro question
- From: plh
- Re: Fanuc OT Macro question--thanks for the response
- Prev by Date: Perhaps a different tact? (Re: Rating AMC Posts/Posters
- Next by Date: Re: Fanuc OT Macro question
- Previous by thread: Re: Why Do So Many Companies Continue To Choose SolidWorks Over UG?
- Next by thread: Re: Fanuc OT Macro question
- Index(es):
Relevant Pages
|