6 – 256 HEIDENHAIN Technical Manual TNC 426, TNC 430
Format instructions Format instructions are enclosed in quotation marks (“”). Variables are
transferred as parameters.
Example:
Variable types specified in the format instruction can be written in lowercase
or uppercase letters (e.g. %D). The variable types of the format instruction
must agree with the specified variables.
PLC variables can be displayed as a number with decimal places:
7
77
7 With the variable switch /n=x you convert from integer to double.
Variable names:
"Position: %+8.3F",D3884/n=4/c
Update cyclically
Convert D3884 into a
floating-point number and
divide by 10
x
Display as a floating-point
Total number of digits, including
decimal point and algebraic sign
3 decimal places
Always display
the algebraic
sign
Note
Integer variables in the TNC have a length of 32 bits.
Variable names Meaning
B0 to B4095 PLC bytes, integer
W0 to W4094 PLC words, integer
D0 to D4092 PLC double words, integer 0/1
M0 to M4999 PLC markers, integer 0/1
I0 to I383 PLC inputs, integer 0/1
O0 to O191 PLC outputs, integer 0/1
T0 to T303 PLC timers, integer 0/1
C0 to C143 PLC counters, integer 0/1
S0 to S15 PLC strings, string [128]
S#D0 to S#D999 PLC dialogs, string
S#E0 to S#E999 PLC error texts, string
TIME[0] to TIME[15] System time as in Module 9055, char
AXISCHAR[0] to
AXISCHAR[4]
Code letters for NC axis, char
MP up to.. Machine parameters, notation: MP910.1
Input value:
Decimal places: double
Hex or binary: integer
Text: char