3/23/2012 6:15 PM | |
Joined: 9/27/2006 Last visit: 5/10/2024 Posts: 12257 Rating: (2666)
|
Hello saeed; Have a look at the dedicatend Application note from Siemens Support: Programming runtime meters (APPnote# 214) You will find there(along with a sample program in STL) the following descriptions of the stadard functions for Runtime Meters: SFC2 (SET_RTM) Description With SFC2 “SET_RTM” (set run-time meter), you set a run-time meter of the CPU to a preset value. The number of rumtime meters you can set depends on the particular CPU you are using. SFC3 (CTRL_RTM) Description With SFC3 “CTRL_RTM” (control run-time meter), you can start or stop a run-time meter of the CPU. SFC4 (READ_RTM) Description With SFC4 “READ_RTM” (read run-time meter), you read the current run-time and the status (“stopped” or “counting”) of a run-time meter. Please note that the Runtime Meters will give you a count in hours (no decimals, no minutes). Hope this helps, Daniel Chartier |
3/23/2012 7:06 PM | |
Posts: 288 Rating: (4) |
thank you for your reply mr dchartier. i want to know that if i reset or turn off the cpu the value of the runtime meter will be delete or not? best regards. |
Follow us on