Programming manual.
CNC 8070
22.
STATEMENTS AND INSTRUCTIONS
Programming statements
·380·
(REF: 1709)
22.1 Programming statements
22.1.1 Display instructions. Display an error on the screen
It interrupts program execution and displays the indicated error message. It is programmed
using the instruction #ERROR, selecting either the number of the error to be displayed or the
error text.
#ERROR
Display an error by selecting its number
It displays the indicated error number and its associated text according to the CNC's error
listing. If the indicated error number does not exist in the CNC's error listing, it does not display
any text.
The programming format is:
#ERROR [<number>]
The error number, that must be an integer, may be defined with a numerical constant, a
parameter or an arithmetic expression. When using local parameters, they must be
programmed as P0-P25.
OEM errors in various languages.
Errors between 10000 and 20000 are reserved for the OEM so he can create his own warning
or error texts in different languages. Each mtb\data\lang\language folder contains the file
cncError.txt that contains the OEM messages and errors in different languages. If an error
text is not in the folder of the language active at the CNC, it looks for it in the english folder;
if it is not there, the CNC will issue the relevant error message.
#ERROR
Display an error by selecting its text
It displays the indicated error text. If no text is defined, it shows an empty error window.
The programming format is:
#ERROR ["<text>"]
The error text must be defined between quote marks. Certain special characters are defined
as follows.
Parameter Meaning
<number> Error number.
#ERROR [100000]
#ERROR [P100]
#ERROR [P10+34]
Parameter Meaning
<number> Error text.
\" Inserts quote marks in the text.
%% Inserts the % character.
#ERROR ["Message"]
#ERROR ["Parameter \"P100\" is wrong"]
#ERROR ["Difference between P12 and P14 > 40%%"]