Pro codes · Heidenhain

FN 14 / FN 16 — Error messages and output in Q-parameter programs (Heidenhain)

Error messages and output in Q-parameter programs. In Heidenhain Q-parameter programming FN 14: ERROR stops the program with an error message (like #3000 on Fanuc). FN 16: F-PRINT writes formatted values to a file or…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. More: macro and system variables
  4. Frequently asked questions
PropertyValue
CodeFN 14 / FN 16
ControlHeidenhain
TopicMacro and system variables
SyntaxFN 14: ERROR = <number> · FN 16: F-PRINT <format file> / <output>

What it does

In Heidenhain Q-parameter programming FN 14: ERROR stops the program with an error message (like #3000 on Fanuc). FN 16: F-PRINT writes formatted values to a file or the screen (like DPRNT). FN 18: SYSREAD reads system data such as the active tool or positions.

Example

Heidenhain
FN 9: IF +Q1 EQU +0 GOTO LBL "ERR"
…
LBL "ERR"
FN 14: ERROR = 1000

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

Try it without a machine

The Macro B simulator runs variables, G65 calls, #3000 alarms, G10 and system variables block by block.

Open the Macro B simulator

More: macro and system variables

Frequently asked questions

What is FN 14 / FN 16 on Heidenhain?
Error messages and output in Q-parameter programs. In Heidenhain Q-parameter programming FN 14: ERROR stops the program with an error message (like #3000 on Fanuc). FN 16: F-PRINT writes formatted values to a file or the screen (like DPRNT). FN 18: SYSREAD reads system data such as the active tool or…
Was this page helpful?