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

FANUC Registers acting as an inputs, stores values and execute in the code

  • NathanJo
  • September 2, 2024 at 10:24 AM
  • Thread is Unresolved
  • NathanJo
    Posts
    68
    • September 2, 2024 at 10:24 AM
    • #1

    How can I associate a register with a particular variable? What steps do I need to take to set a register as an input for the code?

    For instance, as an example

    1. if I want to boost the grinding speed, I would choose a register to represent that variable.

    2. If I need to use the height and diameter of a part as variables, how can I allocate two registers for them and reference them in the code?

    Is there a specific approach to this, or do registers automatically function as inputs?

    Edited once, last by NathanJo (September 2, 2024 at 10:41 AM).

  • YakawFaBB
    Reactions Received
    12
    Trophies
    1
    Posts
    67
    • September 2, 2024 at 2:44 PM
    • #2

    Hi NathanJo,

    You want to modify system variable ? if you need input data for example, you need to use Karel Program.

  • NathanJo
    Posts
    68
    • September 2, 2024 at 3:29 PM
    • #3
    Quote from YakawFaBB

    Hi NathanJo,

    You want to modify system variable ? if you need input data for example, you need to use Karel Program.

    I think I made an error when I mentioned a "variable."

    It's not related to system variables; it's more about this concept.

    I need to modify the grinding speed and angles, selecting, for instance, three different types of rings for grinding. These are the real variables, not the system ones.

    I've allocated some registers for this purpose.

    When the user enters data through the HMI, how do the registers interact with the HMI to store data and execute the robot's code?

    Images

    • 20240902_151959.jpg
      • 406.97 kB
      • 1,200 × 1,600
      • 7
    • 20240902_152635.jpg
      • 232.62 kB
      • 1,707 × 1,200
      • 8
  • gpunkt
    Reactions Received
    119
    Trophies
    6
    Posts
    456
    • September 2, 2024 at 3:48 PM
    • #4

    The data that is being input on the HMI need to get to the robot somehow. Normally, one would use some sort of I/O-communication, preferably some sort of bus communictaion such as Profinet or Ethernet/IP.

    Then, the values from the HMI will be sent to the robot in the form of Group Inputs (GI[n]).

    These GIs needs to be read, and the values needs to be written to the specified register. This can be done either in the robot program, or in a background program (BG Logic). The difference is wheter or not this needs to be done cyclic (each ITP scan = 8ms) or if it's only necessary to read the input right before performing the motions.

    The syntax for reading a GI and writing the value to an R-register is however the same:

    Code
    R[10:input from HMI]=GI[10:Input from HMI]
  • gustavxb
    Reactions Received
    3
    Trophies
    1
    Posts
    14
    • September 2, 2024 at 3:51 PM
    • #5

    Everything really depends on what communication protocol you plan on using between the HMI and Robot.

    I usual use Group signals for this type of Data exchange.

  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,506
    • September 3, 2024 at 5:33 PM
    • #6

    Once you have determined how you will set the registers, then in you code, you can use the register for your feed rate.

    Such as:

    Code
       1:  R[150:Grinder Speed]=GI[5:Grinder Speed]    ;
       2:L P[1:          ] R[150:Grinder Speed]mm/sec CNT5    ;

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

Tags

  • Fanuc
  • LRmate-200iD7L
  • counting
  • registers
  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