日本語 English

Measuring How Long a Bit Is ON

Use cases

Measuring bit ON time can be used for equipment takt time measurement and monitoring cylinder operation time.

It can also be applied to recording motor run time and analyzing equipment availability.

Comparison of the methods
MethodAccuracyImplementation difficulty
Clock pulsesLowEasy
Cycle time accumulationHighNormal

Overview

Introduces how to measure ON time, for example when you want to know how long a bit is ON.
This method can also be applied to measure takt time and so on.

Method 1: Measuring with Clock Pulses

While the contact is ON, the 0.1-second clock pulse is used and the number of times it turns ON is counted to measure how long the contact is ON.
This method has errors due to the PLC scan time and the ON/OFF timing of the clock pulse, so it lacks accuracy, but it is simple when an error of about 1 second is acceptable.
TimeSpan001

Method 2: Measuring with the PLC Cycle Time

While the contact is ON, the PLC cycle time is accumulated to measure how long the contact is ON.
P_Cycle_Time_Value (AR264, 265) stores the present cycle time value as 32-bit binary every cycle. This value has 0.1 ms precision, so accumulating it measures the ON time with 0.1 ms precision.
TimeSpan002

Comments