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. Fanuc 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

system variables for userframe position

  • zhaoxiang chen
  • July 22, 2020 at 4:35 PM
  • Thread is Unresolved
  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 22, 2020 at 4:35 PM
    • #1

    hi Guys,

    I am looking for a system variable that given the userframe position(x,y,z). does any expert happen to know the answer?

    (I mean the current position using userframe coordination instead of the position of userframe.)

    best regards,

    Chen

    Edited once, last by zhaoxiang chen (July 22, 2020 at 4:55 PM).

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • July 22, 2020 at 4:47 PM
    • #2

    $MNUFRAME[1,x] where x is the uframe number

  • Mastro_18
    Trophies
    3
    Posts
    19
    • July 22, 2020 at 4:49 PM
    • #3

    Hey Chen, I am not sure what you need the user frame values for but can you not use your position in world.

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 22, 2020 at 4:50 PM
    • #4
    Quote from TitusLepic

    $MNUFRAME[1,x] where x is the uframe number

    sorry for my misleading question statement. I mean the current position using userframe coordination instead of the position of userframe.

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 22, 2020 at 4:54 PM
    • #5
    Quote from Mastro_18

    Hey Chen, I am not sure what you need the user frame values for but can you not use your position in world.

    hey Mastro,

    currently, I am using positioner's userframe. Thus, the xyz UF position is very different than WF position when positioner starts rotatation.

    regards,

    Chen

  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,506
    • July 22, 2020 at 10:35 PM
    • #6

    UFRAME=X

    PR[Y]=LPOS

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 23, 2020 at 10:04 AM
    • #7
    Quote from pdl

    UFRAME=X

    PR[Y]=LPOS

    hi pdl,

    thanks for your reply, but I am looking for the system variable only.

    regards,

    Chen

  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,506
    • July 23, 2020 at 3:58 PM
    • #8

    What are you trying to accomplish?

    Why try and reinvent the wheel when you can just use the tools that are made easily available?

  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • July 23, 2020 at 6:01 PM
    • #9

    Search the forum for mch_pos

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • July 23, 2020 at 11:10 PM
    • #10

    $SV_INFO[1].$CART_POS ARRAY[6] OF REAL is the actual position in the World coordinates.

    $SV_INFO[1].$CART_POS_UF ARRAY[6] OF REAL is the actual position in the active User Frame.

    User Frame #0 is the same as World.

    Do it well right away. It will become bad by itself.

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • July 23, 2020 at 11:14 PM
    • #11
    Quote from pdl

    What are you trying to accomplish?

    Why try and reinvent the wheel when you can just use the tools that are made easily available?

    For BG logic, for instance.

    It does not support position registers, hence cannot use PR[n}=LPOS instruction.

    Do it well right away. It will become bad by itself.

  • dudi
    Trophies
    3
    Posts
    3
    • July 24, 2020 at 4:12 AM
    • #12

    Hey Chen,

    I don't think that such a variable exist.

  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,506
    • July 24, 2020 at 5:05 AM
    • #13

    Thank you for explaining that this is for BG Logic. That makes sense why you want to look at a variable and not a PR. Just remember that mch_pos does not update while jogging.

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • July 24, 2020 at 1:35 PM
    • #14
    Quote from dudi

    I don't think that such a variable exist.

    Funny to see this written after I already posted the requested variable.

    Yes, it's missing in older software versions, but the OP did not specify this.

    Do it well right away. It will become bad by itself.

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 24, 2020 at 3:29 PM
    • #15
    Quote from pdl

    What are you trying to accomplish?

    Why try and reinvent the wheel when you can just use the tools that are made easily available?

    hi pdl,

    i am not talking about TP program, but using data monitor to record the position during robot movement. System variables can use as an item for data monitor and recording.

    regards,

    Chen

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 24, 2020 at 3:30 PM
    • #16
    Quote from HawkME

    Search the forum for mch_pos

    based on my understanding, mch_pos shows current position in world frame only.

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • July 24, 2020 at 3:40 PM
    • #17
    Quote from Sergei Troizky

    $SV_INFO[1].$CART_POS ARRAY[6] OF REAL is the actual position in the World coordinates.

    $SV_INFO[1].$CART_POS_UF ARRAY[6] OF REAL is the actual position in the active User Frame.

    User Frame #0 is the same as World.

    hi Troizky,

    thanks for your reply.

    the general purpose is to record the coordination of current position in user frame during the robot movement with data monitor. data monitor is an option that able to record register, real, axis and I/O. System variables can use as real for recording in data monitor. thus, i am looking for a system variable only.

    your suggestion is applied in KAREL program i assume, but if checking my system variables in teach pendant, i cannot find $cart_pos_ufarray unfortunetly.

    regards,

    Chen

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • July 24, 2020 at 6:00 PM
    • #18

    What is your controller and the software version?

    I have it on TP in v9, but it does not exist in earlier versions.

    Do it well right away. It will become bad by itself.

  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • July 24, 2020 at 7:41 PM
    • #19

    You are right, mch_pos is relative to current Tool frame, but only in world frame. The SV_info varible looks interesting but not available on v8 or older.

    If you know mch_pos and current user frame values then perhaps you could do the matrix transformation to calculate the position.

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • July 25, 2020 at 3:18 PM
    • #20
    Quote from HawkME

    If you know mch_pos and current user frame values then perhaps you could do the matrix transformation to calculate the position.

    Is this doable in TP program syntax?

    Do it well right away. It will become bad by itself.

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

  • Operator friendly recovery from process interruptions

    • bgmathes
    • June 25, 2020 at 1:42 PM
    • Fanuc Robot Forum
  • Offset, PR[x] behavior

    • arikrundquist
    • June 25, 2019 at 12:43 AM
    • Fanuc Robot Forum
  • Robot not moving correctly (Cartesian koo. system)

    • leeroi
    • November 7, 2018 at 11:22 AM
    • Yaskawa Motoman Robot Forum
  • World zones in R30i B

    • Plc_User
    • January 12, 2017 at 9:47 AM
    • Fanuc Robot Forum

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