12/16/2013 8:35 PM | |
Posts: 13 Rating: (0) |
...and here is my tag table. |
12/17/2013 5:15 AM | |
Joined: 8/31/2010 Last visit: 12/1/2024 Posts: 1523 Rating: (230) |
Have a look at In STEP 7 (TIA Portal), how do you convert the number of days, hours, minutes and seconds into milliseconds? or How do you convert an available millisecond value into days, hours, minutes and seconds in STEP 7 (TIA Portal)? Hope this helps. |
Like it? Rate it! |
|
This contribution was helpful to1 thankful Users |
5/30/2018 9:58 AM | |
Posts: 4 Rating: (0) |
Hi All, I have just wrote a function which you only need to connect an input as time data format and then it will give you out required hours, minutes and seconds in real data type just to be able to show in hmi.. :) Secondly If you deal with hours and read a USInt data type from hmi and than convert this to time format is also similarly.. just read USINT data from hmi and then apply below formula to convert it to msconds : ----> DINT_Value:= value_from_hmi * 1000 *60 *60 will give you the hour in mseconds and than this DINT can be converted to time format later to be used in some T_ADD instruction or to fill as timer sp value.. I have tested with my application but pls welcome to comment if you concern anything.. AttachmenthhmmssFunction.txt (926 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on