9/13/2010 10:53 AM | |
Posts: 8 Rating:
|
Hey thanks Fritz... very much appreciated. If you don't mind, I got 2 more questions regarding timer function. T 10 +----------+ --! T !--! 0 ! ! ! DW 10 --! TV BI !- FW 178 !DE!- --!RQ!- +---------+ What is stored in the FW 178? The accumulated value of the timer in binary? And I also encountered something as below which confuses me:- T 10 +----------+ --! T !--! 0 ! ! ! FW 180 --! TV BI !- !DE!- --!RQ!- +---------+ If represented as FW 180 for the timer value which from my understanding, a Word = INT, how do I extract the time base of it? Or should I tear it down to 16 bits, where by each 4 bits represents a certain value (BCD)? Thanks again bro. Splitted from Newbie here and I need some help with some function blocks.. |
Last edited by: O_Moderator at: 9/13/2010 1:42 PMnew subject after splitting |
|
9/15/2010 5:35 AM | |
Posts: 8 Rating:
|
Sorry to bump this... anyone care to chime in? I'm working on a conversion project and I'm stuck at this... any help is much appreciated. Thanks~ |
9/15/2010 6:17 AM | |
Joined: 10/7/2005 Last visit: 6/6/2023 Posts: 2966 Rating:
|
Hello MickMars "BI" ((e.g. your FW178) contains the remaining time value as an Integer WITHOUT the time base. "DE" contains the remaining time value in BCD format AND the time base. "TV" (Time Setpoint, e.g. your FW180)must contain a BCD formatted time valueAND the time base. Have a look at "Timer operations" in chapter 8.4.1of the S5-115U Programmable Controller manualfor more on this (see also attached extract) and note that the S5TIME format in S7 still complies with this too (the inbuilt S7 help can be consulted too for this). I hope this helps AttachmentS5 Time value format (extract from 115U manual).pdf (42 Downloads) |
Cheers |
|
9/15/2010 6:34 AM | |
Posts: 8 Rating:
|
Thank you sir! |
This contribution was helpful to
1 thankful Users |
Follow us on