Configuring Decimal Precision on OpAnS Block Icons and APL Faceplates in SIMATIC PCS 7
To increase the number of decimal digits displayed on an Advanced Process Library (APL) OpAnS (Analog Operable Small) block icon and its corresponding faceplate, modifying Scale.Min and Scale.Max in CFC will not work because scale limits define the measurement engineering range, not display precision. To change decimal places on the block icon: in WinCC Graphics Designer, select the OpAnS block icon, open Properties -> Configurations, and modify AnalogValueFormat1 (for PV) or AnalogValueFormat2 (for SP) to '0.000' (3 decimals) or '0.0000' (4 decimals). To change decimal places in the faceplate: open the CFC chart, expand parameter SP_OpScale (or PV_OpScale) on OpAnS, set sub-parameter DEC to 3 or 4, and download changes.
Table of Contents
- Executive Summary
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
In continuous manufacturing and dosing operations automated with SIMATIC PCS 7, small technological blocks like OpAnS (FB1915 - Analog Operable Small) are widely deployed to allow operators to input analog setpoints or manual trim adjustments while consuming minimal screen space and controller memory. A frequent engineering question arises when an operator needs to input a high-precision setpoint with three or four decimal places (e.g. 0.125 or 1.5000): engineers often attempt to adjust decimal precision by modifying the Scale.Min and Scale.Max inputs on the block in CFC online mode, only to find that the display remains locked to two decimals. This article explains the technical segregation between scale bounds and display formatting, detailing how to configure format strings on block icons and the DEC attribute on APL faceplates.
Architecture and Fundamental Mechanics
APL Small Block Architecture, Decimal Precision Formatting, and Scale Structure Mechanics:
- Why
Scale.MinandScale.MaxDo Not Affect Decimal Precision: - The parameters
Scale.High/Scale.Low(orScale.Min/Scale.Max) define the physical engineering range (e.g.0.0to100.0 kg) used to calculate percentage bar graph fills and limit clamping. -
These parameters are floating-point real numbers that contain no metadata regarding how many decimal places should be rendered on screen.
-
Architecture of Decimal Formatting in the APL Faceplate (
DECParameter): - The APL faceplate standard view queries structured parameters from the controller to configure its numeric input fields:
SP_OpScale: Structure containingHigh(REAL),Low(REAL), andDEC(INT - Decimal Places).PV_OpScale: Structure containingHigh(REAL),Low(REAL), andDEC(INT - Decimal Places).
- If
SP_OpScale.DEC = 2(default), the WinCC faceplate input dialog restricts operator setpoint typing and visual display to two decimal places (e.g.12.34). -
Setting
SP_OpScale.DEC = 3or4in CFC instructs the faceplate C-script (@pg_apls_standard.pdl) to allow entering and displaying 3 or 4 decimal places dynamically. -
Architecture of Decimal Formatting on the Block Icon (
AnalogValueFormat): - Block icons rendered on process screens do not automatically adapt their character width to
DECto avoid visual overlap with adjacent graphics. - The block icon's numeric display is governed by format attributes under
Properties -> Configurations:AnalogValueFormat1: Format pattern for the primary process value (PV).AnalogValueFormat2: Format pattern for the setpoint value (SP).
- Format String Patterns:
0.00: Displays exactly 2 decimal places.0.000: Displays exactly 3 decimal places.0.0000: Displays exactly 4 decimal places.###0.000: Displays up to 4 integer digits and 3 mandatory decimal places.
Step-by-Step Implementation Procedure
-
Configure Faceplate Precision in CFC (Controller Scale Structure):
* In SIMATIC Manager, open the CFC chart containing theOpAnSblock.
* Select the block and locate parameterSP_OpScale(for setpoint) andPV_OpScale(for process value).
* Expand the structure by clicking the small+icon.
* Locate sub-parameterDEC.
* Change the value ofDECfrom2to3(or4).
* Execute a delta compile and download of the CFC changes. -
Configure Block Icon Precision in WinCC Graphics Designer:
* In WinCC Explorer, open the graphic picture containing theOpAnSblock icon.
* Select theOpAnSblock icon on the canvas.
* In the Object Properties window, expand the Configurations property group.
* Locate AnalogValueFormat1 (and AnalogValueFormat2).
* Change the format string to0.000(for 3 decimals) or0.0000(for 4 decimals).
* Save the graphic picture. -
Permanent Configuration via Master Typicals (Recommended for Plant Standardization):
* If new block icons will be generated via the Plant Hierarchy wizard:
* Open@PCS7TypicalsAPLV9.pdl(in the OSGraCSdirectory).
* Locate the@OpAnSblock icon template.
* InConfigurations, setAnalogValueFormat1andAnalogValueFormat2to0.000.
* Save@PCS7TypicalsAPLV9.pdland runPlant Hierarchy -> Create/Update Block Iconsin SIMATIC Manager.
Verification
- Activate WinCC Runtime.
- Navigate to the screen with the modified
OpAnSblock icon; confirm that the block icon displays 3 or 4 decimal digits. - Click the block icon to open the APL faceplate.
- Click on the setpoint input field; enter a high-precision value (e.g.
12.345). - Confirm that the faceplate accepts the setpoint without rounding or truncating to two decimals.
Limitations and Operational Precautions
Adding decimal places widens the text string; verify that the text does not exceed the physical bounding box of the block icon, which can cause text clipping. In high-precision floating-point operations, standard IEEE 754 single-precision (REAL) values have 24 bits of mantissa (~7 decimal digits of total precision); entering large numbers with many decimal places can experience minor floating-point representation rounding.
Engineer FAQ
Why did changing Scale Min and Max not increase decimal places?
Because Scale parameters define the engineering range for bar graphs and clamping, while decimal precision is governed by the DEC parameter and format strings.
What parameter controls faceplate decimal precision on OpAnS?
Sub-parameter DEC inside the SP_OpScale or PV_OpScale parameter structure on the CFC block.
Where do I configure decimal places for the OpAnS block icon?
In Graphics Designer, select the block icon and modify AnalogValueFormat1 and AnalogValueFormat2 under Configurations properties.
What format string displays three decimal places in WinCC?
Use 0.000 or ###0.000.
What is the difference between OpAnL and OpAnS?
OpAnL is the full Large operable analog block with alarms and gradient limits; OpAnS is the compact Small version designed for basic setpoint entry with reduced memory footprint.
Technical References
- SIMATIC PCS 7 Advanced Process Library V9.0 Function Manual - OpAnS Block
- SIMATIC WinCC V7.4 / V7.5 Graphics Designer Manual - Format Strings
- SIMATIC PCS 7 APL Small Blocks Specification
Related Articles
- Customizing Analog Display Decimal Places on APL Block Icons in PCS 7 (OpAnL - PidConL)
- Configuring Dribbling Compensation and Adaptive Cutoff in PCS 7 APL DoseL
- Resolving Zero Value on APL Block Icon with Non-Zero Faceplate Display - Deadband Suppression Mechanics
- Resolving Block Icons Not Updating After Type Number Changes - The 10-Picture Typicals Limit
Related Tags
- OpAnS
- Decimal Precision
- AnalogValueFormat
- DEC
- SP_OpScale
- APL Small Blocks
- Block Icons
- PCS 7 V9.0