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. Kawasaki 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

How to generate robot errors using AS language

  • Seongku Kim
  • October 19, 2023 at 12:38 AM
  • Thread is Unresolved
  • Seongku Kim
    Trophies
    1
    Posts
    8
    • October 19, 2023 at 12:38 AM
    • #1

    I would like to generate a robot error or alarm using AS language. For example, I want to generate an alarm when the motor current or torque of axis 1 is outside a certain range, but I don't know how to program it. The after-sales service manual is too limited. Is there a way to read the robot's current motor current value and generate an alarm using that data?

    How to display W error code without the robot stopping

    I'm looking at the formula string of the PC software that checks the robot's current status, but I can't figure out how to create the formula or what data to load.

    Also, I don't understand how to read the motor current values of the robot's 1-6 axes from the PC;;;;

  • 95devils October 19, 2023 at 12:59 AM

    Approved the thread.
  • dm.bogachev
    Reactions Received
    45
    Trophies
    2
    Posts
    87
    • October 19, 2023 at 9:35 AM
    • #2
    Quote from Seongku Kim

    I would like to generate a robot error or alarm using AS language. For example, I want to generate an alarm when the motor current or torque of axis 1 is outside a certain range, but I don't know how to program it. The after-sales service manual is too limited. Is there a way to read the robot's current motor current value and generate an alarm using that data?

    How to display W error code without the robot stopping

    I'm looking at the formula string of the PC software that checks the robot's current status, but I can't figure out how to create the formula or what data to load.

    Also, I don't understand how to read the motor current values of the robot's 1-6 axes from the PC;;;;

    Hello!

    1. AFAIK, you can not generate errors and warnings by yourself (In some robots, there are some dedicated signals for custom errors, but it's not warnings). All you can do is show them as text in terminal or interface panel.

    Btw, to get the motor current, you can use IQARM(axis number) command.

    2. Which manuals do you have? Do you have an AS Language Reference Manual?

  • Seongku Kim
    Trophies
    1
    Posts
    8
    • October 19, 2023 at 7:07 PM
    • #3

    I am using the manual with this number.. 90209-1022DE

    But thinking about your answer, I could have looked at the AS command manual separately in KIDE...

  • saberlars
    Robot, beyond Human..
    Reactions Received
    22
    Posts
    239
    • October 20, 2023 at 3:26 PM
    • #4
    Code
    check:
      WAIT SIG(1073); Airblow_1 Supply Grant
      CASE block.model OF
       VALUE 3:
        POINT blow1 = blow1_r20
       VALUE 4:
        POINT blow1 = blow1_r22
       VALUE 5:
        POINT blow1 = blow1_a25
       VALUE 6:
        POINT blow1 = blow1_e29
       ANY :
        PRINT 2: " _ "
        PRINT 2: " PROGRAM airblow_ar "
        PRINT 2: " Unknown Airblow Model! "
        PRINT 2: " Check block.model value from I/F page!"
        PAUSE
        GOTO check
      END
    Display More

    Use "PRINT" function for customized message.
    If you wanna get Robot "Error Logs" and Display, Use next Function

    Code
    TYPE $ERRLOG(2)

    It will be showing Error log's 2nd event.

    ABB, FANUC, Hyundai, Kawasaki

  • saberlars
    Robot, beyond Human..
    Reactions Received
    22
    Posts
    239
    • October 20, 2023 at 3:47 PM
    • #5
    Code
    HERE #joint01
    DECOMPOSE .deg[1]=#joint01
    
    IF .deg[1]>0 THEN
    SIGNAL -61; Positive J1
    ELSE
    SIGNAL 61; Negative J1
    END
    
    IF .deg[2]>0 THEN
    SIGNAL -62; Positive J2
    ELSE
    SIGNAL 62; Negative J2
    END
    
    IF .deg[3]>0 THEN
    SIGNAL -63; Positive J3
    ELSE
    SIGNAL 63; Negative J3
    END
    
    IF .deg[4]>0 THEN
    SIGNAL -64; Positive J4
    ELSE
    SIGNAL 64; Negative J4
    END
    
    IF .deg[5]>0 THEN
    SIGNAL -65; Positive J5
    ELSE
    SIGNAL 65; Negative J5
    END
    
    IF .deg[6]>0 THEN
    SIGNAL -61; Positive J6
    ELSE
    SIGNAL 66; Netative J6
    END
    
    BITS 1,10=.deg[1]
    BITS 11,10=.deg[2]
    BITS 21,10=.deg[3]
    BITS 31,10=.deg[4]
    BITS 41,10=.deg[5]
    BITS 51,10=.deg[6]
    Display More

    If you use "Cartesian (XYZOAT)" value, Remove # parameter.

    ABB, FANUC, Hyundai, Kawasaki

  • Seongku Kim
    Trophies
    1
    Posts
    8
    • October 23, 2023 at 10:17 PM
    • #6

    In the end, the only way is to display a message using the print function or to display it by setting an external output... I think it would have been nice if there had been a function to display a warning on the robot itself.

    anyway thanks all~

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • Real Time external control of Kuka using RSI

    • geraldft
    • May 8, 2020 at 7:57 AM
    • KUKA Robot Forum
  • Motion as IN OUT parameter

    • pavlan1
    • March 26, 2021 at 8:22 AM
    • KUKA Robot Forum

Tags

  • error
  • AS
  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