July 2013 8.2 PLC window 1359
Format instructions Format instructions are enclosed in quotation marks (""). Variables are
transferred as parameters. Symbolic operands can also be used.
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:
With the variable switch /n=x you convert from integer to double.
"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
Integer variables in the iTNC have a length of 32 bits.