Message program

  • Which controller are you working with KRC2 or KRC4? If it is KRC4 then you can use KUKA inbuilt message program functions programmed in the module named "MsgLib.src" in the system folder. You can call these functions depending on your need anywhere in your program structure where you want to generate the message. Some of the examples would be:


    Code
    Notify Message Example:
    MsgNotify("VACUUM FAILURE","ROB",,,1)
    
    
    Parameter Message Example: 
    MsgNotifyTextPar("CYCLE TIME:=%1", "ROB:", $TIMER[9],,,5)


    For KRc2 you have to go through a different approach as it does not have KUKA inbuilt functions. You can copy attached code in your program or system folder and then can call the functions as below:


    Code
    Notify Message Example:
    NOTIFYMSG("HMI",1,"MY ROBOT PROGRAM-1")
    
    
    Parameter Message Example:
    NOTIFYPARAMMSG("ROB:",5,"CYCLE TIME:=%1",$TIMER[10])


    Apart from this, I would strongly recommend you to go through the manual you have as it contains detailed explanation about various messages structures of KUKA robots and you can have variety of messages at your disposal.


    Good Luck. :top:

  • Is it a solution to copy KRC4 MsgLib to krc2 System folder?

    Will i get any error?

    I am working in home office right now and i don't have here a kuka robot krc2 to test it :grinning_squinting_face:


    Thanks for your help in advance!:)

Advertising from our partners