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. Yaskawa Motoman 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

Shifting multiple times [XRC SV3X]

  • matthias2021
  • September 14, 2021 at 3:57 PM
  • Thread is Unresolved
  • matthias2021
    Trophies
    2
    Posts
    2
    • September 14, 2021 at 3:57 PM
    • #1

    Hello,

    I would like to shift a job multiple times. So it executes a job shifts by e.g. 100mm on the x axis executes the same job and shifts again by 100mm and again and again...

    I tried:

    NOP

    Sfton P100 (P100: X: 100mm rest: 0)

    Call Job

    Sftoff

    END

    NOP

    Sfton P100

    Call Job

    Sfton P100

    Call Job

    Sftoff

    END

    None worked it just shifted once by 100mm..

    Can somebody tell me what I do wrong?

    Thank you very much!

  • TSGIR
    Reactions Received
    81
    Trophies
    6
    Posts
    715
    • September 14, 2021 at 6:51 PM
    • #2

    For correct working do same as below:

    Define two P variable, P099 (X=100, other =0) and P100 (all items zero)

    NOP

    SET B000 0 // reset counter

    SET P100 P099

    *LOOP

    SFTON P100

    CALL JOB:JOB ( your job that will shift)

    ADD P100 P099

    INC B000 // this is a counter

    JUMP *LOOP IF B000<3 // the job will shift for 3 times.

    SFTOFF

    END

  • TSGIR
    Reactions Received
    81
    Trophies
    6
    Posts
    715
    • September 14, 2021 at 7:09 PM
    • #3

    For automatic reset the P100 variable, you can add below code after NOP in first of job:

    SUB P100 P100 // this code zero all items in P100 variable.

  • matthias2021
    Trophies
    2
    Posts
    2
    • September 15, 2021 at 8:34 AM
    • #4

    Works perfect :smiling_face: Thank you

  • Boring_robot_guy
    Reactions Received
    1
    Trophies
    3
    Posts
    36
    • September 15, 2021 at 12:54 PM
    • #5

    You are not able to shift on multiple position variables in the same frame. If you have multiple base frame shift on, the system takes the last one shifted on. You could shift on data in base frame, robot frame and user frame all at once and would work as well.

  • Emre64
    Reactions Received
    1
    Trophies
    3
    Posts
    59
    • September 15, 2021 at 3:23 PM
    • #6

    I use this sample too.

    Thank you TSGIR.

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

Tags

  • motoman
  • yaskawa
  • XRC
  • SV3X

Users Viewing This Thread

  • 1 Guest
  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