1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Integrating the Beckhoff CX5140 with FANUC R30iBP

  • MMCINTIRE
  • February 11, 2020 at 6:09 PM
  • Thread is Resolved
  • MMCINTIRE
    Reactions Received
    2
    Trophies
    3
    Posts
    29
    • February 11, 2020 at 6:09 PM
    • #1

    I am looking for some additional information to help determine the best way to integrate the R30iBP controller on a production machine that has a Beckhoff CX5140 PLC. The PLC will communicate with several IO-Link master blocks using EtherCAT and with a Red Lion HMI using modbus TCP.

    EtherCAT/Modbus TCP Options:

    FANUC offers the EtherCAT Function (J753 EtherCAT Slave option) but from what I have read in the manual, I don't think it will provide the access to certain information that I want such as PR() information. The modbus TCP option is also available form FANUC but the information available is also restricted to DI, DO, GI, GO, UI, and UO.

    IO-Link Option?:

    I'm not familiar with using racks 72 and 73 for IO-LINK II master/slave capabilities and I'm not sure what data is available but I have a feeling that it is the same information available with Modbus TCP and EtherCAT.

    EIP Option:

    The EIP option looks to be about the most flexible solution available but this also means that I would be adding a protocol to the machine so I want to investigate the previous mentioned methods as much as possible first. Otherwise, using the FANUC Advanced EIP Scanner option with a Beckhoff EIP slave module is possibly the best setup I can come up with and it would give me access to PR() data using HMI with the HMI option (or explicit messaging with the PLC?). I could use FANUC EIP Adapter option but the Beckhoff EIP Scanner is a fairly new product and possibly not as robust as I would need.

    Also, if anybody has experience using a Beckhoff controller to access and change point data using the SNPX functionality or any other method I would most certainly be interested in learning how to accomplish that.

  • MMCINTIRE
    Reactions Received
    2
    Trophies
    3
    Posts
    29
    • February 11, 2020 at 7:30 PM
    • #2

    I have seen some mention of KepServerEX in the forum and I went to Kepware's website and it looks like the Beckhoff Twincat is supported. What about using KepServerEx by Kepware in TwinCAT (PLC software) with SNPX functionality of the controller?

  • MMCINTIRE
    Reactions Received
    2
    Trophies
    3
    Posts
    29
    • February 12, 2020 at 9:37 PM
    • #3

    SOLUTION:

    With HandleTool version 9.10P/19 and up, the SNPX HMI option will come with OPC UA functionality and there is no need for a 3rd party option like Kepware. So right now the solution is pretty clear and that is to use option R553 with an OPC UA connection set up in TwinCAT to utilize the internal registry capabilities of the SNPX assignments.

    I know Beckhoff isn't very popular in US but I'm sure that this will help somebody other then myself.

  • lfbmarques
    Trophies
    3
    Posts
    13
    • April 17, 2020 at 8:39 PM
    • #4

    Hello.

    I'm using EtherCAT to communicate a TwinCAT program with a R-30iB controller.

    The the data is avaliable in your DO and DI slots. The slave board I'm using

    In the controller TP you must choose the data configuration. The default config. I'm using is 32 variables of 16 bits, totalizing 512 boolean inputs and 512 boolean outputs. You must then map your DIs and DOs to the slave I/Os address as you wish. For integer and real/float variables I use GI and GO mapping.

    In the TwinCAT/Beckhoff side you must upload the .xml file of the FANUC that contains all information for the integration. It will automatically read the configuration of the EtherCAT variables. In my case it identified 4 groups of 8 UINT varaibles (32 variables of 16 bits). Now you just have to link the EtherCAT I/O with the Beckhoff variables.

    Right now I'm trying to map this variables to UOP variables in the controller! Cross your fingers for me.

  • MMCINTIRE
    Reactions Received
    2
    Trophies
    3
    Posts
    29
    • April 21, 2020 at 6:04 PM
    • #5

    Hello Luiz!

    Thanks for your reply! If you are able to map integer and real/float variable to GI and GO mappings then you should be able to modify PR and R data using those mappings but I still don't know how you would gain access to the fault information. If this comes up on your project and you find a solution using the EtherCAT option I would be very interested in your findings.

  • lfbmarques
    Trophies
    3
    Posts
    13
    • April 21, 2020 at 6:32 PM
    • #6

    The fault informations are BOOL variables and can be acessed via UOP output signals or directly in the System > Variables (they are there somewhere, need to check the manual to know exactly where they are).

    In TwinCAT I mapped this inputs (outputs in FANUC point of view) in arrays. For example I used DO00[0] as my digital flags array (totalizing 16 flags). So I have 16 digital slots where I can map bool variables. Once you can map the DI and DO freely in the rack and slot that you wish, it becames easy to map a binary variable into a numeric variable.

    Still in TwinCAT you should do something like this to access the inputs:

    Code
    VAR
        FLAG_IN_ARRAY  : UINT;
        DI_0 : BOOL;
        DI_1 : BOOL;
        DI_2 : BOOL;
             .
             .
             .
        DI_15 : BOOL;
    END_VAR
    
    DI_0 := FLAG_IN_ARRAY.0;
    DI_1 := FLAG_IN_ARRAY.1;
    DI_2 := FLAG_IN_ARRAY.2;
    
        
    Display More

    Hope that is usefull for you!

  • dha
    Reactions Received
    29
    Trophies
    6
    Posts
    397
    • April 24, 2020 at 10:15 AM
    • #7

    I like EtherCat the most but we still use EIP because it is the cheapest fieldbus option on robot. You can buy EtherCat slave interface (B950) which is integrated into CX.

    I hope Fanuc will integrate EtherCat chip in next gen controllers...

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Tags

  • Beckhoff
  • CX5140
  • R30iBP
  • SNPX
  • EtherCAT
  • IO-Link
  • EthernetIP
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download