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

Modify all points

  • Serpantinas
  • August 8, 2016 at 11:20 AM
  • Thread is Resolved
  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • August 8, 2016 at 11:20 AM
    • #1

    Hello,

    got a short question about syntax. How can I adress all points in program? Hope example will make clearer what I want.
    Lets say points created by inline forms and I want them all to be in one plane, so I want all points to have Z=0. How to do this in for loop?

    FOR J=1 to 15
    XP1.Z=0 ; how to change 1 to J(what syntax) that controler would understand.
    ENDFOR

    I hope someone understands because explanaition was confusing. :icon_confused:

    Thanks

  • Metalikooky
    Reactions Received
    2
    Trophies
    3
    Posts
    78
    • August 8, 2016 at 3:10 PM
    • #2

    That I can think of, you can't directly do this with the points created in an inline form. The point names could not be referenced in a FOR loop. HOWEVER, you could make those points equal to another set of points that are declared as an array. And then individually copy the array variable into the inline form point data before moving to that point.

    For example, declare an array position variable to whatever length you might need:

    Code
    DECL E6POS posVar[10] ;Using a length of 10 just as an example.

    When you create a point using an inline form, copy that point data back into the associated posVar[] array position. Once you're done with your path, you would simply add the following code to the top of your program:

    Code
    FOR idx = 1 TO (index length)
       posVar[idx].Z = 0
    ENDFOR

    And then copy the array variable into each associated inline form point before moving to that point:

    Code
    XP1 = posVar[1]
    LIN XP1 ... (I don't have the complete syntax of the inline form memorized.)

    It's clunky, but I think it's really the only way to do what you're trying to do.

  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • August 9, 2016 at 7:29 AM
    • #3

    Thank you, I expected something simplier maybe with variable type convertion but nontheless I'll try your smart method. The point creation could be easier especially when programing not only with inline forms, but I gues most programing is done offline anyways.

  • BluesMatt
    Reactions Received
    1
    Trophies
    3
    Posts
    176
    • August 9, 2016 at 2:34 PM
    • #4

    Here's a different suggestion....

    Why not use OrangeEdit's search and replace function?

    Building robotic welding systems.

  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • August 9, 2016 at 3:46 PM
    • #5

    Oh man.. you, this forum and this program is life savior(it's hard when you start form scratch with KUKA and don't know esential tools and programing language despite having advanced knowlage in robotics), I just thought is there beter editor where you can see structure better. I'll look into that function and I think it will be perfect. Thanks.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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