Siemens hour meter

RClem

Lifetime Supporting Member
Join Date
Nov 2010
Location
Pennsylvania
Posts
110
I am trying to record the run times and on-load times of 3 pumps in TIA Portal as hour meters. I want to monitor these on my HMI. I'm not familiar with the operation of the runtime meter in the library and am finding the documentation quite confusing. I'm open to any suggestions to do this the easiest. Thanks.
 
I think I found a solution. I created a function block that adds seconds, minutes, hours from a 1 sec clock pulse, I'm only using the hour output. I think it will fit the bill. Thanks. Rich
 
You're always 1 TEMP flag looks like it won't work.

If I read that right, if its ON you set it. What if its not ON? A TEMP does not remember its last state when the block is called.
 
I usually just add 0.01666667 to a floating point register on a one minute pulse timer whenever the motor is running and display the RTH as a decimal value. No need to bother with seconds or minutes for a typical run time logger.
 
PeterW, I did catch the temp flag after I scanned the page. It should have been inverted. Bit_Bucket_07, I'll have to look into that, thanks for the suggestion.

Rich
 
Can you explain more about this?

Use the RTM function - much easier

I could not understand how to insert an RTM function inside my FB motor control so that I have an individual hourmeter for each motor.

A solution presented by "RClem" that uses the CPU clock seems pretty cool.

Why not use a TONR to store the operating time?
 
I could not understand how to insert an RTM function inside my FB motor control so that I have an individual hourmeter for each motor.

A solution presented by "RClem" that uses the CPU clock seems pretty cool.

Why not use a TONR to store the operating time?

Per the Siemens help file :
Introduction

The CPUs have a specific quantity of runtime meters (refer to the technical specifications of your CPUs).

If your CPU is equipped with 16-bit runtime meters, you can set, start, stop, and read them with the "SET_RTM", "CTRL_RTM" and "READ_RTM" instructions.

If your CPU is equipped with 32-bit runtime meters, you can set, start, stop or read them with the "RTM" instruction.

Note
You can also use the "SET_RTM", "CTRL_RTM" and "READ_RTM" instructions for the 32-bit runtime meters. In this case, however, the runtime meters operate in the same way as 16-bit runtime meters (range of values: 0 to 32767 hours).

See also: Data record of the partial list extract with SZL-ID W#16#0132 index W#16#000B.


Application

You can use a runtime meter for a variety of applications:

For measuring the runtime of the CPU

For measuring the runtime of controlled equipment or connected devices.

Characteristics of the runtime meter

When it is started, the runtime meter begins to count starting at the last recorded value. If you want it to start at a different initial value, you must explicitly specify this value ("SET_RTM" or "RTM" with MODE=4). If the CPU changes to STOP mode, or you stop the runtime meter, the CPU records the current value of the runtime meter. When a warm restart or a cold restart of the CPU is executed, the runtime meter must be restarted ("CTRL_RTM" or "RTM" with MODE=1).

The runtime meters are reset to "0" following an update of the operating system or following a CPU reset to the factory state.

Range of values

CPU with 16-bit runtime meters: 0 to 32 767 hours

CPU with 32-bit runtime meters: 0 to (2E31) -1 hours = 2,147,483,647 hours
 

Similar Topics

The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
6
Views
115
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
134
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
293
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
109
Hi everyone hope you'll well. Is it possible for me to download a Crack version of tia portal v13..sorry to say this but the software is very...
Replies
5
Views
198
Back
Top Bottom