Question:
How can UserError be displayed in the DDS parameter manager in C0168 with an error text (and not with an error number)?
Answer:
There is a way of displaying the error numbers with a text in DDS (parameter manager) and GDC. An additional entry must be made in the PDB:
Drive PLC Developer Studio 1.4 --> 9300PLCv20000 (for BS V2.0) or 9300PLCv10000 (for BS V1.0) --> plcconf --> Open PDB 'De9300plcv20000.pdb' with a double click.
Then scroll down to the entry C0168 (code for displaying error messages) and expand and save the existing entries, e.g.:
C0168
{
.......... (exists)
SelTxt=107;H07-TRIP (exists)
SelTxt=110;H10-TRIP (exists)
SelTxt=111;H11-TRIP (exists)
SelTxt=500;Error510 (new – you entry)
SelTxt=501;Error501 (new - your entry)
.......... etc.
If in the area C0168 there is a reference to area FWM of the PDB, the above changes have to be made in area FWM:
FWM
{
.......... (exists)
SelTxt=107;H07-TRIP (exists)
SelTxt=110;H10-TRIP (exists)
SelTxt=111;H11-TRIP (exists)
SelTxt=500;Error510 (new - your entry)
SelTxt=501;Error501 (new - your entry)
.......... etc.
With these entries you specify a text which is displayed in the parameter manager and in GDC whenever UserError is triggered with the relevant error number.