Step7 - Displaying T#20s type Time in WinCC Flex

RMA

Member
Join Date
Sep 2004
Location
North of Hamburg, Germany
Posts
2,052
I've got bunch of controllers for which the operators need to be able to enter and view the PID and Setpoint variables on the panel. Looking at SFB41, the Integral and Differential times are required in T#20s format, but this isn't offered as a format in WinCC Flex. Is there any way I can enter and display these values directly or do I have to enter and display them as INTs and store them somewhere temporarily, before converting them to Time format in the program to store in the DB.
 
Hello again Roy.

The tip is that the TIME format is the same as a DINT where the value is in milliseconds.
You probably dont want to display something in milliseconds (unless you are operating in that region), so you have to convert it to something meaningful.

I use the linear scaling function in the properties of the tags.
My resolution is x.x seconds, so I scale from PLC: 1-100 to HMI: 0.01-1.00. That gives me a value like PLC: "1234" and HMI: "12.34" for 1.234 seconds. And I then shift the decimal point one place to display as "1.2". I think I selected the shifting of the decimal in order to it to display with 1 decimal point.
If I scaled PLC: 1-1000 HMI: 0.001-1.000 then I could only display 1.234 seconds as "1".
 

Similar Topics

This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
146
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
142
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
131
Hi all, I am trying to convert RSLogix 5000 program to Step7. I need to bit shift left my array of double integers for tracking the product on...
Replies
2
Views
521
I have a word in some DB which I want to load to AR1 and use as a pointer. In order to do this I need to write L DBxy.DBW xy SLD 3 LAR1 I...
Replies
3
Views
534
Back
Top Bottom