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

Change Configuration of a PR[] in Program

  • joaofidalgo
  • August 4, 2015 at 2:49 PM
  • Thread is Resolved
  • joaofidalgo
    Guest
    • August 4, 2015 at 2:49 PM
    • #1

    Hi guys,

    Hi need change a configuration of joints in a program, like we can make PR[10,4]=10; something like that but i can´t find information how I can change CONF: NUT to FUT in program... I kown i can chage it in TP when I define PR[]... But I need kown if it possible change it by program language!

    Thank´s in advance :)!

    Images

    • FDB.jpg
      • 106.34 kB
      • 678 × 472
      • 45
    • NUT.jpg
      • 101.82 kB
      • 676 × 457
      • 40

    Files

    FDB.jpg_thumb 21.45 kB – 627 Downloads NUT.jpg_thumb 21.6 kB – 620 Downloads
  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • August 4, 2015 at 4:06 PM
    • #2

    Create some setup PR's of all zeros for each config you want. Then set your PR = that setup PR in your program, and modify as needed.

    It is not a direct method but works. I also recommend having one set up as joint representation.

    Sent from my VS985 4G using Tapatalk

  • joaofidalgo
    Guest
    • August 4, 2015 at 5:18 PM
    • #3

    Hi HawkME,

    That is what im doing now, the problem is when you load a program to a new robot you need to configure that points in robot... I want do it in program...

  • Nation
    Typical Robot Error
    Reactions Received
    524
    Trophies
    9
    Posts
    1,903
    • August 4, 2015 at 5:53 PM
    • #4

    You can also assign PRs to points in a program (e.g. PR[100]=P[1]), so you could make a program with some dummy points in it with different configurations.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • vipinpunneri
    Reactions Received
    6
    Trophies
    3
    Posts
    137
    • August 5, 2015 at 3:02 AM
    • #5

    You can change the joint configuration. Goto edit and move the cursor to P[] then select position press F5 for joint and Cartesian options. Select Cartesian then press config.

    Thanks regards<br />Vipin..

  • zhaoxiang chen
    Trophies
    3
    Posts
    43
    • October 27, 2020 at 11:05 AM
    • #6

    hi joaofidalgo,

    i met similar issue recently, thus would like to know if you have found better solution for that?

  • Famous_Fella
    Reactions Received
    25
    Trophies
    4
    Posts
    131
    • October 30, 2020 at 10:43 AM
    • #7

    in a PR the first 6 data are X, Y, Z, w, p, r the 7th data is the position config which is not directly accessible with TP language, nor by inderect addressing (PR[2,7] = [PR1,7]) but only with the use of Karel routine which doesn't really worth the effort. The best way is to make a point in the config you want and copy it in the PR before loading each of the 6 values of positions (XYZwpr).

  • Sangito
    Reactions Received
    1
    Trophies
    3
    Posts
    2
    • November 3, 2020 at 2:48 PM
    • #8

    Soo Far i use the Karel to initiate a config var like in the manual, but I didin't find how to push it on a XYZWPR var.

    I think i will be in obligation to translate into a position data type to use it.

    VAR

    config_var1, config_var2: CONFIG

    pos_var: POSITION

    seam_path: PATH

    i: INTEGER

    BEGIN

    config_var1 = pos_var.config_data

    config_var1 = config_var2

    config_var1.cfg_turn_no1 = 0

    IF pos_var.config_data.cfg_flip THEN...

    FOR i = 1 TO PATH_LEN(seam_path) DO

    seam_path[i].node_pos.config_data = config_var1

    ENDFOR

    In hope it will help you.

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