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.

Download Program Example:
















