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. KUKA 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

Kuka KRC2 Devicenet Turck I/O Settings

  • Hancock Concrete
  • October 6, 2020 at 10:21 PM
  • Thread is Unresolved
  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 6, 2020 at 10:21 PM
    • #1

    Hello, We are attempting to set up a Turck fdn20-16xsg via Divicenet and want to have 8 set as Digital outputs and 8 set as Digital inputs.

    We have wired it and set the settings as good as we can understand following the Devicenet manual from Kuka and reading multiple topics here on Forums. We are not getting any errors on pendant and the Turck Module light is solid green stating it has an established connection. 121 Ohm resistor is installed on combicom plug on Turck module and also had one on the combicom plug that is plugged into MFC Card.

    When using a jumper from 24V+ to try and simulate an input it does not show up in the I/O Monitor and when changing the output it does not switch a 24v+ reading with voltmeter.

    Robot was a Decommissioned unit from Ballard International. We think it was in an Automotive Plant.

    Robot is KR2210 2 us s c2 flr zh210

    Kernel System KS V5.6.54 RTAcc

    iosys.ini file is written as follows

    [CONFIG]

    Version=2.00

    [DRIVERS}

    MFC=0,mfcEntry,mfcdrv.o

    DEVNET=2,dnInit,dn2drv.0

    DIAGDRV=22,cp_DiagInit,diagdrv.o

    [MFC]

    [DEVNET]

    OUTB1=22,1,1

    INB0=22,1,1

    [DIAGDRV]


    devnet.ini file is written as follows

    [krc]

    debug=0

    baudrate=500

    [1]

    Macid=22


    I have worked on Fanuc systems before but this is my first KUKA and learning as we go.

  • dexterv
    Reactions Received
    15
    Trophies
    3
    Posts
    110
    • October 7, 2020 at 10:26 AM
    • #2

    Have you double checked that the inputs and outputs are correctly mapped in the WoV project?

  • ljuba
    Reactions Received
    33
    Trophies
    5
    Posts
    281
    • October 7, 2020 at 11:38 AM
    • #3
    Quote from dexterv

    Have you double checked that the inputs and outputs are correctly mapped in the WoV project?

    I/O mapping on krc2 is set on different way. WorkVisual is just for KRC4.

    Quote from Hancock Concrete

    Hello, We are attempting to set up a Turck fdn20-16xsg via Divicenet and want to have 8 set as Digital outputs and 8 set as Digital inputs.

    We have wired it and set the settings as good as we can understand following the Devicenet manual from Kuka and reading multiple topics here on Forums. We are not getting any errors on pendant and the Turck Module light is solid green stating it has an established connection. 121 Ohm resistor is installed on combicom plug on Turck module and also had one on the combicom plug that is plugged into MFC Card.

    When using a jumper from 24V+ to try and simulate an input it does not show up in the I/O Monitor and when changing the output it does not switch a 24v+ reading with voltmeter.

    Robot was a Decommissioned unit from Ballard International. We think it was in an Automotive Plant.

    Robot is KR2210 2 us s c2 flr zh210

    Kernel System KS V5.6.54 RTAcc

    iosys.ini file is written as follows

    [CONFIG]

    Version=2.00

    [DRIVERS}

    MFC=0,mfcEntry,mfcdrv.o

    DEVNET=2,dnInit,dn2drv.0

    DIAGDRV=22,cp_DiagInit,diagdrv.o

    [MFC]

    [DEVNET]

    OUTB1=22,1,1

    INB0=22,1,1

    [DIAGDRV]


    devnet.ini file is written as follows

    [krc]

    debug=0

    baudrate=500

    [1]

    Macid=22


    I have worked on Fanuc systems before but this is my first KUKA and learning as we go.

    Display More

    I'm not 100% sure, but I think that the mapping is done in machine.dat.

    Guys that know very well krc2 and could help you are massula and panic mode

  • massula
    Reactions Received
    200
    Trophies
    8
    Posts
    1,426
    • October 7, 2020 at 12:19 PM
    • #4

    Mapping is done on iosys.ini, and looks ok.

    It was a long time since I touched a KRC2 with DeviceNet, but If I recall correctly, You should have DEVNET or MFC driver enabled at a time. You shouldn't have the both enabled at same time.

    I think in this case, DEVNET should be enabled, and MFC, disabled.

  • dexterv
    Reactions Received
    15
    Trophies
    3
    Posts
    110
    • October 7, 2020 at 12:22 PM
    • #5
    Quote from ljuba

    I/O mapping on krc2 is set on different way. WorkVisual is just for KRC4.

    I am sorry, you are absolutely right, I completely phased out the KRC2 part even though there quite a few pointers. Please ignore my previous comment.

  • massula
    Reactions Received
    200
    Trophies
    8
    Posts
    1,426
    • October 7, 2020 at 1:13 PM
    • #6
    Quote from Hancock Concrete

    [DEVNET]

    iosys.ini file is written as follows

    OUTB1=22,1,1

    INB0=22,1,1

    I don't remember if the multiplicator is obligatory or not, but on mapping section You can also try this:

    OUTB1=22,1,x1

    INB0=22,1,x1

  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 7, 2020 at 2:03 PM
    • #7
    Quote from massula

    I don't remember if the multiplicator is obligatory or not, but on mapping section You can also try this:

    OUTB1=22,1,x1

    INB0=22,1,x1

    While searching for examples I did come across some that had it and some that didn't. I followed the Kuka divicenet Manual on that one but I can try putting them in and see it helps.

    I don't think I fully understand what specific I/O this is setting in the Kuka either. I'd like to think this is setting the mapping for input 1-8 and output 1-8, I used the jumper to trigger input and started scrolling through l/O list to about 1000 and didn't see any triggered but there is upwards of 10,000 on the list and I did not scroll through all of them.


    Quote from massula

    Mapping is done on iosys.ini, and looks ok.

    It was a long time since I touched a KRC2 with DeviceNet, but If I recall correctly, You should have DEVNET or MFC driver enabled at a time. You shouldn't have the both enabled at same time.

    I think in this case, DEVNET should be enabled, and MFC, disabled.

    We are trying to connect using the DeviceNet connector on the MFC Card. Does this make an impact on what the other things are that are connected to the NFC Port on the NFC Card? I Error on the side of caution when it comes to changing too much at a time.

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • October 7, 2020 at 4:13 PM
    • #8

    Let's back up -- are there any error messages on the pendant? What do the status LEDs on the Turck module show? It's hard to be sure from your photo, but it looks like only the MOD LED is active, and not the DNET LED.

    OUTB0 and INB0 correspond to $OUT[1]-[8] and $IN[1-8], respectively. For whatever reason, the I/O config files start all indices with 0, while at the program level, all indices start with 1.

    Set DEBUG=1 in DEVNET.INI, and see what shows up in the DEVNET.LOG file.

    Also, when you make changes to any of the I/O config files, are you performing an I/O Reconfig, or cold-booting the robot, after? The changes don't "take" until you do that.

    If you're not using the DIAGDRV and MFC for anything (and it appears you're not), I would suggest commenting them out. I doubt they're getting in the way of the DN driver, but shutting off options you're not using is seldom a bad idea.

  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 7, 2020 at 5:02 PM
    • #9

    No error messages on pendant.

    Turck module shows established connection- solid green led

    Neither LED on the MFC card is lit.

    I will go out here in few and get a debug log!

    Reconfiguration after any change, every time.

    The Diagdrv and MFC settings are not understood as the connection is made on the MFC Card but found couple different threads on here that used both...

  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 7, 2020 at 5:52 PM
    • #10

    Hello,

    I commented out MFC and Devnet.

    Modified file to the following

    [CONFIG]

    Version=2.00

    [DRIVERS}

    ;MFC=0,mfcEntry,mfcdrv.o

    DEVNET=2,dnInit,dn2drv.0

    ;DIAGDRV=22,cp_DiagInit,diagdrv.o

    [MFC]

    [DEVNET]

    OUTB0=22,1,x1

    INB0=22,1,x1

    [DIAGDRV]


    I can now trigger the i/o BUT:

    When I set output 1 to on output 9 turns on at the module and input 9 is showing =on, on the pendant.

    Applying 24v to the pins on the module it will turn on status LEDs on the module for pins 9-16 and triggers inputs on pendant of 1-8 but does nothing on pins 1-8.

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • October 7, 2020 at 8:49 PM
    • #11

    Ah... yes, the "22,1" setting should be "22,0". Again, the I/O indices start with 0. So MAC-ID 22, Byte 0, should be the first 8 Inputs or Outputs on the module.

  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 7, 2020 at 9:55 PM
    • #12

    So should it be like this to set 1-8 as inputs and 9-16 as outputs?

    [CONFIG]

    Version=2.00

    [DRIVERS}

    ;MFC=0,mfcEntry,mfcdrv.o

    DEVNET=2,dnInit,dn2drv.0

    ;DIAGDRV=22,cp_DiagInit,diagdrv.o

    [MFC]

    [DEVNET]

    INB0=22,0,x1

    OUTB0=22,1,x1

    [DIAGDRV]

  • Hancock Concrete
    Trophies
    2
    Posts
    11
    • October 7, 2020 at 10:54 PM
    • #13

    I changed it to what I just posted and also discovered that it slipped my mind to run AUX+ and AUX- to 1-8 on Module even though I did it for 9-14 and 15-16. Wired it up and set the settings as stated and it is working as intended.

    I would like to thank you all greatly for your help on this and would :beerchug: if we could.

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • October 8, 2020 at 6:09 PM
    • #14
    Quote from Hancock Concrete

    So should it be like this to set 1-8 as inputs and 9-16 as outputs?

    [CONFIG]

    Version=2.00

    [DRIVERS}

    ;MFC=0,mfcEntry,mfcdrv.o

    DEVNET=2,dnInit,dn2drv.0

    ;DIAGDRV=22,cp_DiagInit,diagdrv.o

    [MFC]

    [DEVNET]

    INB0=22,0,x1

    OUTB0=22,1,x1

    [DIAGDRV]

    Display More

    This would connect $IN[1]-$IN[8] to the first 8 inputs on the module, and connect $OUT[1] - $OUT[8] to outputs 9-16 on the module.

    Normally you don't need to do it this way -- the INB and OUTB have parallel addressing, not serial. So unless the module is unusual, you should be able to use OUTB0=22,0, which will connect $OUT[1]-[8] to the module's physical outputs 1-8.

    Basically, there are two 22,0 addresses in the module -- one for input, the other for output. Using 22,0 for INB0 does not conflict or overlap with using OUTB0 on 22,0 as well. The divide between Input Addresses and Output Addresses is implicit -- if the line in DEVENET.INI is assigning OUTBx, then the driver switches to the module's output area before looking for the 22,0 address. If the next line is assigning INBx to 22,0, the driver switches to the module's input area before looking for 22,0.

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
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • 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
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  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