Attribute 'TcDisplayScale'
The pragma can be used to scale the value of a variable for the display.
Syntax: {attribute ‘TcDisplayScale‘ := '<Value>'}
The following values are valid for <Value>:
- "+/-10"
- "0-10"
- "0-20"
- "4-20"
- "0-10(16)"
- "0-20(16)"
- "4-20(16)"
- "0.1°"
- "0.01°"
- "0-5"
- "0-30"
- "0-50"
- "+/-5"
- "+/-2.5"
- "+/-100"
- "0-5(16)"
- "0-30(16)"
- "0-50(16)"
- "+/-75mV"
Insertion location: Line above the declaration line of a variable
Example:
PROGRAM MAIN
VAR
{attribute 'TcDisplayScale' := '0-10'}
nVar AT %Q* : UINT;
END_VAR