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

ZIgZag Step simple program example

  • Wellrick
  • July 23, 2021 at 4:18 PM
  • Thread is Unresolved
  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 23, 2021 at 4:18 PM
    • #1

    I was hoping that someone could show me a simple program. I'm trying to y+1000, x-10, y-1000, x-10, from top to bottom for 3 feet. Much appreciated

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,423
    • July 23, 2021 at 4:23 PM
    • #2

    That depends entirely on what brand and model robot you're using.

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 23, 2021 at 4:25 PM
    • #3

    Abb irc5.

  • SkyeFire July 23, 2021 at 4:26 PM

    Moved the thread from forum General Discussion of Industrial Robots Only to forum ABB Robot Forum.
  • SharplesR
    Reactions Received
    6
    Trophies
    4
    Posts
    443
    • July 23, 2021 at 7:57 PM
    • #4

    Your question is not at all clear. My guess is that you want to draw a rectangle at some height, then increment up and do it again, until reaching a height of 3 feet. Here is the offset path for the first rectangle.

    MoveL Offs(pYourRobtarget,0,0,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,0,1000,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,10,1000,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,10,0,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,0,0,0),v100,fine,tUserTool0;

    You can achieve your desired behavior by simply repeating these lines, with incrementally larger values in the Z field.

    If your goal is to achieve the described behavior with as few lines as possible, then you could put this sequence in a FOR loop or a WHILE loop. You could then increment either the original robtarget's Z position, or the workobject's Z definition, until the Z reaches some desired height, at which point it would be reset.

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 23, 2021 at 8:31 PM
    • #5

    I want to start at the top of a rectangle y+1000, x-10, y-1000, x-10 all the way down the length of the rectangle every time it goes across the length it drops 10 mm until it gets to the bottom. I think I need a variable in the program to add the 10 mm increments.

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 23, 2021 at 8:42 PM
    • #6

  • SharplesR
    Reactions Received
    6
    Trophies
    4
    Posts
    443
    • July 24, 2021 at 3:15 PM
    • #7

    PROC your_proc()

    VAR num Offset:=0;

    VAR num Increment:=10;

    VAR num TotalDistance:=1000

    While Offset < TotalDistance DO

    MoveL Offs(pYourRobtarget,Offset,0,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,Offset,1000,0),v100,fine,tUserTool0;

    Offset:=Offset+Increment;

    MoveL Offs(pYourRobtarget,Offset,1000,0),v100,fine,tUserTool0;

    MoveL Offs(pYourRobtarget,Offset,0,0),v100,fine,tUserTool0;

    Offset:=Offset+Increment;

    ENDWHILE

    Offset:=0;

    ENDPROC

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 24, 2021 at 6:41 PM
    • #8

    Thanks man works great. One more question. How would I include the track movement into this program? Would I add another robtarget? How would this effect the total distance?

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 24, 2021 at 6:42 PM
    • #9

    Or would I change total distance to second robtarget

  • SharplesR
    Reactions Received
    6
    Trophies
    4
    Posts
    443
    • July 24, 2021 at 7:25 PM
    • #10

    what track movement?

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 24, 2021 at 7:48 PM
    • #11

    The robot is on a 40" track

  • Wellrick
    Reactions Received
    1
    Trophies
    2
    Posts
    38
    • July 24, 2021 at 7:54 PM
    • #12

    Like if I want to use this program format on a part 20" wide. The 10mm offset basically never changes. It's the overlap for spray. The width and height changes daily. With what you gave me I'll be able to do anything within the robots arm reach. I was wondering how to incorporate the robot sliding down the track into a similar program.

  • SharplesR
    Reactions Received
    6
    Trophies
    4
    Posts
    443
    • July 24, 2021 at 11:10 PM
    • #13

    Yeah, adding another While loop that uses a second robtarget would work. That way you don't have to worry about the track being jerky as you try to increment the track position.

    I'm not aware of a way to have the track move at a smooth speed down the rail while the robot is executing paths.

  • Fabian Munoz July 25, 2021 at 2:22 AM

    Changed the title of the thread from “Programming” to “ZIgZag Step simple program example”.
  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,423
    • July 26, 2021 at 10:55 PM
    • #14

    The command EOffsSet might do the trick.

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

  • Turn off Multifunction Speed option

    • BrandonA
    • July 20, 2021 at 6:10 PM
    • Kawasaki Robot Forum
  • Kuka Motion Programming

    • shriraj lonkar
    • July 21, 2021 at 5:54 AM
    • KUKA Robot Forum
  • Kuka Motion Programming

    • shriraj lonkar
    • July 20, 2021 at 6:00 AM
    • KUKA Robot Forum
  • Kuka Message Programming

    • masterrobot
    • July 19, 2021 at 2:23 PM
    • KUKA Robot Forum
  • Learning to use KRL & RobotStudio

    • afroki_96
    • July 2, 2021 at 9:39 AM
    • General Discussion of Industrial Robots Only
  • Time controlled motion

    • Anirudh
    • June 24, 2021 at 11:49 AM
    • KUKA Robot Forum

Users Viewing This Thread

  • 13 Guests
  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