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

Problems with loading programs

  • Alex_Moser564
  • May 24, 2018 at 11:13 AM
  • Thread is Resolved
  • Alex_Moser564
    Trophies
    3
    Posts
    37
    • May 24, 2018 at 11:13 AM
    • #1

    I have robot KCP2, and made few monthes ago some programs for it and it worked. Now I also want to do some job with it, but it doesn't want to load my programs, made in Powermill.
    It gives me such error:

    Code
    Double declaration Object " S_GUN_NR" already exists. (Module C:\KRC\Roboter\TEMPLATE\GUN_SERVICE.KFD, row 16, definition: Global

    In errorview I see error 2324, col 8 line 2 for file "pr1_ch12bv.src" (Or it could be possible also pr1_ch12bv.dat).
    I add them and other files to archive. I also add GUN_SERVICE.KFD as txt file.

    Files

    pr1_ch12bv.zip 348.44 kB – 11 Downloads gun_service.kfd.txt 3.74 kB – 13 Downloads
  • NoMad
    Trophies
    3
    Posts
    67
    • May 24, 2018 at 11:18 AM
    • #2

    from what i can see the following is wrong in the KFD file:

    you declared a variable 2 times with the same name

    Code
    DECL PARAM [b]S_GUN_NR[/b]={VALUE {NUMBER: min 1, max 2, AUTOLIMIT TRUE},shortname[] "Gun=", shortcut[] "Gun", USERMODE 0}
    ;bei mehreren Zangen
    DECL PARAM [b]S_GUN_NR[/b]={VALUE {NUMBER: min 1, max 2, AUTOLIMIT FALSE},shortname[] "Gun=", shortcut[] "Gun", USERMODE 0}

    try and delete on of these lines and see if it helps

    Kind regards,
    Nomad

  • Alex_Moser564
    Trophies
    3
    Posts
    37
    • May 24, 2018 at 2:27 PM
    • #3

    I've commented that line and after that I don't see that message. But there are another errors:
    HPU /R1/<my filename> 1 compilation error
    there are few files and all with errors: custom, test1, all in that folder.

    When I try to open my file, I receive:
    Line 2, Col. 8, Error 2324, Dual declaration.

  • NoMad
    Trophies
    3
    Posts
    67
    • May 25, 2018 at 8:51 AM
    • #4

    can you post code and photo's?

    Kind regards
    Nomad

  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • May 25, 2018 at 7:44 PM
    • #5

    "Dual declaration" means that you have 2 (or more) Global variables declared with the same name. Each one of those errors points you to the file, and line, where the extra DECL is. You will have to chase down each one and determine how you want to handle the duplicates.

  • Alex_Moser564
    Trophies
    3
    Posts
    37
    • May 26, 2018 at 11:08 AM
    • #6

    Thanks for your attentions very much.
    I add file generated by Powermill and they are not work.
    There are a lot of subprograms because of big files, but only <main> is main and give me an error.

    Images

    • Photo.jpg
      • 505.16 kB
      • 2,592 × 1,936
      • 36

    Files

    PowerMillProgram.zip 172.68 kB – 10 Downloads Photo.jpg_thumb 27.58 kB – 95 Downloads
  • panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,086
    • May 26, 2018 at 2:12 PM
    • #7

    you have same variable declared in both MAIN.SRC and MAIN.DAT
    it is integer variable SPEED_1
    just delete one of the two declarations. in fact, why not just delete the DAT file, has no use here other than creating mentioned conflict

    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

  • Alex_Moser564
    Trophies
    3
    Posts
    37
    • May 26, 2018 at 2:45 PM
    • #8

    Already delated, as before read your topic.
    Thanks, Panic Mode, a lot.
    Now programs are starts to run. :dance2:

    I also wonder, why I have word <INT> (from powermill jenerated program), and if I create module of program, than all words complitly are in red colors? But program is run.

  • Alex_Moser564
    Trophies
    3
    Posts
    37
    • May 26, 2018 at 3:06 PM
    • #9

    I didn't see that problem with IN Speed_1, because to see changes in the program, I need to to restart PC of KUKA bt not only turn off/on supply. Only ater that KUKA saw changes.

    Doess any body know know how to make reboot from KUKA screen? I didn't found it in meny, even from Expert mode.

  • panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,086
    • May 26, 2018 at 4:18 PM
    • #10

    ... there is NO need to reboot...


    just use kuka HMI to copy files and paste them in KRC:\R1\Programs
    if you are transferring more than one module, they need to be transferred in order so that no dependencies are missing.


    alternatively copy them in bulk and when transfer is complete (and all dependencies are available), transfer again or recompile modules that have red "X".


    to force recompile, login as expert, open file and modify it (editor needs to see that "there was a change"). for example add space character (and remove it if you like). then save "change".

    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
  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