show the entry list
S7-300 CPU 31x -- Product information -- Background and system information
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What is the difference between "normal routing" and data record routing?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What should you watch out for when using the alarm numbering procedure?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
What is the maximum number of parameters that can be assigned to an FC and FB in the S7-300 CPU?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning and the replace device without interchangeable medium function?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Why is only a warm start available for S7-300?
Which SIMATIC S7 modules support the "Direct Data Exchange" function (internode communication)?
Which entries deal with consistent data in conjunction with distributed I/O?
What properties, advantages and special features does the S7 Basis Communication offer?
What properties, advantages and special features does the global data communication offer?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
What are the requirements for using the S7 routing function and which modules can you implement?
How can you obtain an overview of the memory concept of SIMATIC S7-300 CPUs and C7 devices?
Retentivity behavior of S7-300 CPU 31x and complete devices C7-6xx with MMC
Status of the run-time meter after overall reset
Why does the retentivity behavior of the S7-300 CPUs and C7 devices without MMC (Micro Memory Card) influence the contents of the variables?
Local data addressing with S7-300 / S7 400
S7 300 run-time meter doesn't give any value
S7 300 run-time meter doesn't give any value
Part number:
>

QUESTION:
Why aren't any values returned when using the internal run-time meter of an S7-300 CPU?

ANSWER:

  1. If a run-time meter with an identifier greater than "B#16#0" is specified when parameterizing the system functions SFC2, SFC3 and SFC4 for the CPUs 312IFM to 316-2DP, then an error occurs and the desired function is not available. In this case, the identifier "8080h" is output at the "RETVAL" output of the block.
    Note:
    There is only one run-time meter available for these CPUs. Therefore you should only use the identifier "B#16#0".
  2. The system function SFC2 "SET_RTM" must not be called in a cyclic block (OB1, OB35), but only in a restart (OB100). You can also start the block via an external trigger. Otherwise the block would always reset the run-time meter and counting would never be done.

Background:
A run-time meter counts the time that a connected device is switched on or the operating time of the CPU as a sum of the run-time hours.
In the "STOP" mode of the CPU the run-time meter is stopped. Its value is retained even after an overall reset. After a restart (warm start) the run-time meter has to be started again by the user program. Once restarted it automatically counts on if it has been started previously. Using the system function SFC2 "SET_RTM" you can set the run-time meter to a start value. You can start or stop the run-time meter using the system function SFC3 "CTRL_RTM". You can use the system function SFC4 "READ_RTM" to read out the current number of operating hours and the state of the run-time meter ("stopped" or "counting").

Note:

The S7 318 CPU and all S7 400 CPUs have 8 run-time meters. Numbering starts at 0.

Keywords:
Operating time, Timing, Timer

 Entry ID:8460529   Date:2001-08-22 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour