DVP-ES3 Series Programming Manual 3. The instruction stores the pulse width detection time (32-bit value) in D 1 and the detection range is 0–100,000,000. If the value is over the maximum value, it is processed as the maximum value. If the value is 0, that means is no input switched from ON to OFF during the execution of this instruction. 4. D 2 is the update flag. Whenever the detection of the S 1 input is completed and the instruction is scanned,, the updated flag switches to ON for one scan cycle time. You can check if the detection value has been updated with the update flag. When the system executes the instruction for the first time, the update flag resets to OFF. 5.
When the value in S 2 is 0, 1 or 2, refer to the timing diagram below for the procedures performed, such as storing detection values and updating flags during the execution of the instruction. The timer starts when the S 1 input switches from OFF to ON as it is shown in the position of the following diagram. The instruction stores the detection time when the S 1 input switches from ON to OFF as shown in the position of the following diagram. enable PWD disable disable S 1 D 1 0 100 101 100 _6 D 2 Figure 1 Detection mode when the value in S 2 is 0, 1 or 2 6.
When the value in S 2 is 4 or 5, refer to the timing diagram below for the procedures performed, such as storing detection values and updating flags during the execution of the instruction. The timer starts when the S 1 input switches from OFF to ON as it is shown in the position of the following diagram. The instruction stores the detection time when the S 1 input switches from OFF to ON as shown in the position of the following diagram. enable PWD disable disable S 1 D 1 0 100 101 D 2 Figure 2 Detection mode when the value in S 2 is 4 or 5 6-294