Hi, I need to show custom error message on FP using ErrLog command. I create my own xml files as specified at Additional options application manual (see 2.2.1 About event log messages) and put them to the HOME directory.
This is my test routine:
Code
MODULE MainModule
VAR num errorid:=7001;
VAR errstr arg:="P1";
PROC main()
ErrLog errorid,ERRSTR_TASK,arg,ERRSTR_CONTEXT,ERRSTR_UNUSED,ERRSTR_UNUSED;
ENDPROC
ENDMODULE
Display More
But when I run this routine, I get empty error message (screenshot in attachments).
XML files are valid (attached below, change .txt to .xml).
template_elogtext.xml:
XML
<?xml version="1.0" encoding="utf-8"?>
<!--*********************************************-->
<!--The text description file for Elog Messages -->
<!-- -->
<Domain elogDomain="" domainNo="11" lang="en" elogTextVersion="1.0"
xmlns="urn:abb-robotics-elog-text" min="7001" max="7001">
<Message number="7001" eDefine="ERR_TEST">
<Title>
Test error
</Title>
<Description>
This error was raised in task:
<arg format="%s" ordinal="1" />
<p />
Please have a look at:
<arg format="%s" ordinal="2" />
<p />
to solve this issue.
</Description>
</Message>
</Domain>
Display More
template_elogtitles.xml:
XML
<?xml version="1.0" encoding="utf-8"?>
<ExtractTitles>
<Title domain="11" number="7001">Test error</Title>
</ExtractTitles>
Please, help!