GUI Manual · Chapter 35

Error Editor

Error Editor is an editor that defines the errors raised by the equipment in terms of code, message, and response. Open it from ProjectError Editor.

An error definition is set up in advance to decide, when an error occurs at runtime, what number identifies it, what message is shown to the operator, and what action to recommend. When the equipment actually stops or raises a warning, the message shown on screen follows what is defined here.

Error definition elements

A single error is managed with the following elements. Each error is identified by a unique number, and its displayed message and recommended action can be defined per language.

ElementContent
Error numberThe code identifying the error. The runtime looks up the definition by this number.
Display messageThe text shown on screen and in logs when the error occurs (multilingual).
Recommended actionThe response the operator should take (for example, reset, ignore, or stop).

The items above summarize the common makeup of an error definition; the actual input field labels on screen may differ by version.

A defined error is used when an operation script raises it. When a script raises a specific error with ShowError(...), the runtime looks up the definition for that number and shows its display message and action on the operator screen.

So when you want to change the message text or recommended action for the same error, you edit the definition in this editor rather than in the script. Because messages are managed in one place, the displayed content stays consistent even when several scripts share the same error.

Relationship with the Message Editor

Error definitions handle the same data as the Project Errors category of the Message Editor. When you select Project Errors as the Source in the Message Editor, you can edit the error items defined here together with their code, priority, and flags, along with the per-language message (MESSAGES), cause (CAUSE), and action (TODO). Exporting and importing multilingual translations in bulk is also done from the Message Editor side.