Hi all,
lurking for some time and have learned a lot from older threads, so I was wondering if you could help me with the following.
Preliminary info: R30iA, v7.70, M-430iA/2F.
As for my question: does anyone have any more info on creating and using custom error dictionaries?
Based on the info on dictionaries in the various manuals (Karel, Operator and Error) and an older thread on this forum ('file type etx'), I've gotten as far as being able to kcdict a test dictionary to an .tx file and the associated Karel constant file:
.kl test 300
$1+APSH_WARN, MSG1 "msg 1"
$2+APSH_WARN, MSG2 "msg 2"
$3+APSH_WARN, MSG3 "msg 3"
$4+APSH_WARN, MSG4 "msg 4"
According to output from kcdict, the last number (300) on the first line in the .etx is the facility number. I entered '300' here as I'd like to use a custom facility number as well as custom messages.
I then load the dictionary (tx) on the controller on the KCL:
QuoteLOAD DICT testengl test
As far as I can tell, this should work, but a small test program with just a "POST_ERR(MSG1, '', 0, 0)" in it only results in an error being posted to the TP:
QuoteINTP-322: (TESTTEST, 16) Invalid arg val for builtin
Has anyone gotten this to work? From the older thread I gathered that this capability is not something being advertised by Fanuc anymore, but I'd really like to use it.
[hr]
edit: thinking about it some more: is it even possible to define new facility numbers, or is (or was) this functionality only ever intended to change (translate) existing errors? I've come across some installations where the APPL facility showed custom error messages, but I'd like to avoid overwriting anything existing. Extension would be more interesting.