RobotStudio event

Error Code to PLC

Hi all,

I'm a ABB robot newbie.

I want to display any error code on a HMI connected to a Allen Bradley PLC. I have created an unsigned double integer and used the following code
ERROR 
  SetAO ErrorCode, ERRNO; 
ENDPROC 

But the received code does not match the error codes in the manual. Does anyone know of a way of doing this. I did thing about doing a lookup table, but with the vast amount of possible codes, this would not be a great way of doing it. I also was wondering if there is any way of converting the ASCII (I assume this is the format) in the IRC5 to a decimal number that matches the fault code.

Many thanks for any suggestions.

Dave

Comments

  • lemster68
    lemster68 ✭✭✭
    An analog output is not appropriate for sending those numbers.  Use a group output and a dint is probably not necessary either, but that is up to you, probably num is sufficient.
    Lee Justice
  • soup
    soup ✭✭✭
    You had the right idea - just use a group output and SetGO instead.
  • Thanks guys, it works

    Dave