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

Disappearing Positional Variables

  • zim
  • July 26, 2021 at 4:55 PM
  • Thread is Unresolved
  • zim
    Trophies
    2
    Posts
    3
    • July 26, 2021 at 4:55 PM
    • #1

    I'm new to robotics programming and I'm currently fighting with an fs100 to let me program a job the way I want it to.

    I've got a job that sets an i-var before calling a second job, and that second job reads the i-var and moves to the corresponding p-var from the stack of p-vars I stuffed into the header...except that when I load the second job file into motosim it drops all p-vars from the header that I haven't specifically called in that job (P010 stays because I use MOVJ P010 VJ=20.00, but P003 seems to disappear because I only ever call MOVJ P[I000] VJ=20.00 that might equal P003). Is there a way around this or am I fighting a losing battle for the sake of a cleaner job file by not using a giant switchcase for a single move command?

    Code: MAIN
    SET I000 3
    CALL JOB:SUB
    Code: SUB
    MOVJ P010 VJ=20.00
    MOVJ P[I000] VJ=20.00
  • 95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • July 26, 2021 at 5:15 PM
    • #2

    except that when I load the second job file into motosim.

    Do you mean loading from EX MEMORY? If so, is the header actually formatted correctly with the correct number of NPOS?

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • zim
    Trophies
    2
    Posts
    3
    • July 26, 2021 at 5:22 PM
    • #3

    Yes, as far as I can tell. I give it ///NPOS 0,0,0,22,0,0 and it rewrites it to ///NPOS 0,0,0,4,0,0 and drops all unspecified p-vars. I haven't had any luck finding documentation on header configuration though, so that was a line I had to stumble my way on to figuring out.

  • 95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • July 26, 2021 at 6:17 PM
    • #4

    The controller is dropping those addresses that are not directly addressed in the job.

    We use the indirect addressing with the p-variables so that we can dump a standard job into many controllers without overwriting the variables. The programmer or the job then needs to set up the position.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,490
    Blog Articles
    7
    • July 26, 2021 at 6:48 PM
    • #5

    Maybe you could have the moves tacked onto the end of the job and just jump over them to the job end.

  • zim
    Trophies
    2
    Posts
    3
    • July 27, 2021 at 6:39 PM
    • #6

    The jump trick definitely works, thanks for that, and it looks like I'll probably go with that as its a lot cleaner than the switchcase I was using before, or worse, the separate job files that came before me; I just wish there was a way around having unused lines of code in the job file. When you've got 9 pairs of nearly identical movements to choose from, it seems like overkill to have to initialize each one every time just in case its used.

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

  • position
  • FS100
  • offline programming
  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