Industry Online Support
Technical Forum
10/11/2010 5:39 AM | |
Joined: 10/7/2005 Last visit: 5/29/2023 Posts: 2965 Rating:
|
Hello cbcX A DATE variablesimply contains an unsigned Integer value which is the number the days, with day 1 beingthe 1st January 1990. Step 7 automatically displays this value a"calender type" date, any formula on an HMI would need to take the DATE Integer value and calculate the year, month and day-of-monthout of it (note the leap year rule). The Step 7 oscat library (www.oscat.de) has however blocks which allow extraction of year, month and day-of-monthwhich may be an easier way to do what you want to do (or help with the development of the "HMI formula"). Should your DATE value originate from a DATE_AND_TIME value, you may also be interested to know that year, month and day-of-monthare already available as individual values inside the DATE_AND_TIME variable (note that they are in BCD format though, you can find out more HERE). I hope this helps |
Last edited by: fritz at: 10/11/2010 5:48 AMCheers |
|
10/11/2010 2:41 PM | |
Posts: 43 Rating:
|
Thank you. That was exactly what I needed to know.! |
This contribution was helpful to
1 thankful Users |
Follow us on