 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
maersk Member 3


Joined: 17 Aug 2014 Posts: 891
|
Posted: 23/02/2016 21:36 Post subject: Convert the number of milliseconds into days, hours, minutes |
|
|
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".
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?
https://support.industry.siemens.com/cs/attachments/43184859/43184859_TimeToMillisec_Lib_STEP7_TIA_Portal_V13.zip |
|
| Back to top |
|
 |
|
|
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
|