5
08/2005 ShopTurn Functions
5.5 Millin
5
♥ Siemens AG, 2005. All rights reserved
SINUMERIK 840D sl Operation/Programming ShopTurn (BAT) – 08/2005 Edition 5-263
Entering a variable
number
Variable >
Number
123.456
¾ Press the "Variable" and "Number 123.456" softkeys if you want to
engrave a any number in a certain format.
The format text <#.###,_VAR_NUM> is inserted and you return to the
engraving field with the softkey bar.
¾ The placeholders #.### define the digit format in which the
number defined in VARNUM will be engraved.
For example, if you have stored 12.35 in VARNUM, you can format
the variable as follows.
Input Version Meaning
<#,_VAR_NUM> 12 Integer digits not formatted,
no fractional digits
<####,_VAR_NUM> 0012 4 integer digits, leading
zeroes, no fractional digits
<#,_VAR_NUM> 12 4 integer digits, leading
zeroes, no fractional digits
<#.,_VAR_NUM> 12.35 Integer and fractional digits
not formatted.
<#.#,_VAR_NUM> 12.4 Integer digits not formatted,
1 fractional digit (rounded)
<#.##,_VAR_NUM> 12.35 Integer digits not formatted,
2 fractional digits (rounded)
<#.####,_VAR_NUM> 12.3500 Integer digits not formatted,
4 fractional digits (rounded)
If there is insufficient space in front of the decimal point to display the
number entered, it is automatically extended. If the specified number
of digits is larger than the number to be engraved, the output format is
automatically filled with the appropriate number of leading and trailing
zeroes.
Instead of the decimal point you can also use a blank.
Instead of VARNUM you can use any other numeric variable (e.g. R0).