8/30/2012 7:15 AM | |
Joined: 3/21/2006 Last visit: 7/26/2024 Posts: 10228 Rating:
|
Check it INT to S5TIME |
8/30/2012 8:25 PM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
Hello, check this sample and the attachment: [code] L MW 100 //integer value which store minutes ITD L L#60 //how many seconds? *D L L#1000 //how many milliseconds? *D T MD 104 //TIME equivalent CALL "TIM_S5TI" IN :=MD104 RET_VAL:=MW108[/code] Also cluster of all related topics here: HD_S5TIMER data type Best regards, Hamid Hosseini |
6/22/2015 3:52 PM | |
Joined: 9/5/2014 Last visit: 8/12/2022 Posts: 3 Rating:
|
It helped me also...thanks |
This contribution was helpful to
1 thankful Users |
6/22/2015 5:26 PM | |
Joined: 6/24/2013 Last visit: 9/3/2024 Posts: 1618 Rating:
|
Hi Conversion functions attached to this post. They convert int [in 100ms units. range: 0..3276.7seconds] to S5Time and vice versa. Attached: - functions printout as a PDF file for viewing - function source (.AWL) file which can be imported into STEP7 project Before import following symbols must be added to project symbol table: INT_S5TIME FC 109 FC 109 Convert Integer [0..32767 --> 0..3276.7s] to S5Time Regards Piotr AttachmentS5Time.zip (322 Downloads) |
Follow us on