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:
PROC ErrLogTest()
VAR num errorid:=5210;
VAR errstr arg:=“Test”;
Hi,
i think you should create the folder “Language” in your Addin folder. In this folder you are create subfolder for each language, e.g. (“en” ,“de”, “fr” )
In your install.cm file you have to add the following:
in case you are creating an RobotWare AddIn you have to add the file “install.cmd” to your Addin folder .
The install.cmd file is an installation script that for example define which configuration files and event log messages files to load. One of the configuration files (sys.cfg) defines which RAPID program files (.sys) to load (see RobotWare Addin manual, chapter 2.3).
In case of you do not use an AddIn you can create the file “ext_install.cmd” in the “HOME” directory for registration of the error message with the following commands:
Thanks for your reply, but as far as I know, “ErrLog” command should work without any executable files like “install.cmd” or Language folder in HOME directory. In any case, the manual did not say anything about it. I have no idea even what should be in this folder. I think there must be another solution. Anyway, thanks for your help!
Hi,
yes you are right there is no information in the manual how the xml files should be handled.
First of all you have to create the folder “Language” in the “Home” directory.
This folder name is used as “-prepath” during registration of the elog messages.
The xml files will be used depending on the current language of the FlexPedant, so that the language folder contains the several sub folders for the required language.
The means, the system defines internally the path to the xml files as follows:
I tried the approach that @Micky described above, but I can’t get it to work on a virtual controller.
I put “ext_install.cmd” with the two register calls in the $HOME folder.
I put the two xml files in the $HOME/Language/en folder.
Then I restarted controller, but the ext_install.cmd doesn’t seem to be called (because the controller also starts normally if I put nonsense in ext_install.cmd).
Am I missing something? Does anybody have a working virtual controller with custom error log messages?
in the attached zip folder you will find the required files to use your own ELOG messages.
Copy the files into your home directory and execute an “I-Start”.
As soon as the robot is ready you can use the following instructions to show your own E-LOG messages
Hello together, has something changend since 2019, I tried it like Micky said.
But my Event Log Messages allways empty.
I copied the files to the home folder and restart the controller, but nothing changend.