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

How to send Digital I/O from KRC2 controller to Arduino?

  • vikovarga
  • October 29, 2017 at 2:17 PM
  • Thread is Resolved
  • vikovarga
    Trophies
    3
    Posts
    2
    • October 29, 2017 at 2:17 PM
    • #1

    Hi everyone,

    I have designed a 3D printed gripper to KUKA KR5 robotic arm. I control the robot with teach pendant but I have to control the gripper with Arduino and bluetooth module using an android application because I cannot connect the KRC2 controller with my Arduino.

    My plan would be to send a Digital 1 signal from KRC2 to the Arduino. When it happenes the gripper would close. If a Digital 0 appears the gripper would open. It is my a senior project at my university but since I am a beginner in robot programming I stucked at this point.

    I tried to write a program code (please find it attached) and I wired X11 91th plug. Originally there was one more line between line 8 and 9 which was a WAIT 5s command but it's not on the picture. Then I monitorized with Arduino if Digital 0 changes to Digital 1 but nothing happened.

    Thanking you in advance for your time and assistance.

    Images

    • Webp.net-resizeimage.jpg
      • 188.06 kB
      • 618 × 349
      • 92
    • Webp.net-resizeimage (2).jpg
      • 206.37 kB
      • 350 × 619
      • 71

    Files

    Webp.net-resizeimage.jpg_thumb 20.18 kB – 158 Downloads Webp.net-resizeimage (2).jpg_thumb 29.78 kB – 158 Downloads
  • Online
    panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,085
    • October 29, 2017 at 3:58 PM
    • #2

    X11 interface is safety interface, has nothing to do with robot I/O (it is not influenced by your program) and functionality f each circuit is fixed.


    If you want to use robot I/O you need to install and configure I/O modules (devicenet for example) as described many times. you can check IOSYS.INI to see if any drivers are enabled and how I/O is mapped. Alternatively, you can try to use serial port.


    Arduino I/O are not directly compatible with industrial I/O. Industrial I/O are using 24V signals so some conditioning is required. Details will depend if you need isolation or not, definitely need to match the level, response time is also different.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • irobot
    Trophies
    4
    Posts
    271
    • October 30, 2017 at 1:57 AM
    • #3

    on the KRC2, you may chose the RS232 interface with Arduino

    KUKA Conntroller : _________<br />KSS Software : ____________ <br />Robot Model: _____________

  • vikovarga
    Trophies
    3
    Posts
    2
    • October 30, 2017 at 10:40 AM
    • #4

    Thank you for the answer. Could you tell me please how to communicate via Serial port? What program commands should I use? How to set up desired ports? How can I send any signals which could be monitorized with digitalRead command on Arduino?

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • October 30, 2017 at 2:37 PM
    • #5

    Using the forum's Search function would be a good start.
    https://www.robot-forum.com/robotforum/man…ss-version-5-2/

    And as was already stated, you can't use DigitalRead with the serial port, you would have to use the Serial Library. And, even thought it's already been stated: DO NOT CONNECT THE ARDUINO DIRECTLY TO THE ROBOT. Even for the RS232 port, the voltages are not compatible. You will need a voltage adapter or circuit.

  • gigante
    Trophies
    4
    Posts
    15
    • October 30, 2017 at 10:29 PM
    • #6

    We have used Arduino to control a stepper driven extruder with our KR6. However, we did it through a Beckhoff I/O. We used an EK1100 coupler and an EL2809 output module. The output signal from the controller closed a dry-contact relay. This triggered the Arduino and kept the voltages isolated. It's not a KRC2, but the principal is the same. Latency was not really an issue for our project.

    Edited once, last by gigante (October 30, 2017 at 10:45 PM).

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