How to Track How Long a Device Has Been Operating - S7200

How to Track How Long a Device Has Been Operating (Tip 16)
Category: General Applications
Special Hardware Requirements: None
Project Example. Version 5.0. Updated 10/01
This example program shows how to record the operating period of a device such as a brake or switch. To ensure the validity of the results, a 24-V signal must be present at input I0.0 while the device is running and no voltage should be present while the device is off.
When the signal starts, time measurement starts. When the signal stops, time measurement is interrupted until the signal resumes.
The number of hours is stored in variable memory word VW0.
The number of minutes is stored in variable memory word VW2.
The number of seconds is stored in variable memory word VW4.

Copyright 2002 Siemens Energy & Automation
These tips are only a general approach to using the S7 -200 with various applications.
Your specific application may be different. It is your responsibility to use the SIMATICS7 -200 properly in your applications.

You could download the Program HERE