SIMATIC HMI Number of decimal places as a parameter

Aleksandra

Member
Join Date
May 2018
Location
Belgrade
Posts
35
Hello everyone,

I have met the following issue in a project: there is an I/O field where you can set parameter "number of decimal places" for an analog value which is displayed in another I/O field on the screen. The allowed values are from 0 to 3 (0 - for zero decimal places, 3 - for three decimal places). Depending on the chosen parameter - this should provoke a change in the analog value I/O field, so that the analog value is displayed in the appropriate chosen format (i.e. with the chosen number of decimal places).

The way that this have been solved before is by having four I/O fields which are manipulated by the visibility property (for example, if parameter "2" is chosen, then only the I/O field with 2 decimal places format will be visible, and the other three will be invisible).

I believe there should be more elegant solution, but I don't come up with one. One solution would be to divide analog value directly in a FB, but I guess this would enlarge cycle time? But, on the other hand, why use four I/O fields for a single tag?

Anyone with a more clever solution? šŸ™ƒ
 

Similar Topics

Does anybody have 6AV6881-0AP40-0AA0 or 6AV6881-0AQ40-0AA0 - SIMATIC HMI MEMORY SD-CARD, 32GB? I need image copy (flash card back-up) of it, or at...
Replies
0
Views
1,025
I connected a Lorex security camera to a Simatic KTP700F HMI via a PoE switch. It shows up on the screen, but the refresh rate is atrocious--like...
Replies
12
Views
4,142
Runtime configuration of simatic hmi wincc explorer made screens & automation system Hi Friends, How do I configure and execute RUNTIME of...
Replies
6
Views
3,223
Hello everyone, I need help with alarms on simatic TP1200 comfort panel. Since I am at the beginner level, I can't figure out how to save alarms...
Replies
5
Views
4,727
When must you add an HMI panel in the hardware configuration for a STEP 7 project using the SIMATIC Manager? I have had several projects using...
Replies
3
Views
2,859
Back
Top Bottom