%
O0001
G0 X0 Z0 Y0
G65 H01 P#1 Q0
N20 G65 H02 P#1 Q#1 R1
G65 H83 P#1 Q5 P21
G0 X100
G65 H80 P20
N21 G0 Z100
M30
%
Hi
I'm looking for some guidance on how to use macro's on a fanuc 0mate M control attatched to a Bridgeport Interact 720X machine
The problem seems to be that I cannot enter the code in the correct format I used on the Fanuc 21i
for example
%
:0001
G0X0Y0Z0
#1=0
N20#1=#1+1
IF[#1GT5]GOTO21
G0X100
GOTO20
N21G0Z100
M30
%
This works fine on the 21i but any help would be appreciated
Dave
%
O0001
G0 X0 Z0 Y0
G65 H01 P#1 Q0
N20 G65 H02 P#1 Q#1 R1
G65 H83 P#1 Q5 P21
G0 X100
G65 H80 P20
N21 G0 Z100
M30
%
I haved your same problem 6 month later....
i have 5 vmc ,
2 old 0M with A macro type ,
the other 0im,18m etc with B macro type (like your 21i)..
Now they work only with B macro type.
i solve the problem callling fanuc...... your old fanuc 0m can go with
type B macro ,you need only a very small very cheap Review(macro A in B is a fanuc optional).......
In this mode you can have total compatibilty and intercambiabilty of your Nc
program ,but with the Review you must rewrite your old A type macro on the bridgport ,in B type(tool change macro etc...)
Ciao
(sorry for my bed english)
Thanks for the detailed reply
however
when I run the example given above it repeats continuously, I've checked that I've input it correctly, any ideas
Updating the software sounds like a safe idea
Dave
Try using #100 or #520 to see if you get the same problem. Not all variables are active and usable without changing a parameter to allow it.
I have tried that with #100, what actually happens is if I run it as is with the H83 (greater than)it doesn't repeat any of the macro, it reads it and adds 1 to the macro number in the macro page but doesn't actually execute it
It positions at x0y0z0
then adds 1 to the macro number
rapids back to z100
If I change it to H84 (less than) it repeats forever in that
it positions at x0y0z0
it executes the macro adding 1 to the macro number each time until the m/c runs out of travel.
Looking at the cycle it looks fine, it is exactly as written above bar the #1 being changed to #100
Stuck now
TIA
Dave