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

Profinet and Profisafe communication between KRC4 and S7-1200 1214FC

  • Bender_the_robot
  • January 24, 2024 at 2:41 PM
  • Thread is Unresolved
  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 24, 2024 at 2:41 PM
    • #1

    Hello, this is my first post here, I’ll try to give the information as accurate and complete as possible and try to explain my question the best I can.

    I have a KR210 and a KRC4 (8.3.37) that I want to control via PROFINET (also using the PROFIsafe interface) with a S7-1200 1214 FC DC/DC/DC. I use WorkVisual 6.0 and TIA Portal V17 for configuration and programming.

    I’ve been able to establish PROFINET communication with the PLC. Meaning: IP’s and Device names have been correctly stablished, mapping has been configured, and I’ve been able to read and write values from the non-safe PROFINET I/Os and see how they were also having an effect on the Teach Pendant I/O Visualization window.

    In the KRC4 side, I’ve used PROFINET 3.3 and activated PROFIsafe (2.4). The procedure in WorkVisual was: set the parameters in the PROFINET tab, set the parameters in the Safety Control tab, map the PROFINET I/Os (PROFIsafe I/Os are hard-mapped) and keep in mind the security ID Address for the configuration in TIA Portal.

    In the PLC side, I’ve added the GSDML file for the KRC4-PROFINET-3.3, connected it to the PLC in the device and networks tab, and stablished the corresponding names and IP addresses. I’ve also set the F_Dest_Add parameter (inside the properties of the 64 safe digital i/os in the KRC4 controller) to 7 as in the Profinet Safety ID in WorkVisual.


    What I’m trying now is to get the robot into the AUT EXT mode and be able to control both the Safe outputs and the mapped (not safe) outputs with the inputs given from the PLC.

    For example, from the KUKA System Software 8 Robot Programming 1 Anex 14, there is a collection of signals used for the protocol to link the PLC and the robot in the AUT EXT mode.


    In the manual KUKA Profinet 3.3 for KUKA System Software 8.3 and 8.4 section 5.8 Safety Interface via PROFIsafe, the input and output safe bytes description is given.


    Some of them, for example, Byte 0 Bit 2: Operator safety, resembles the one $USER_SAF from the document previously mentioned.

    Here are some of the questions I have:

    Are the AUT EXT predefined signals ($USER_SAF, $STOP_MESS,…) always required for the AUTO EXT communication and operation?

    Which is the purpose of the safe signals then? Can I get to the AUT EXT with them?

    Can I get the AUTO EXT to work, without physical safety components installed (I know it’s not recommendable and dangerous), but forcing both safe and non-safe outputs from the PLC (inputs in the KRC, like USER_SAF or Byte0_bit2_BS)?

    If the SafeOperation package is installed, is it mandatory to set all the reserved bits to 1? Are there any bits that, if not used, should be set to 1?

    I have seen different errors in the Teach Pendant, but my main focus now is to understand better these concepts and what more I may be missing in terms of configuration and pre-defined values settings. Once that is addressed, I’ll may post more info related to specific errors.

    Please, feel free to ask anything regarding unclear or misleading information, any help is well appreciated. Thanks in advance.

  • Go to Best Answer
  • Werner Hampel January 24, 2024 at 2:41 PM

    Approved the thread.
  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 24, 2024 at 2:52 PM
    • #2

    I have some screenshots, but I'm not sure how to upload them, :grinning_face_with_sweat: :grinning_face_with_sweat:

    Any help here is well appreciated too

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 24, 2024 at 3:20 PM
    • #3
    Quote from Bender_the_robot

    What I’m trying now is to get the robot into the AUT EXT mode and be able to control both the Safe outputs and the mapped (not safe) outputs with the inputs given from the PLC.

    that is correct but it will be different programs. safety signals must be programmed in the safety task. none-safe (standard) logic goes into standard task

    Quote from Bender_the_robot

    Are the AUT EXT predefined signals ($USER_SAF, $STOP_MESS,…) always required for the AUTO EXT communication and operation?

    They are not specific to AUTO EXT, they are ALWAYS required (any operating mode). It is just that configuration/mapping of those signals happen to be in screen pages incorrectly named "Auto External". SOME of the signals there are used for Auto External. but there are many more there that have nothing to do with AutoExternal.

    Quote from Bender_the_robot

    Can I get the AUTO EXT to work, without physical safety components installed (I know it’s not recommendable and dangerous), but forcing both safe and non-safe outputs from the PLC (inputs in the KRC, like USER_SAF or Byte0_bit2_BS)?

    yes...

    Quote from Bender_the_robot

    If the SafeOperation package is installed, is it mandatory to set all the reserved bits to 1? Are there any bits that, if not used, should be set to 1?

    Safe operation manual tells what need to be set.

    Safe (deenergized) state is default... with all values 0.

    but to move the robot, they all need to be 1, including some of reserved ones.

    But this need to be done in the safety task.

    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
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 24, 2024 at 3:21 PM
    • #4

    also search forum for topics on "red banner" and "gray banner" shown on smartPad.

    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

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 24, 2024 at 4:36 PM
    • #5

    Thanks panic mode for your answers!

    I think i don't fully understand some things and I'll need to keep investigating. There is one more question I have.

    Do the safe inputs for the KRC have any control over the regular outputs of the KRC?

  • hermann
    Reactions Received
    412
    Trophies
    9
    Posts
    2,629
    • January 24, 2024 at 6:18 PM
    • #6
    Quote from Bender_the_robot

    Do the safe inputs for the KRC have any control over the regular outputs of the KRC?

    Not direct but indirect. F. e. if the safe fence input is low in aut or aut ext, the $peri_rdy output will go off, because drives will be switched off.

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 24, 2024 at 7:19 PM
    • #7
    Quote from Bender_the_robot

    Do the safe inputs for the KRC have any control over the regular outputs of the KRC?

    nope.

    regular outputs are just regular outputs that user or programs can set and reset any time and without any restrictions. ANY TIME!!! yes, you have a robot arm crashed into the wall, flaming oil comming out of it, Emergency stop pressed and still the outputs (grippers, lights etc) could be moving and flickering any way you - like Christmas tree decorations.

    the only restrictions are skin deep - from the HMI (things you see on the smartPad). so the HMI may not let you toggle outputs if the robot program is running or if drives are not on. but... that is just the HMI and even so - if you know your way around it, everything is possible. for example you don't need to use HMI to access IOs. Or you can use HMI but let Submit do things for you - even the robot program is running or when drives are off.

    Out of box robot system and controller (in this case KRC/KSS) do not care about state of the standard IO. making outputs work only when some safe function is active is YOUR job. and the outputs are not tied into safety of the robot in any way because nobody knows what your application and needs are. you need to choose which outputs need to be affected by safety circuit and how. normally this means providing power to the outputs through suitable safety logic. so when the safety logic says "no power for you", the outputs are dead regardless if the robot logic has them turned on or off.

    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
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 24, 2024 at 7:40 PM
    • #8

    check the documentation for naming convention.

    some may call it Us for "sensor voltage (inputs)" which is always on

    and Ua for "actuator voltage (outputs)" which is only on when safety logic allows it.

    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

  • aknezevi.proton
    Reactions Received
    5
    Trophies
    1
    Posts
    73
    • January 25, 2024 at 3:02 PM
    • Best Answer
    • #9
    Quote

    Are the AUT EXT predefined signals ($USER_SAF, $STOP_MESS,…) always required for the AUTO EXT communication and operation?

    To move the robot in AUT EXT mode the AUT EXT signals need to be correctly configured and run (meaning timed correctly etc.) To move the robot arm at all outside of Startup Mode the Profisafe Inputs need to be correctly configured and run (meaning safety needs to be sent to robot, for example SHS1 signal needs to be 1 because 0 means safety stop).

    Quote

    Which is the purpose of the safe signals then? Can I get to the AUT EXT with them?

    Safe signals are for safety purposes. As per above, to move the robot in AUT EXT both the safety needs to be correct (or faked) (because the arm will not move otherwise) and AUT EXT signals need to be correct (otherwise no AUT EXT mode).

    Quote

    Can I get the AUTO EXT to work, without physical safety components installed (I know it’s not recommendable and dangerous), but forcing both safe and non-safe outputs from the PLC (inputs in the KRC, like USER_SAF or Byte0_bit2_BS)?

    Of course! How would the robot controller know that there is no estop button if you sent it that ESTOP button is pressed using the PLC? It wouldn't and it doesn't. You can force all safety outputs on the PLC.

    Quote

    If the SafeOperation package is installed, is it mandatory to set all the reserved bits to 1? Are there any bits that, if not used, should be set to 1?

    SafeOperation has nothing to do with those signals, it is ProfiNet option package which configures that. SafeOperation configures other things, like brake testing, mastering test, safety zones, safety tools etc. In ProfiNet manual you will find that it says that it is best to set reserved signals to 1, that is in case of upgrades in the future, but also best practice.

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 25, 2024 at 3:11 PM
    • #10

    If the safety interface for the robot is ProfiSafe, you MUST set reserved bits to true in the safety PLC.

    When it comes to SafeOperation, larger block of safety data is exchanged.

    Without it, only the first 2bytes are really used (bytes 0 and 1, they are containing same signals one normally finds on X11).

    With SafeOperation, additional 6 bytes are used (they contain signals normally found on X13, plus few more).

    In case of ProfiSafe, all 8 bytes are exchanged with safety PLC regardless if you have SafeOperation or not. In other words the 6 bytes used for SafeOperation are transmitted even if not used.

    in case of CipSafety (via EthernetIP), one can choose if exchanged data will transmit only the first two bytes or all eight bytes.

    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

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 25, 2024 at 3:58 PM
    • #11

    Thank you all for the answers, great pieces of information there that I was missing.

    Quote from aknezevi.proton

    for example SHS1 signal needs to be 1 because 0 means safety stop).

    I missunderstood the usage of this kind of signals, I'll set all of them to one for the testing purpose and connect them to physical components in next stages.

    Quote from panic mode

    In case of ProfiSafe, all 8 bytes are exchanged with safety PLC regardless if you have SafeOperation or not. In other words the 6 bytes used for SafeOperation are transmitted even if not used.

    This is another great thing for me, I was not setting the reserved bytes from the SafeOperation part, nor the other ones, and I've read that for example you need at least one tool always active in the dedicated bytes, so I was missing that too.

    Thank you all for the support, I'll apply the changes and see If I can now configure the AUT EXT correctly

  • aknezevi.proton
    Reactions Received
    5
    Trophies
    1
    Posts
    73
    • January 26, 2024 at 7:52 AM
    • #12
    Quote

    I missunderstood the usage of this kind of signals

    I am assuming you meant that you thought 1 means safety stop?
    That is not how industrial automation works. What if PLC suddenly loses power, and since it is a profisafe device it runs all safety. If 1 meant that safety was breached (for example 1 meaning safety stop), then if PLC controller (which runs ALL safety!) lost power there would be no way for robot controller to know that there has been a safety hazard, it would not be told that.

    And, yes, KRC would know that communication broke, but imagine it was just one wire breaking. That is why mostly in all industrial automation 1 means good to go, and 0 means something is broken. Because if there is no power, by default you send that something is broken, which is just good practice.

    But, you can always fake signal and just see what controller tells you, to make sure what is 1 and what is 0.

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 26, 2024 at 12:13 PM
    • #13
    Quote from aknezevi.proton

    I am assuming you meant that you thought 1 means safety stop?
    That is not how industrial automation works. What if PLC suddenly loses power, and since it is a profisafe device it runs all safety. If 1 meant that safety was breached (for example 1 meaning safety stop), then if PLC controller (which runs ALL safety!) lost power……

    Yes, I understood that, 1 means safety stop, and didn’t give it a second thought. What you explained makes perfect sense, and now, I will remember it and apply it.

    Thanks for the explanation!

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • January 29, 2024 at 5:03 AM
    • #14

    the data is expected to be "1" since it is fail safe. in this state each bit acts as permissive or enable signal.

    each safety node (master and slave) checks for correct data of course but it also checks for other things including state of local IO and the communication timeouts. this way, regardless of type of failure, each safety node (master or slave) will automatically clear all data, along with all outputs that it has control over, thus resulting in a safe state.

    some bits are reserved, meaning they may not have assigned function yet, but this may change in the future. this is why all the bits are still checked - for future compatibility.

    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

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • January 29, 2024 at 11:50 PM
    • #15

    Hi again, I have a question regarding the set up for the input bytes in the profisafe reserved bytes. Particularly the SPA bit, which is the 7th bit in the input byte 1. From the description given in the Profiner 3.3 Manual, I don’t know if it should be defaulted to 0 or to 1, given that is an acknowledgement signal. I’m thinking of a 0, but I may be missunderstanding something. The manual description is copied bellow:

    System Powerdown (controller will be shut down)

    One second after the SP signal has been set, the PSA output is reset by the robot controller, without confirmation from the PLC, and the controller is shut down.

    0 = controller on safety interface is active.

    1 = controller will be shut down

    Thanks in advance!!

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • February 4, 2024 at 6:35 PM
    • #16
    Quote from panic mode

    the data is expected to be "1" since it is fail safe. in this state each bit acts as permissive or enable signal.

    hey Panic mode, I posted a comment about one specific signal, could you help me with that?? Thanks!!

    Quote from Bender_the_robot

    Hi again, I have a question regarding the set up for the input bytes in the profisafe reserved bytes. Particularly the SPA bit, which is the 7th bit in the input byte 1. From the description given in the Profiner 3.3 Manual, I don’t know if it should be defaulted to 0 or to 1, given that is an acknowledgement signal. I’m thinking of a 0, but I may be missunderstanding something. The manual description is copied bellow:

    System Powerdown (controller will be shut down)

    One second after the SP signal has been set, the PSA output is reset by the robot controller, without confirmation from the PLC, and the controller is shut down.

    0 = controller on safety interface is active.

    1 = controller will be shut down

    Thanks in advance!!

    Display More
  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • February 4, 2024 at 7:31 PM
    • #17

    i think the manual is very clear on it.

    what is it that you find confusing?

    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

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • February 4, 2024 at 9:04 PM
    • #18
    Quote from panic mode

    i think the manual is very clear on it.

    what is it that you find confusing?

    I don’t know exactly how it works.

    Quote from Bender_the_robot

    From the description given in the Profiner 3.3 Manual, I don’t know if it should be defaulted to 0 or to 1, given that is an acknowledgement signal.

    If it’s defaulted to 1, I may have unexpected shutdowns?

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • February 4, 2024 at 9:45 PM
    • #19

    and you are correct - power down signal is an apparent exception.

    frankly - not sure why is this even part of the safety interface.

    manual tells that this need to be 0 and if this is set to 1, it WILL shut the robot controller down. so, nothing unexpected about that.

    i never used it nor plan on doing so. can't think of scenario where i would want safety PLC to shut down KRC. it is normal that safety PLC enables/disables peripherals but this is something that happens in milliseconds upon conditions being met. but powering down device that takes forever to reboot (like robot controller) is something that happens on a very different time scale and i have never seen any other device that would support this.

    if i use something to power things down, i expect to use the SAME mechanism to revert the state and power up. which is not there in this case...

    perhaps it was debugging feature used by developers to get past some frustrating issues that they could not program around. or it may have been just conceived during Oktoberfest...? :clinking_beer_mugs: :clinking_beer_mugs: :clinking_beer_mugs: :clinking_beer_mugs: :clinking_beer_mugs:

    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

  • Bender_the_robot
    Reactions Received
    1
    Trophies
    1
    Posts
    9
    • February 4, 2024 at 10:18 PM
    • #20
    Quote from panic mode

    and you are correct - power down signal is an apparent exception.

    frankly - not sure why is this even part of the safety interface.

    ahhahahah got it! Thanks for the information, I would go with the Oktoberfest theory 😂😂

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

  • PROFINET
  • Profisafe
  • EXT AUT
  • S7-1200
  • KRC 4
  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