I want to punch and read with a program some variable or macro on a
fanuc control 16t.
With an okuma lathe example of program:
N4
PUT '2'
N10 WRITE 0
READ 0
Wats the code or etc. for a fanuc??
tank you
I want to punch and read with a program some variable or macro on a
fanuc control 16t.
With an okuma lathe example of program:
N4
PUT '2'
N10 WRITE 0
READ 0
Wats the code or etc. for a fanuc??
tank you
I am not sure of the question, do you want to know how to use macro programming on a Fanuc or download a program?
Al
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Unfortunately, Fanuc does not offer the same capabilities that you are used to with Okuma. You do not have the ability to send or read macro variables from within a program on a Fanuc control. This can only be done when the machine is in the "EDIT" mode, and then, ALL of the variables need to be sent or read.
May I ask exactly what it is that you are trying to achieve?
Hope this helps.
Paul Sevin - Ovation Engineering, Inc.
http://www.ovationengineering.com
thanks psevin, at my work, we have a robotic cell with 2 okuma lathe an
valenite gaging system. The gaging system ajust the offset on the machine if
is necessary when the part example if to small. The program on the okuma
send some information on the rs232 port to the gage and the gage reply.
the gage send some information too.
I know that it's possible to make the same thing with a kitako and fanuc control but i dont know how. We make a new cell with a fanuc control and when i will know
how to do it, i will let you know.
sorry for my english, I hope you will understand!
okuma program example
OFSTA
N1
IF[ VIRD[025B] EQ 0] GOTO N2
GOTO N1
N2
PUT '1'
GOTO N10
OFSTB
N3
IF[ VIRD[025B] EQ 0] GOTO N4
GOTO N3
N4
PUT '2'
N10 WRITE 0
READ 0
N20 GET TOOL,2
IF [TOOL EQ 0]GOTO N100
GET,1
GET AXIS,1
GET,1
GET TGRP,1
GET,1
GET COMP,5
GET,1
IF[COMP GE 50]GOTO N20
IF[COMP LE -50]GOTO N20
COMP=COMP*.0001
IF [AXIS EQ 2] GOT N30
VTOFX[TOOL] = VTOFX[TOOL] +COMP
GOTO N20
N30 VTOFZ[TOOL]=VTOFZ[TOOL] +COMP
GOTO N20
N100 RTS
%