![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#2
| ||||
| ||||
| 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
__________________ “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
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 |
|
#4
| |||
| |||
| 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 % |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming PLC on Fanuc 0M | MetLHead | Machine Problems, Solutions , Wireless DNC, serial port | 19 | 06-27-2011 07:47 PM |
| Fanuc 3M DNC operation | max_c | General Metal Working Machines | 3 | 07-04-2010 08:11 PM |
| Fanuc motor ??? | jevs | Servo Motors and Drives | 3 | 03-16-2005 05:47 PM |
| Fanuc 21-GA_416 Alarm-Axis Disconnect | lasermike | Machine Problems, Solutions , Wireless DNC, serial port | 0 | 03-10-2005 01:49 AM |
| FANUC coding compatability?? | m1911bldr | TurboCNC | 3 | 04-24-2004 06:10 PM |