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

Variable to keep the error message

  • Fabian Munoz
  • June 19, 2020 at 5:28 PM
  • Thread is Unresolved
  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • June 19, 2020 at 5:28 PM
    • #1

    Hi

    Which is the variable that holds , for example "SRVO-003 Deadman switch released "

    I looked in may places on the variables and I couldn't find it

    Regards

    Retired but still helping

  • scotty
    Reactions Received
    43
    Trophies
    5
    Posts
    497
    • June 19, 2020 at 6:07 PM
    • Best Answer
    • #2

    You need to enable : $ALM_IF.$ENABLE

    Then use for last alarm : $ALM_IF.$LAST_ALM

    for last user alarm: $ALM_IF.$LAST_UALM

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • June 19, 2020 at 6:12 PM
    • #3

    Thanks

    I didn't have the enable TRUE

    Retired but still helping

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 20, 2021 at 12:59 PM
    • #4

    Almost a year later, I'm bringing more questions about $ALM_IF

    I guess there are a couple of ways to read the last alarm (explicit messaging or Karel).

    Any idea how to read the other ones.

    I've been reading about it in the last couple of days (without actually programming) and I can't find anything that can take me directly to $ALM_IF.$CURR_STAT for example

    Any ideas ?

    BTW, the reason that I'm is because we are buying lets say 4 robot for a system with only one pendant. 3 pendants are basically the price of one robot. That makes my life hell and I want to send the PLC-HMI all the info that I can

    Retired but still helping

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • April 20, 2021 at 2:47 PM
    • #5

    What PLC/HMI and comm package are you using?

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

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

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 20, 2021 at 3:27 PM
    • #6

    Allen Bradley with EthernetIP

    We've done a lot of things with explicit messaging and Karel but we still need to do more. Not having pendants on every robot is painful

    Retired but still helping

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • April 20, 2021 at 6:05 PM
    • #7

    I'm pulling the alarm out of a system right now.

    Setup an explicit message with the following parameters, and it will be the current error.

    If the message faults, its because there is no fault active.

    The tag it is writing to is a normal string tag.

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

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

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 20, 2021 at 7:51 PM
    • #8

    Thanks I've got that and I was very excited but how do you get the rest of the $ALM_IF ?

    I'm talking to Fanuc also and seems to me that there is no way you can read a system variable result and put it on a SR[ ]

    Retired but still helping

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,903
    • April 20, 2021 at 8:39 PM
    • #9

    Doesn't look like there is a way to pull out a system var with Ethernet/IP explicit messaging.

    However, you could write a Karel routine that pulls out the $ALM_IF structure, and dumps them into some string registers. Those can be read via explicit messaging.

    EDIT: there is also Explicit Data Access, which allows reads of system vars, but it is also an option.

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

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

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 20, 2021 at 9:32 PM
    • #10

    1) NO pull out system var

    2) THis is the only Karel command that resembles what I want

    GET_VAR Built-In Procedure


    Purpose: Allows a KAREL program to retrieve the value of a specified variable
    Syntax : GET_VAR(entry, prog_name, var_name, value, status)
    Input/Output Parameters:
    [in,out] entry :INTEGER
    [in] prog_name :STRING
    [in] var_name :STRING
    [out] value :Any valid KAREL data type except PATH
    [out] status :INTEGER


    and I have this

    I'm going to try to read it

    3) Fanuc mentioned the EDA but I don't have that option, even that I have EIP

    Thanks Nation

    Retired but still helping

  • scotty
    Reactions Received
    43
    Trophies
    5
    Posts
    497
    • April 20, 2021 at 10:02 PM
    • #11

    I've not used explicit msg a lot. But I use KAREL to read sys vars and based on matches/conditions set a bit or send an error code over GO[*] and another one GO[*] for error type SRVO/MTN/etc. As an option...

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 20, 2021 at 10:44 PM
    • #12

    Hi I'm home now, but I was having a hard time implementing the GET_VAR to read the CURR_STAT. I'm having a compilation error. The examples in the Karel manual are not helping me much

    I'll try again tomorrow morning, so, scotty, if you don't mind check the thread and give me a hand

    Retired but still helping

  • scotty
    Reactions Received
    43
    Trophies
    5
    Posts
    497
    • April 21, 2021 at 12:01 AM
    • #13

    I know it's silly, but you can try this one.

    Files

    get_currStat.txt 730 Byte – 160 Downloads
  • 1Cliff
    Trophies
    3
    Posts
    12
    • April 21, 2021 at 8:50 AM
    • #14

    Other idea (If using Karel):

    Just read 'ERRACT.LS' from memory.

    It contains all the current errors...

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • April 21, 2021 at 4:06 PM
    • #15

    Thanks to scotty I was able to achieve my goals

    The attachment shows what I did for me but also gives a good reference how to read system variables and load them on Rs and SRs

    Karel sample.docx

    Retired but still helping

  • Clark111
    Trophies
    2
    Posts
    2
    • April 30, 2021 at 11:12 PM
    • #16

    Hey,Fabian:

    about the sample,i have a question,I tried it on robotguide, but I couldn't get this parameter well. In addition, I can't find these three parameters in the variables: $ALM_IF.$CURR_PROG, $ALM_IF.$CURR_STAT, $ALM_IF.$CURR_LINE.

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • May 1, 2021 at 8:41 PM
    • #17

    Hi

    Clark111 Welcome to the robot forum

    Can you post a picture of the ALM_IF parameters, What do you see when you go to details ?

    I will check more on Monday. I'm home now

    Retired but still helping

  • Clark111
    Trophies
    2
    Posts
    2
    • May 5, 2021 at 4:28 AM
    • #18

    Hi,sir.Thanks for the reply. Your program is well written, and I can successfully load it. But I did not find in my robot parameters: 1, $ALM_IF.$CURR_PROG; 2, $ALM_IF.$CURR_STAT; 3. $ALM_IF.$CURR_LINE. It should be that the version of my robot and the application are inconsistent with the version you are using.

  • SergeyG
    Trophies
    4
    Posts
    7
    • July 27, 2021 at 9:53 AM
    • #19
    Quote from Fabian Munoz

    BTW, the reason that I'm is because we are buying lets say 4 robot for a system with only one pendant. 3 pendants are basically the price of one robot. That makes my life hell and I want to send the PLC-HMI all the info that I can

    Hi,Fabian.

    what options you install, to not use the pendant?

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • July 27, 2021 at 12:33 PM
    • #20

    hi

    The robot we but mostly (Scara) use the compact controller. The no pendant option is part on the standard package.

    Images

    • 20210727_062830_autoscaled.jpg
      • 143.99 kB
      • 675 × 1,200
      • 34

    Retired but still helping

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