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

Reading the error message

  • XxOnlyInstinctsxX
  • October 8, 2024 at 8:18 AM
  • Thread is Resolved
  • XxOnlyInstinctsxX
    Trophies
    1
    Posts
    22
    • October 8, 2024 at 8:18 AM
    • #1

    Hello everyone, im working on a KRC5 KSS8.7, we are trying to aknowledge what kind of message we get in case of having rather a colission or an Emergency Stop. For this we were thinking on using something to read the last message we get from the Controller.

    DECL CHAR BUFFER[40]

    DECL CHAR Substring[40]

    SUBSTRING[]="COLLISION"

    IF $STOPMESS THEN
       ; READING THE LAST MESSEAGE FROM THE SYSTEMcolisión
       CWRITE($CMD,STAT,MODE,"MESSAGES GET LAST",Buffer[])
       IF (Buffer[])==(Substring[]) THEN ;Compare with our string with the word we searching
           SIGNAL_COLLISION = TRUE
       ENDIF
    ENDIF

    I started with this idea, but it doesnt works, so i was wondering if anyone already did something like this or could give me a hint.
    Thanks to everyone!!!!!

  • Alexander Surov
    AbobA
    Reactions Received
    1
    Posts
    5
    • October 8, 2024 at 8:57 AM
    • #2

    добрый вечер коллега, скажите какой у вас именно контроллер, проблема очень легко решаема

  • XxOnlyInstinctsxX
    Trophies
    1
    Posts
    22
    • October 8, 2024 at 9:19 AM
    • #3
    Quote from XxOnlyInstinctsxX

    im working on a KRC5 KSS8.7

    This is the controller I'm using, do you need some more information?

  • Alexander Surov
    AbobA
    Reactions Received
    1
    Posts
    5
    • October 8, 2024 at 9:34 AM
    • #4
    Quote from XxOnlyInstinctsxX

    This is the controller I'm using, do you need some more information?

    Что?

    Images

    • прижим.PNG
      • 43.56 kB
      • 378 × 425
      • 4
  • Online
    SkyeFire
    Reactions Received
    1,039
    Trophies
    12
    Posts
    9,380
    • October 8, 2024 at 3:03 PM
    • #5
    Quote from XxOnlyInstinctsxX

    IF (Buffer[])==(Substring[])

    That won't work. That's not searching for Substring inside Buffer, it's looking for a complete match -- every character in one string exactly matching every character in the other string.

    It's like programming IF 1==1.00000001 THEN   
    It'll never be True.

    Look up the StrFind() function.

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,033
    • October 8, 2024 at 3:23 PM
    • #6

    to check for specific message one can use function ISMESSAGESET()

    for example if message is KSS15004

    one can write something simple like this, perhaps in Submit:

    $OUT[666]=IsMessageSet(15004)

    more general approach is to use function GET_MSGBUFFER()

    this gets info on all messages that are in the message buffer. however, this requires more processing, message test may not be retrieved etc.

    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

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

Similar Threads

  • ProfiSafe communication error

    • xlyanyura
    • September 21, 2024 at 3:40 PM
    • KUKA Robot Forum
  • Error 6502 - Error during reading of INI files

    • EngineerTex
    • December 1, 2023 at 10:36 PM
    • KUKA Robot Forum
  • KUKA.EthernetKRL and OfficeLite

    • DannyDJ
    • September 24, 2019 at 11:43 AM
    • KUKA Robot Forum
  • sps.sub user PLC section

    • robot-cnc
    • December 29, 2022 at 1:54 PM
    • KUKA Robot Forum
  • KUKA KRC4 Send file from pc

    • EladYahni
    • October 22, 2022 at 1:01 PM
    • KUKA Robot Forum
  • Output after power off

    • Casius
    • September 9, 2017 at 10:50 PM
    • KUKA Robot Forum
  • Reading signal names with ReadCfgData

    • RoboticsMan
    • October 15, 2021 at 12:01 PM
    • ABB Robot Forum
  • How to tell if a connection has already been opened in KUKA.EthernetKRL

    • RoboticsMan
    • April 6, 2021 at 4:34 PM
    • KUKA Robot Forum
  • Explicit Messaging between R30iB and OMRON PLC

    • Famous_Fella
    • March 12, 2020 at 10:24 AM
    • Fanuc Robot Forum
  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