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

Stop the program by GUI Button

  • michaelwisetec
  • April 28, 2025 at 12:27 PM
  • Thread is Resolved
  • michaelwisetec
    Posts
    2
    • April 28, 2025 at 12:27 PM
    • #1

    Hello to everyone!

    I've created a custom GUI that runs different programs on my CRX (the GUI done on TP, so it can suit every Fanuc robot).
    I want to stop program execution when I press Stop button on my GUI - how should I implement it?

    Thanks for help! :smiling_face:

  • Go to Best Answer
  • Lemster68 April 28, 2025 at 1:45 PM

    Approved the thread.
  • Nation
    Typical Robot Error
    Reactions Received
    542
    Trophies
    9
    Posts
    1,924
    • April 28, 2025 at 4:20 PM
    • #2

    Drop the HOLD uop for a few hundred milliseconds. That will stop the robot, with the option to resume.

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

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

  • michaelwisetec
    Posts
    2
    • April 30, 2025 at 6:52 AM
    • Best Answer
    • #3

    Thanks a lot, but it pauses the robot and the program, but I want to abort it.

    I found the solution:

    1. Menu>System>Config
    2. Find the CSTOPI for ABORT and set it TRUE.
    3. Below Stop all programs set to TRUE.
    4. Remap UI[4] to some flag
    5. When the user press STOP button on the custom GUI, just set the flag HIGH for 300-400 ms.
  • michaelwisetec April 30, 2025 at 6:53 AM

    Selected a post as the best answer.
  • sborchshev
    Reactions Received
    4
    Trophies
    2
    Posts
    39
    • May 5, 2025 at 5:37 PM
    • #4

    Make less sense to abort your program with GUI button. It will complicate homing of the robot to restart next cycle. Instead, you want to pause it and then finish up the home position.

    If immediate stop is not desired I would throw a flag with GUI button and if I see it in the program let the robot finish the program and stop.

    If the goal is to stop the robot where it is, I would definitely paused it listed of terminating.

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

  • Disabling ethernet errors does not work for Ethernet KRL 3.2

    • RoboterEST
    • September 28, 2022 at 6:53 AM
    • KUKA Robot Forum
  • Robot newbie on a used robot with no support trying to get past frequent SRVO-004 Fence Open, SRVO-199 Control Stop, etc

    • eklug
    • December 6, 2023 at 10:45 PM
    • Fanuc Robot Forum
  • Interrupt not working when program is stopped

    • Xerces
    • August 14, 2019 at 6:31 PM
    • KUKA Robot Forum
  • fanuc contact stop function

    • shriraj lonkar
    • August 19, 2022 at 7:02 PM
    • Fanuc Robot Forum
  • KRL Styleguide

    • Hes
    • October 29, 2022 at 1:10 PM
    • KUKA Robot Forum
  • Problem with HRC safety configuration in Sunrise Workbench for manual guidance of KUKA IIWA 7 R800 robot.

    • empowered
    • July 22, 2022 at 9:05 AM
    • KUKA LBR IIWA
  • Program stuck executing motion command (LIN_REL), but robot is not moving.

    • RoboterEST
    • July 15, 2021 at 8:50 AM
    • KUKA Robot Forum

Tags

  • #fanuc
  • #custom_gui
  • #gui
  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