7/17/2013 10:56 PM | |
Joined: 1/28/2009 Last visit: 9/2/2024 Posts: 6846 Rating:
|
That is possible.Covert the INT to DINT and then multiply that by L#1000 , use FC40 (TIM_S5TI) from IEC function and all done.For this procedure, the INT variable should be the number of seconds.
That is possible to use any global memory (or local if you initialize before use) to store the S5 Timer set value.And also thanks to Moderators, we have a great set of threads on same issue here: HD_S5TIMER data type |
Last edited by: hdhosseini at: 7/17/2013 10:59 PM// typo |
|
7/18/2013 3:26 PM | |
Joined: 6/24/2013 Last visit: 9/3/2024 Posts: 1618 Rating:
|
Hi In past have made function which converts time [which is integer in seconds x 10 i.e. 0..32767 == 0..3276.7 seconds] to/from s5time using best possible time base [precission]. Also compare function is ttached [compares 2 S5Time values] All 3 Functions attached as a PDF. Tested/Working. AttachmentS5Time.pdf (1182 Downloads) |
This contribution was helpful to
2 thankful Users |
Follow us on