Event error Code to PLC

Hello

I want to send the error code of the event message occured to PLC, Im talking about ERRORID, is it possible? what variables should i use? because ERRNO type ERRNUM couldnt help, im looking for event errors.

Thank you.

Read up on errtype, maybe it will do for you what you are asking.

Whoops, that is the data type, instruction is: ReadErrData.