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

Fault-reset from TP-program

  • mfuglsang
  • November 8, 2023 at 4:54 PM
  • Thread is Unresolved
  • mfuglsang
    Trophies
    1
    Posts
    8
    • November 8, 2023 at 4:54 PM
    • #1

    Hi.

    Is it possible to create a TP program that is looking for a specific Error code to apear, and then do a FAULT RESET command, if this error code is active?

    I have a line tracking setup with a CRX-10iA/L.

    Sometimes i get the error code MOTN-370 "Unreachable Track destination".

    This error occures if the target has gone too far downstream, when robot should start the tracking motion.

    Ofcourse the Discard line can be used to avoid the error to appear.

    But i would like to create a small program that are looking for MOTN-370 to appear.

    If this error is active, and DI[115] is ON, i would like to set a FAULT-RESET-command, to clear the robot error.

    I was thinking to create a TP-program with no Group Mask, and "Ignore pause" set to ON.

    In this TP-program i would simply create a loop, and then RUN the program from my Main-prgram.

    I was thinking to use $ALM_IF.$LAST_ERCODE, to read the last error that has occured (MOTN-370 has error code 638517618).

    But i can't figure out how to do a FAULT RESET instruction - if this is even possible from a TP-program?

    UI[5] "Fault reset", is currently mapped to DI[103], where a physical reset button is connected.

    Best regards

    Morten Fuglsang

  • Go to Best Answer
  • Lemster68 November 8, 2023 at 5:07 PM

    Approved the thread.
  • hoitzing
    Reactions Received
    24
    Trophies
    1
    Posts
    128
    • November 9, 2023 at 7:43 AM
    • #2

    Yes resetting a fault from TP is possible, you just have to map UI[5] to a flag, and create a falling-edge on that flag.

    If you want the reset to respond to both the physical reset button (DI[103]) and a software trigger, you could OR both reset inputs:

    * Map UI[5] to any flag F[n]

    * Select another flag as manual software reset trigger, F[m]

    * Run a background logic program to combine both inputs: F[n] = DI[103] OR F[m]

    If you pulse either input, it will result in the fault to be reset.

  • mfuglsang
    Trophies
    1
    Posts
    8
    • November 9, 2023 at 9:15 AM
    • #3

    Thanks for your reply.

    I was starting to look into Karel, for a solution.

    But as i have never created a Karel program, i really would like to solve it by TP-programming. 🙂

    I will try what you suggested.👍

    Do you think I will be able to use $ALM_IF.$LAST_ERCODE, for reading out actual Error-code, and form that execute a FAULT RESET command, if a specific error code appears?

    Regards.

  • hoitzing
    Reactions Received
    24
    Trophies
    1
    Posts
    128
    • November 9, 2023 at 1:56 PM
    • Best Answer
    • #4

    I think it will be possible in TP. If you enabled the error/alarm history variable ($ALM_IF.$ENABLE=TRUE), the current (user) alarms are displayed in the variables. $ALM_IF.$LAST_ERCODE seems to be only on the newer controller versions, but it looks like it works well to identify specific errors. Definitely more useful than $ALM_IF.$LAST_ALM which would require string manipulations.

    If the 'ignore pause' indeed works is something you'll have to test yourself. If not, look into using KAREL with a %NOPAUSE or %NOABORT directive.

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • November 9, 2023 at 6:03 PM
    • #5

    You could also set up a condition monitor to look for this condition.

    in your main program, MONITOR condition_monitor_program

    your condition_monitor_program should look like this:

    WHEN ERR_NUM = 15370, CALL alarm_reset_program

    at the end of your alarm_reset_program, MONITOR condition_monitor_program

  • HalbesYoyo
    Persona non grata
    Reactions Received
    47
    Trophies
    3
    Posts
    151
    • November 16, 2023 at 9:25 AM
    • #6

    Looks like $LAST_ERCODE does not contain the facility code. Does anybody know if there is a list of these codes somewhere or how they are put together?

  • PnsStarter
    Reactions Received
    90
    Trophies
    6
    Posts
    325
    • November 16, 2023 at 10:46 AM
    • #7
    Quote from HalbesYoyo

    Looks like $LAST_ERCODE does not contain the facility code. Does anybody know if there is a list of these codes somewhere or how they are put together?

    Alarm Code List B-83284 (GE;EN) ; B-83284EN-1/08.01

    e.g.

    SRVO-033 Robot not calibrated

    FACILITY_NAMEERROR_CODE_NUMBER
    SRVO (11)033


    Backdate/TP-Tools: A small collection of tools that simplify the commissioning and programming of Fanuc robots. (github.com)

  • HalbesYoyo
    Persona non grata
    Reactions Received
    47
    Trophies
    3
    Posts
    151
    • November 16, 2023 at 11:33 AM
    • #8

    Sorry, I guess I have expressed myself unclearly. The list of facility codes I know where to find. I meant a list of the codes that are displayed in $LAST_ERCODE.

  • PnsStarter
    Reactions Received
    90
    Trophies
    6
    Posts
    325
    • November 16, 2023 at 12:33 PM
    • #9
    Quote from HalbesYoyo

    Sorry, I guess I have expressed myself unclearly. The list of facility codes I know where to find. I meant a list of the codes that are displayed in $LAST_ERCODE.

    Have a look at the attached picture :smiling_face:

    Images

    • Unbenannt21.jpg
      • 210.27 kB
      • 1,920 × 900
      • 32

    Backdate/TP-Tools: A small collection of tools that simplify the commissioning and programming of Fanuc robots. (github.com)

  • HalbesYoyo
    Persona non grata
    Reactions Received
    47
    Trophies
    3
    Posts
    151
    • November 16, 2023 at 1:25 PM
    • #10

    Either I don't get it or something is wrong here:

    The facility code of PROG-048 Shift released should be kind of 3...048 in hex. But the shown $LAST_ERCODE of 67305520 converted to hex is 403030. :thinking_face:

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

  • MOTN-370
  • FAULT-RESET
  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