586,457 active members*
3,436 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2004
    Posts
    3

    punch or read with fanuc

    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. #2
    Join Date
    Dec 2003
    Posts
    24223
    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.

  3. #3
    Join Date
    May 2003
    Posts
    75

    punch or read with fanuc

    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. #4
    Join Date
    Jul 2004
    Posts
    3
    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
    %

Similar Threads

  1. Programming PLC on Fanuc 0M
    By MetLHead in forum Fanuc
    Replies: 21
    Last Post: 02-18-2019, 06:36 AM
  2. Fanuc 3M DNC operation
    By max_c in forum Uncategorised MetalWorking Machines
    Replies: 3
    Last Post: 07-05-2010, 01:11 AM
  3. Fanuc motor ???
    By jevs in forum Servo Motors / Drives
    Replies: 3
    Last Post: 03-16-2005, 11:47 PM
  4. Fanuc 21-GA_416 Alarm-Axis Disconnect
    By lasermike in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 03-10-2005, 07:49 AM
  5. FANUC coding compatability??
    By m1911bldr in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 3
    Last Post: 04-24-2004, 11:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •