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

$ALM_IF variables and reading errors

  • Affaltar
  • January 23, 2023 at 2:29 PM
  • Thread is Unresolved
  • Affaltar
    Reactions Received
    6
    Trophies
    3
    Posts
    43
    • January 23, 2023 at 2:29 PM
    • #1

    Hi, I need to send alarms from robot to plc via modbus. I can't buy more options.
    I got to read $ALM_IF.$LAST_ERCODE and I get unique codes for each alarm in my register. Is there a table to know which error it is? I would like to map some expected errors to simple variables and send anything else as "other error" so our monitoring from PLC can know what's happening.

    If there's a better option to use over modbus I'd love to hear that too. I don't have karel or error code output (or probably any other paid option)

  • Affaltar
    Reactions Received
    6
    Trophies
    3
    Posts
    43
    • January 26, 2023 at 2:14 PM
    • #2

    I found in appendix A of Handling tool manual the explanation how error codes should be assembled, but I can't read it from $ALM_IF


    Alarms I could get easily and the codes in $LAST_ERCODE

    SRVO_001 - 906690561
    SRVO_002 - 906690562
    SRVO_003 - 906690563

    INTP_254 - 101449982

    Is there a list with this encoding of the alarms? So if I know some alarm code I can know the number without reading it there?

  • Affaltar
    Reactions Received
    6
    Trophies
    3
    Posts
    43
    • January 27, 2023 at 11:48 AM
    • #3

    I got another problem, I can't compare this with IF because when I try to enter this code manualy to register or as constant it changes it, probably because of some rounding. All 3 SRVO alarms become 906690560, and INTP_254 changes to 101449982.

    If I leave it like that IF function returns false. I tried to calculate mod 1000 and compare with just last 3 numbers and that works, but I don't know all codes, I don't know if I'll get false alarms with using just last few digits

    So while this "hack" will work and output a last alarm, with probably significnt enough number of digits, I don't know the mapping of it to any real alarms and I'll have to write it manually every time new alarm occurs, so if anyone has a better solution please save me from this :grinning_squinting_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
  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