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

Choose a point through a variable

  • dudz
  • July 21, 2022 at 9:29 PM
  • Thread is Unresolved
  • Online
    dudz
    Reactions Received
    12
    Trophies
    2
    Posts
    65
    • July 21, 2022 at 9:29 PM
    • #1

    I'm trying introduce a logical that's used on Fanuc - PR[Register], is just a POINT that choosen by a register (variable).

    So when the variable = 1 the point is PR[1]

    When the register = 2 the point is PR[2]

    In KUKA, i'm able to do the same thing?

    i looked in the manuals and does not found anything that could help me

    Model: KRC2 - Version KSS 5.5.16

    Thankssss and sorry for the english :grinning_face_with_smiling_eyes:

  • Online
    panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,088
    • July 22, 2022 at 2:52 AM
    • #2

    PTP MyPosition[n]

    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

  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,613
    • July 22, 2022 at 6:23 AM
    • #3

    But you have to declare MyPosition beforehand in the dat file.

    Code
    Decl e6pos MyPosition[10] 
    MyPosition[1]=[x.... 
    MyPosition[2]=[x.... 
    .... 
  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,431
    • July 22, 2022 at 4:00 PM
    • #4

    In Fanuc, Registers (of any type) are system variables, and are global in scope. Fanuc TP does not support creating variables of any kind, you have to use the Registers.

    In KUKA, it's almost the opposite. There are no system variables equivalent to Fanuc PRs. Instead, almost everything in KRL is based on creating your own variables. When you use the pendant menu to create a new move, the point variable (plus some associated variables to contain Tool/Base, accel, approximation, etc for that move) are created automatically. However, it's also possible to create variables "by hand" as well.

    KUKA programs are organized as Modules. Usually, a Module consists of an .SRC file for executable code, and a .DAT file for storing that Module's variables (like points). Normally, variables in a .DAT file are "local", only available to routines in that Module's .SRC file. So two different Modules could have points named P1, and those points would be completely separate, despite having the same name.

    The exceptions are:

    1. Variables DECL'd in $CONFIG.DAT are automatically Global. This is the old way, still works but not the best idea
    2. Variables in program Modules that are DECL'd with GLOBAL prefix. This is newer. Does require the .DAT file to be set PUBLIC
    3. The latest versions of KSS (you didn't mention what KSS version you have) apparently have a Global file for creating Global points, and when you create a point via the pendant menus you get the option to make it Global or Local. I haven't used this yet, so am not familiar with it.
  • Online
    dudz
    Reactions Received
    12
    Trophies
    2
    Posts
    65
    • July 22, 2022 at 6:26 PM
    • #5

    Thanks guys :winking_face:

    Quote from SkyeFire
    1. The latest versions of KSS (you didn't mention what KSS version you have)

    Actually I mentioned, is KSS 5.5.16

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,431
    • July 22, 2022 at 10:20 PM
    • #6
    Quote from dudz

    Actually I mentioned, is KSS 5.5.16

    So you did. I missed that. KSS 5.5 supports DECLing variables as GLOBAL, but does not have the "global points" file or supporting logic.

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

  • array/grid-wise measurement with kuka robot

    • El_Mo
    • June 25, 2022 at 3:43 PM
    • KUKA Robot Forum
  • KRC2 palletiziing robot doing different movements in step by step mode than in continuous mode

    • robotecnik
    • May 7, 2020 at 6:57 AM
    • KUKA Robot Forum
  • Stream variables values to an external secondary HMI display

    • Marco
    • October 13, 2019 at 5:34 PM
    • KUKA Robot Forum

Tags

  • KUKA
  • KRC2
  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