plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Convert the number of milliseconds into days, hours, minutes

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
maersk
Member 3
Member 3
maersk

Joined: 17 Aug 2014
Posts: 891

PostPosted: 23/02/2016 21:36    Post subject: Convert the number of milliseconds into days, hours, minutes Reply with quote

In STEP 7 (TIA Portal), how do you convert the number of milliseconds into days, hours, minutes and seconds?
https://support.industry.siemens.com/cs/document/42637538/in-step-7-%28tia-portal%29-how-do-you-convert-the-number-of-milliseconds-into-days-hours-minutes-and-seconds
The example below shows the call of the function block "MillisecToTime" in the OB "ChangeTime" with parameterization of the variable from the data block "MsToTime".
Convert the number of milliseconds into days, hours, minutes Convert the number of milliseconds into days, hours, minutes

ou can use the library for the S7-1200/S7-1500 and for the S7-300. The Master Copies folder contains two subfolders. Each subfolder contains the FB "MillisecToTime" with its instance DB, the global DB "MsToTime" and the OB "ChangeTime".

If you are using the S7-1200 or S7-1500, you drag-and-drop the blocks from the subfolder "S7-1200/S7-1500" to the program folder.
If you are using S7-300, you drag-and-drop the blocks from the subfolder "S7-300" to the program folder.

The FB "MillisecToTime" was created in the SCL programming language and contains comments in German and English.

https://support.industry.siemens.com/cs/attachments/42637538/42637538_MillisecToTime_Lib_STEP7_TIA_Portal_V13.zip


In STEP 7 (TIA Portal), how do you convert the number of days, hours, minutes and seconds into milliseconds?


Convert the number of milliseconds into days, hours, minutes Convert the number of milliseconds into days, hours, minutes

https://support.industry.siemens.com/cs/attachments/43184859/43184859_TimeToMillisec_Lib_STEP7_TIA_Portal_V13.zip
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro