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

Point information.

  • christiansalazar2
  • February 21, 2024 at 5:52 PM
  • Thread is Unresolved
  • christiansalazar2
    Reactions Received
    1
    Trophies
    1
    Posts
    6
    • February 21, 2024 at 5:52 PM
    • #1

    I have a robot that has around 100+ points per program.

    A peripheral system using LabView needs to know what point the robot is currently at.

    For example, on P[1] after it executes a joint move, I add another line below that and move a 1 into a register.

    and when the robot goes to P[2] I add another line below the move and move a 2 into the same register.


    This essentially tells the LabView system what point the robot is on. However, this is very monotonous work, and I was wondering if there is already a system variable that updates a value for whatever P[#] the robot is on.

    Any help would be appreciated.

  • massula February 21, 2024 at 6:22 PM

    Approved the thread.
  • cther
    Reactions Received
    1
    Trophies
    2
    Posts
    21
    • February 21, 2024 at 8:28 PM
    • #2

    There is $ALM_IF.CURR_LINE which updates according to the program line the robot is on. If P[17] with FINE instruction is on line 56, then if $ALM_IF.CURR_LINE > 56 and $ALM_IF.CURR_PROG = "Your program name of interest", you know the robot reached P[17] successfully.

    If your program is quite simple with a lot of positions and no change in speed or CNT instructions, you could also do something like this:

    Code
    FOR R[1:Position Index]=1 TO 100
    PR[1:Position Buffer]=P[R[1:Position Index]]
    L  PR[1:Position Buffer] 100mm/sec FINE
    ENDFOR
  • christiansalazar2
    Reactions Received
    1
    Trophies
    1
    Posts
    6
    • February 21, 2024 at 8:51 PM
    • #3

    Thanks, I ended up using the call program feature.

    How it works is after every point P [#] I have a line of code underneath it that calls a program named "counter".

    Counter just takes register 4 and adds 1 to it. R [4] +1=R [4] this way after every point in the program it updates register 4. It worked well.

  • Shellmer
    Reactions Received
    52
    Trophies
    5
    Posts
    161
    • February 25, 2024 at 7:04 AM
    • #4
    Quote from christiansalazar2

    Thanks, I ended up using the call program feature.

    How it works is after every point P [#] I have a line of code underneath it that calls a program named "counter".

    Counter just takes register 4 and adds 1 to it. R [4] +1=R [4] this way after every point in the program it updates register 4. It worked well.

    You can add that call to the point itself instead of adding a new line with the call, this is done using the "distant before" modifier, or any other modifier like "time before"

    The diference betwheen doing it this way or directly calling it on the next line is that using your way, program pointer will go forward and execute 2 or 3 of this call instructions before the robot reaches the first motion point (if not using fine). With distance before you can configure it to trigger when there robot is at a distance of X mm from that executed point.

    Also... take in mind that both ways are pretty inneficient as every call introduce a delay of 4ms betwheen the call procedure and the code execution of that call content. Same happens with jumps, so with ennough jumps and calls on a segment the generated delay can be pretty noticeable and even make the robot stop while processing these calls, evfn if you use cnt100 as termination.

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

  • Position Register Transfer

    • MMCINTIRE
    • February 27, 2020 at 3:13 PM
    • Fanuc Robot Forum
  • Fanuc SR-3iA Issues with User Frame origin points

    • IreshCreem
    • December 19, 2023 at 10:14 PM
    • Fanuc Robot Forum
  • KSS 8.x: C_DIS vs C_PTP

    • SkyeFire
    • June 3, 2014 at 6:05 PM
    • KUKA Robot Forum
  • Calculating Forward kinematics connection between theory and practice on example of KUKA robot

    • Askic
    • February 7, 2023 at 1:32 PM
    • Robot Geometry, Linear Algebra, Forward and Inverse Kinematics
  • How to use points in sub programs

    • robotecnik
    • July 27, 2022 at 3:41 PM
    • Fanuc Robot Forum
  • Algorithm for Recording Unspecified Number of Points KRC2

    • EngineerTex
    • April 7, 2021 at 12:36 AM
    • KUKA Robot Forum
  • Circular Parameter Inadmissible error, Brings robot to a halt.

    • Asylum2021
    • February 12, 2021 at 10:29 AM
    • KUKA Robot Forum
  • Absolute Accuracy Info KRC2 - KRC4

    • Razzzhead
    • November 16, 2020 at 8:33 PM
    • KUKA Robot Forum
  • Any Kuka KMP 1500 experts ?

    • SavageInT1
    • May 22, 2020 at 8:46 AM
    • General Discussion of Industrial Robots Only
  • Integrating the Beckhoff CX5140 with FANUC R30iBP

    • MMCINTIRE
    • February 11, 2020 at 6:09 PM
    • Fanuc Robot Forum

Tags

  • roboguide
  • REGISTER
  • System Variable
  • system variables
  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