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

ModBus_Profinet_kuka KRC

  • luis flores
  • April 11, 2022 at 2:20 PM
  • Thread is Unresolved
  • luis flores
    Trophies
    2
    Posts
    21
    • April 11, 2022 at 2:20 PM
    • #1
    Code

    Hello everyone, i have a question if it is possible to send a data type in word or integer to the PGNO_TYPE variable to start a program on the Cell.src.

    Thank-you i listen to all your comments.

    :top:

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • April 11, 2022 at 2:45 PM
    • #2

    sending word or integer data to an integer variable is not just possible... it is requirement.

    btw PGNO_TYPE value is not something you would transmit. this value is used to specify data exchange format so it is not something that would be changed a lot. you set it once and that's it.

    same goes for all three variables in autoexternal interface (marked yellow "Var"). those are
    the "permanent" settings.

    things used in handshake are the I/O signals (marked green "I/O"). those are changing during process.

    the question is, can your data exchange interface control I/O or not?

    anything that maps to I/O would require suitable driver and I/O mapping on KRC side.

    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

  • luis flores
    Trophies
    2
    Posts
    21
    • April 11, 2022 at 3:25 PM
    • #3
    Code
    thank you for the information, but my situation is somewhat complex, I have an HMI which transmits their variable in integer by modBus, and I have a PLC as an intermediary which transmits the info from my HMI to KRC by profinet, so the question of how I could send the info from my HMI to start my program cell.src
  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • April 11, 2022 at 4:15 PM
    • #4

    what is so complex about it? it cannot be simpler... you just have:

    HMI<-->PLC (Modbus)

    and

    PLC<--> KRC (ProfiNet)

    i do not see a problem at all...


    have HMI send whatever signal you want to PLC, have PLC handshake with KRC. that is exactly what AutoExternal is meant for. signals between PLC and KRC are I/O.

    all data is organized in some units of memory, bits, bytes, whatever. part of a job of a programmer is to group and split data according to needs.

    sending data from HMI to PLC has nothing to do with sending data from PLC to KRC. those are two very separate things. until you realize this, you will not be able to move forward with your project or problem description. you can and should make and test connection between PLC and KRC completely independent of anything HMI.

    you need to break things down in sufficiently small steps then resolve each step, one by one until all steps are completed.

    for example you could do something like this:

    1. read manuals

    2. determine needed number of signals

    3. create WoV project that connects to PLC including mapping of I/O

    4. decide on type and accordingly configure AutoExternal interface

    5. create couple of dummy programs that do not move robot, just use delay and print message

    6. adapt CELL.SRC to call those dummy programs

    7. deploy project to robot

    8. configure PLC to use robots AutoExternal interface

    9. create PLC program to handshake with KRC using that AutoExternal interface

    10. test everything and confirm that PLC can chose and run any dummy program i want

    11. create HMI application

    12. make HMI communicate with PLC

    13. create few HMI controls to show status of PLC and KRC and trigger few things in PLC

    14. adapt PLC program so that signal from HMI triggers some action such as choosing KRC program and starting it

    now you may also say some of the steps are not very detailed and you don't know how to solve them. that may include step 9.

    ok, just break it down even more.... and solve it one piece at a time.

    for robot to be under the spell of PLC, PLC needs to know some things such as if the robot is really in EXT mode or not. only in EXT mode PLC can have control. and that means something like:

    1. check if KRC is in EXT and CELL.SRC is selected

    2. if there is a KRC stop message clear messages.

    3. set drives on, drives off and move enable to get KRC confirm that drives are on

    4. if everything is ok so far, issue start and make sure CELL.SRC is running

    5. now you should have everything green on smartPad....

    6. let the PLC send correct value for PGNO according to program selection on your HMI

    7. confirm that KRC sees that same value (you do not want to run wrong program)

    8. if confirmed that KRC sees correct PGNO, let PLC tell to KRC that PGNO_VALID is true.

    all of this is covered in KUKA documentation and i have shared an example of simple PLC program.

    and what if CELL.SRC is not selected or if different robot program is selected?

    again, read the manuals. default is that user would manually select CELL.SRC, run it in T1 mode until robot is home, then change mode to EXT. at this point PLC program takes over.

    you could of course automate that too (by using CWRITE commands).

    so with few lines of code your SPS would detect moment user changes mode to EXT and check if program is selected or not. if it is wrong program deselect it. if no program is selected, select CELL.SRC

    simple...

    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

  • Online
    SkyeFire
    Reactions Received
    1,042
    Trophies
    12
    Posts
    9,388
    • April 11, 2022 at 5:11 PM
    • #5
    Quote from luis flores

    Hello everyone, i have a question if it is possible to send a data type in word or integer to the PGNO_TYPE variable to start a program on the Cell.src.

    Why do you want to send PGNO_TYPE to the robot from an external source? PGNO_TYPE is a configuration variable, not an input. (along with PGNO_FBIT, PGNO_LENGTH, and PGNO_PARITY).

    PGNO, and PGNO_VALID, are the signals you need to send to the robot, in response to the robot sending PGNO_REQ

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • April 11, 2022 at 5:16 PM
    • #6

    i've been wondering about that too. maybe he wants to make configuration possible from his HMI. but this is so unlikely i dismissed it. there is nothing in a way to have HMI write value to PLC and PLC writes that same value to outputs mapped to robot and have robot update that or any other variable.

    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

  • luis flores
    Trophies
    2
    Posts
    21
    • April 12, 2022 at 3:52 PM
    • #7
    Code
    Thanks for the info, you helped me a lot

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