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. ABB 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 signal names with ReadCfgData

  • RoboticsMan
  • October 15, 2021 at 12:01 PM
  • Thread is Unresolved
  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • October 15, 2021 at 12:01 PM
    • #1

    Hi!

    I am trying to make a program that can read the names of the available inputs and outputs on the robot, using the "ReadCfgData" command. The names are then displayed in a list, so that the user can choose which inputs/outputs to use for what, when the robot program is set up.

    This works fine when it is simulated in RobotStudio, but on some real robots it doesn't work. We recently had a case where it gave us the following error message:

    "

    40747: Access Error

    Description

    Task T_ROB1

    Cannot read or write to the system parameter Attribute. The parameter is internal and protected from reading and writing.

    Program ref: /SBase/GetExistingIONames/ReadCFGData/4747

    Actions

    Recovery: ERR_CFG_INTERNAL

    "

    The code for reading the signal names looks like this:

    Code
    FOR nIndex FROM 1 TO nMaxSignalIndex DO
      ReadCfgData "/EIO/EIO_SIGNAL/SignalType/"+sSignalTypeString,"Name",sSignalName\ListNo:=nListIndex;
      ReadCfgData "/EIO/EIO_SIGNAL/"+sSignalName,"Device",sDeviceName;
      IF (sDeviceName<>"PANEL") AND (sDeviceName<>"DRV_1") AND (sSignalName<>"") THEN
        sSignalList{nSignalsRead}:=sSignalName;
      ELSE
        Decr nSignalsRead;
      ENDIF
    
      IF (nListIndex=-1) THEN
        RETURN nSignalsRead;
      ENDIF
      Incr nSignalsRead;
    ENDFOR
    Display More

    sSignalTypeString will have one of the values "DI", "DO", "GI", "GO", "AI", "AO". In this particular case (where it failed), the value was "DO".

    We have not been able to figure out what the problem is, and how to solve it. Is it a system setting that we need to change?

    Any help would be greatly appreciated. Thanks in advance!

    /RoboticsMan

    EDIT: Added information: It fails on the first call to ReadCfgData

  • Lemster68
    Reactions Received
    295
    Trophies
    9
    Posts
    2,453
    Blog Articles
    7
    • October 15, 2021 at 3:12 PM
    • #2

    That is probably an instance of the built in safety signals.

  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • October 15, 2021 at 3:16 PM
    • #3
    Quote from Lemster68

    That is probably an instance of the built in safety signals.

    Sooo.... is there anything one can do? It works on some robots, so it is not that it only works in the simulator.

  • SomeTekk
    Reactions Received
    16
    Trophies
    4
    Posts
    201
    • October 22, 2021 at 6:52 PM
    • #4

    A tweaked example from the RAPID Reference manual worked at my place of work, granted it is a RW 5.15 system. Instead of writing to the screen it appends to a text file. It would take just a bit of tweakery to write to a different device.

    PROC rReadIO()

    list_index:=0;

    WHILE list_index<>END_OF_LIST DO

    ReadCfgData "/EIO/EIO_SIGNAL/Unit/PLC","Name",read_str,

    \ListNo:=list_index;

    IF read_str<>"" THEN

    Open "ToolPC:"\File:="IO_Names.txt",io_DeviceName\Append;

    Write io_DeviceName,read_str;

    Close io_DeviceName;

    ENDIF

    ENDWHILE

    ENDPROC

    Edited once, last by SomeTekk: Edit (October 26, 2021 at 12:44 PM).

  • Lemster68
    Reactions Received
    295
    Trophies
    9
    Posts
    2,453
    Blog Articles
    7
    • October 22, 2021 at 7:32 PM
    • #5

    SomeTekk brings up a good point about RW version. Perhaps the ones that you have that do and do not work have differing RW versions? Can you investigate that?

  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • October 25, 2021 at 11:07 AM
    • #6

    Thanks for the answers so far! I think the robot was running a pretty new version of RW. Unfortunately I no longer have access to the robot, but I will keep it in mind the next time I get my hands on a robot with the same problem.

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