586,076 active members*
3,831 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > external devices connected to a CNC machine
Results 1 to 20 of 20
  1. #1
    Join Date
    Feb 2006
    Posts
    1792

    external devices connected to a CNC machine

    Kindly bear with me as I am trying to learn interfacing of CNC machines with external devices. I am not even sure if I am asking sensible questions:

    What external devices can be connected to a CNC machine?

    Are the PMC signals (the so-called, interface signals) passed on to some external relay through an external PLC, or the PMC can directly drive the relay?

    Similarly, how are input signals sent to the PMC?

    Is the hardware connection through the RS-232C port of the CNC?

    Any other relevant information?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2005
    Posts
    12177
    This link will give you information about connecting Haas rotary tables to other machines.

    http://www.haascnc.com/customer_serv...ry/96-0315.pdf
    An open mind is a virtue...so long as all the common sense has not leaked out.

  3. #3
    Join Date
    Feb 2006
    Posts
    1792
    Thanks.
    But the link does not connect.

  4. #4
    Join Date
    Dec 2003
    Posts
    24221
    I assume you are talking Fanuc?
    The communication between the CNC and PMC (PLC) is over an inernal bus called the BMI, Basic Machine Interface.
    G registers are used to pass info from PMC to CNC such as operator panel commands, and F Registers are used to pass info from CNC to PMC such as M,S,T codes etc.
    The PMC operates like any typical PLC as to programming and I/O.
    The results of the PLC logic can be monitored in the on screen Ladder display.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  5. #5
    Join Date
    Mar 2003
    Posts
    2932
    It worked for me. It's a big pdf and slow to load, but it worked.

  6. #6
    Join Date
    Feb 2006
    Posts
    1792
    Quote Originally Posted by Al_The_Man View Post
    I assume you are talking Fanuc?
    The communication between the CNC and PMC (PLC) is over an inernal bus called the BMI, Basic Machine Interface.
    G registers are used to pass info from PMC to CNC such as operator panel commands, and F Registers are used to pass info from CNC to PMC such as M,S,T codes etc.
    The PMC operates like any typical PLC as to programming and I/O.
    The results of the PLC logic can be monitored in the on screen Ladder display.
    Al.

    Thanks.
    Yes, I am talking with reference to Fanuc, in terms of system variables for interface signals.
    A more specific question (I am not sure if I am not talking non-sense):
    Can we operate an external relay through PMC, by sending appropriate signal to the PMC through a macro?
    For example, let us assume, I want that when the part count is 100, an external siren be automatically sounded. Is it possible?
    Additionally, I may want the part count to be displayed on an external display board. Possible?

  7. #7
    Join Date
    Dec 2003
    Posts
    24221
    I don't normally get involved in part programming so there may be a function for that, I cannot recall seeing one however.
    If it is possible, you may have to change the ladder logic however?
    Someone like Dan Fritz may know.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  8. #8
    Join Date
    Feb 2006
    Posts
    1792
    Quote Originally Posted by Al_The_Man View Post
    Someone like Dan Fritz may know.
    Al.
    Can you please pass on the request to Dan Fritz.
    The problem is that there is no book which I can refer to. Fanuc manual also does not explain properly. How to learn then? There are many things which have to be learnt from others only.

  9. #9
    Join Date
    Sep 2005
    Posts
    767
    There are two ways to output data from the part program, which does not involve the PMC or the ladder at all. You can connect an external device to the Fanuc's serial port, then output data to that device using macro commands, like this:

    POPEN (opens the serial port)
    DPRNT[HELLO] (sends the word "HELLO" to the external device)
    PCLOS (closes the serial port)

    DPRNT statements can send any text, or any variables to the external device. This would be the best way to connect an external display board. If the display board could accept serial data, you could display a "live count" of the number of parts like this:


    O1234 (BEGINNING OF PROGRAM)
    #501 = #501 + 1 (INCREMENT COUNTER VARIABLE)
    N1
    N2 (your program data)
    N3
    POPEN
    DPRNT[#501]
    PCLOS
    M30

    Using a variable in the 500 range makes sense here because the count would remain even if you powered off/on the machine. The operator could manually reset #501 to zero in MDI mode to reset the counter, or you could reset it in the program

    Outputting a logic signal to a relay, or to a series of relays) can be done with the user macro output signals. Not all machines have the user macro outputs wired to a terminal strip, so you may have to seek out these signal points on an I/O board connector. Use the Fanuc CONNECTING manual for this. Each model Fanuc control will be a bit different in this regard.

    There are 16 macro output signals and 16 macro input signals. You can read the inputs with a macro statement, and you can output a relay signal with a macro statement. The inputs are called UI0 through UI15 and the outputs are called UO0 through U015. They each correspond to a macro variable in the 1000 range. See your Fanuc operator's manual for more details on how to send data to these outputs. Basically, you can turn on an individual signal with a statement like:

    #1100 = 1 (turns on relay UO0)
    #1101 = 1 (turns on relay UO1)
    #1100 = 0 (turns off relay UO0)
    (etc.)

    To send a 16-bit binary number using all 16 relays, you can assign a value to variable #1132. The binary equivalent of that number will be output on the 16 relays UO0-UO15.

    Reading an input signal is a matter of just looking at the variables #1000 - #1015. These variables correspond to inputs UI0 - UI15. Reading macro variable #1032 gives you the binary value of all 16 inputs.

  10. #10
    Join Date
    Feb 2006
    Posts
    1792
    Thanks Dan.
    I have understood quite a few things.
    Please explain a few points a little bit more. Only you have the answer. I know that if someone very knowledgeable is asked "trivial" questions, he gets irritated. So, kindly bear with me.

    The Connection manual which I have, uses X for input and Y for output. I could not find UI0-UI15 and UO0-UO15. It is still not clear to me where the output signals (#1100 series) go, and how these operate an external relay. Similarly, how can we sense the ON/OFF state of an external sensor such as a limit switch? We may want to take some decision based on this information.

    What I have understood is, RS-232C port of the CNC machine is not for this purpose. One has to directly connect the external relay / sensor to I/O board of PMC. Are there terminals on I/O board with UI0-UI15 and UO0-UO15 designations?

    I also believe that PMC does not have relay outputs. It can only give source type DC outputs. So, external devices cannot be AC type.

    Please throw some light on this. It will be a great help.

    Thanks for your patience, and looking forward to hear from you.

    Sinha

  11. #11
    Join Date
    Sep 2005
    Posts
    767
    You must be looking at the connecting manual that only describes the PMC functions, not the "Hardware" connecting manual. On some of the newer controls, Fanuc publishes two types of connection manuals. All the User Macro inputs and outputs are processed by the PMC, but usually they are just passed through to some corresponding hardware inputs and outputs. If your machine's ladder does not include these signals, then maybe your machine tool builder never anticipated their use and left them out.

    The type of input is usually +24vdc. Outputs can be one of several types, depending on the model of CNC control and the I/O board you have. Older Fanuc 5, 6, and 7 models had IC reed relays (contact closures). Later controls had a +24vdc voltage output. Some Fanuc I/O boards also have "open collector" outputs where the signal is pulled to ground when it's on. You've never mentioned what model control and what I/O board you have.

    If you need to connect AC devices, I suggest you connect a solid-state relay to the Fanuc output, and use that to drive your AC device.

    If you tell me the model control, maybe one of the forum members can send you the correct hardware connection manual.

    The RS232 port on the Fanuc can be used for any purpose you like. We've connected indexers that accept RS232 commands, we've connected computers to collect touch-probe data for digitizing, we've tied in DNC systems with barcode readers, and we've attached printers for collecting probing data. I'm sure other forum members have done lots of imaginative things with the serial ports as well. You asked about a "Display board", and I was thinking of a display board with a serial input. That would certainly be possible.

    Generally speaking, you will need to use the serial port to pass DATA to another device, and you can use the User Macro signals to pass digital (on/off) or binary or BCD data to another device.

  12. #12
    Join Date
    Feb 2006
    Posts
    1792
    My control is 0i Mate TC.
    Any comment specific to this model?

  13. #13
    Join Date
    Sep 2005
    Posts
    767
    I'm not sure about the Oi Mate. I do have the connection manuals for the 0 Mate and 00 Mate though. Send me an email at [email protected]

    The 0 Mate connection manual lists the Macro inputs at PMC addresses G130 and G131 and the outputs at F162 and F163. The PMC must be programmed to pass these signals through to the I/O points. If you write a macro to output one of those signals, the PMC ladder must read from one of the "F" bits and write to one of the "X" bits, otherwise your signal won't come out to the real world.

  14. #14
    Join Date
    Feb 2006
    Posts
    1792
    Quote Originally Posted by Dan Fritz View Post
    ... write to one of the "X" bits, otherwise your signal won't come out to the real world.
    write to X bit or Y bit?

    For accepting the input from real world, I guess, we have to read X bit and write to G bit.

    This means the ladder necessarily needs to be modified for interacting with the real world.

  15. #15
    Join Date
    Sep 2005
    Posts
    767
    Sorry, my mistake.

    You read from the "X" (input) bits and write to the "Y" (output) bits

  16. #16
    Join Date
    Feb 2006
    Posts
    1792
    Thanks Dan for your help.
    I have now understood it clearly.
    Since I was new to it, I did not even know how the #1000 and #1100 series variables interact with the outside world.
    I now know how these variables are related to G and F signals, and how these signal interact with the real world through X and Y signals. The Connection Manual explains the pin assignment for X and Y signals.

    The only thing which bothers me now is that the manual talks about
    general-purpose DI signals - X0 to X3 (8 bits each)
    Main panel key switches signals - X4 to X11
    MPG signals - X12 to X14
    Alarm signals - X15

    My machine does not have Fanuc MOP. So, cann't I use X0 to X11 for any purpose?

    What is meant by general-purpose signals?

    Thanks again for your kind help.

  17. #17
    Join Date
    Jul 2005
    Posts
    54

    Are you sure Alarm Signal

    this is only idea but
    "Alarm signals - X15" this is imposible
    I think so Alarm signal Generated by machine side and there are two kind of alarm signal one of CNC side alarm second of PMC side alarm
    X signal only input signal not Alarm signal

    Alarm signal's out signal ( F or R like this)

  18. #18
    Join Date
    Feb 2006
    Posts
    1792
    OK, I will use the correct term, as written in the manual:

    X15 : DO alarm detection
    I do not really understand its meaning. Can you please explain.

    At another place, it writes:

    X15 : Reserve
    (this means X15 is internal and we cannot use this)

  19. #19
    Join Date
    Dec 2023
    Posts
    3

    Re: external devices connected to a CNC machine

    I want to read the active axis position and active tool offset from a Fanuc controller in to an external PLC. Can this be done somehow?

  20. #20
    Join Date
    Apr 2009
    Posts
    1379

    Re: external devices connected to a CNC machine

    That is an interesting 'problem'. I don't know what the maximum latency of MTconnnect on a 30i is, but I suspect a lot less than 10s.
    A possible solution is using I/O Link (I did that before).
    I am interested in discussing this, if there is a real product opportunity. 289 389 6117 Eastern Time Zone.

Similar Threads

  1. Ethernet/IP or Modbus/TCP control software for "External Motion Devices"
    By raintalk in forum DNC Problems and Solutions
    Replies: 7
    Last Post: 08-16-2014, 09:38 PM
  2. Can the PC be connected to the host of Steeltailor CNC cutting machine?
    By Steel Tailor in forum Other Machine Topics
    Replies: 0
    Last Post: 12-16-2013, 09:17 AM
  3. Granite devices or Estun
    By adpsm2003 in forum Servo Motors / Drives
    Replies: 3
    Last Post: 07-26-2012, 12:02 AM
  4. CNC connected to a Mac ?
    By Erik Brinkman in forum MetalWork Discussion
    Replies: 69
    Last Post: 06-29-2010, 05:44 PM
  5. Looking at Buying a machine from K2 Devices
    By ceramics in forum Community Club House
    Replies: 0
    Last Post: 01-14-2010, 08:50 PM

Tags for this Thread

Posting Permissions

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