Fanuc OT Macro question



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


.



Relevant Pages

  • Re: Fanuc OT Macro question
    ... I have a Miyano LE-22 with a Fanuc O-TC control. ... macro for it last night yet when I went to ... I am coming at the lathe from mill perspective, I use work coordinate shifts ... O8999(TOOL SHIFT MACRO) ...
    (alt.machines.cnc)
  • Re: Copying cell values once and then making them static
    ... another option would be to make a macro something like ... unfortunately it has to include shift so that you can't just replace Control V ... >> trade the two buttons as needed. ...
    (microsoft.public.excel.worksheet.functions)
  • renee.rtf.xac
    ... During recognition macro arguments must match the format of the ...
    (comp.lang.tcl)
  • RE: Form calculation based on the date - How to????
    ... Access can't find the macro 'txtTotalDollarAmount_Bound = ... "Could it be that the control source for the form's field is now no longer ... txtTotalDollarAmount or txtTotalDollarAmount_Bound ... ... date field and then run the correct macro calculation based on that date. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Cant run macro containing for each
    ... first control in the document but I do as I click away from the others. ... Dim objCCs As ContentControls ... Private Sub Document_ContentControlOnEnter ... I went to the macros button and selected the only macro showing there ...
    (microsoft.public.word.vba.general)