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

REAL tag weird problem

  • s2007.ravi
  • July 1, 2017 at 11:38 AM
  • Thread is Resolved
  • s2007.ravi
    Reactions Received
    14
    Trophies
    4
    Posts
    585
    • July 1, 2017 at 11:38 AM
    • #1

    Hi All,

    KRC2
    KSS v5.5

    I have been using REAL variables defined as an array of 2 in $config.dat.

    DECL REAL A_ANG_OFST_A[2]
    A_ANG_OFST_A[1]=-44.4099998
    A_ANG_OFST_A[2]=0.0

    DECL REAL A_ANG_OFST_B[2]
    A_ANG_OFST_B[1]=44.4099998
    A_ANG_OFST_B[2]=0.0

    I am using these variables as an offset to manually input some values to offset the angle of the robot during a calculated motion. These variables are not set anywhere in the program. In order to value them, either I have to use teach pendant variable screen or to change it manually in config and copy the file in the robot. Initially the values set were 0 in these variables.

    Yesterday, the customer had reported that there was a collision on the robot because of the value as can be seen in the above parameters. I triple checked robot code and found that whatever I stated is true and there is no way the values can be changed in the robot program. I asked customer if anybody changed these parameters and got reply that they do not know about these parameters and never altered them.

    I also asked the customer to check these parameters on the robot this morning and the value got changed to 0.15 and -0.15 automatically (Please see attached screenshots).

    I am failed to understand how come these values are getting changed by themselves without any intervention (human or program).

    I request you all experts to throw some light on this issue.

    Thanks

    Images

    • 1.jpg
      • 79.98 kB
      • 581 × 1,032
      • 34
    • 2.jpg
      • 94.87 kB
      • 581 × 1,032
      • 26

    Files

    1.jpg_thumb 20.14 kB – 18 Downloads 2.jpg_thumb 20.67 kB – 18 Downloads
  • Online
    panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,079
    • July 1, 2017 at 2:32 PM
    • #2

    i see that variables are global so any program can see them and - modify them.
    if there was unusual value, it must have gotten there somehow (something or somebody made the change... restore?).


    this is where archive and logviewer come in... you can see all use actions, programs, use full text search to see where it is used and how 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

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,423
    • July 3, 2017 at 12:46 AM
    • #3

    Checking the logs is definitely something you should do.

    One option you could consider is declaring these values as CONST. That would block any changes from the program level. However, it would also block the Variable Monitor from changing their values -- the only way to make changes would be to log in as Expert or higher, open the DAT file, and directly edit the values.

  • s2007.ravi
    Reactions Received
    14
    Trophies
    4
    Posts
    585
    • July 3, 2017 at 9:17 AM
    • #4

    Sirs,

    I checked the logs and couldn't find anything getting written on these variables. I am more than 100% sure of this that the values are not getting changed at program level. However, I cannot say the same for human intervention as I am not on site and the issue is reported by the customer who already denied of any claim of changing these values.

    I like the idea of changing these tags to constants but I am unable to understand why these tags have values other than zero if they were defined in $config with value 0 and not being changed anywhere.

    Can KSS behave in a weird way with REAL variables? :wallbash:

    Thanks

  • Online
    panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,079
    • July 4, 2017 at 2:13 AM
    • #5

    You are the programmer..
    You chose to declare them as - variables.
    By definition variable is something that can change value...
    Variables declared I $Config.dat are global and can be accessed and changed by anything and anyone.


    Someone denies involvement in something that went wrong... What a shocker.... :angel:

    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

  • s2007.ravi
    Reactions Received
    14
    Trophies
    4
    Posts
    585
    • July 4, 2017 at 5:20 AM
    • #6
    Quote from panic mode


    You are the programmer..
    You chose to declare them as - variables.
    By definition variable is something that can change value...
    Variables declared I $Config.dat are global and can be accessed and changed by anything and anyone.

    I understand this. I consider to change these variables to constants at next available opportunity.

    Quote from panic mode


    Someone denies involvement in something that went wrong... What a shocker.... :angel:

    What can we do....Customers are like this many a times... :icon_smile:

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