9 Application Instructions API 150-199 151 Operands: S : Source device D : Destination device for storing the detected result Explanations: (For EH2/SV/SV2 and EH3 V1.40 (and below)) 1. Range of S : X10 ~ X17 2. D must be in the range of D0 to D999., it occupies two consecutive devices. 3. PWD instruction is for detecting the interval between the input signals; the valid frequency range is 1 ~1kHz. If M1169 = Off, the instruction will continuously detect the intervals between the rising edges of the input signals and the falling edges of the input signals (time unit: 100us). If M1169 = On, the instruction will continuously ~ X17 as DCNT and ZRN instructions.
detect the intervals between rising edges of the input signals (time unit: 1us). It cannot designate the same X10 4. D occupies two consecutive devices. The longest detection time is 21,474.83647 seconds, about 357.9139 minutes or 5.9652 hours. 5. There is no limitation on the times of using this instruction. However, only one instruction can be executed at a time. Explanations: (For EH3 V1.60 (and above)) 1. S must be X10 , X11, X14, X15. Neither of the inputs can be used more than once. 2. The detection result, the number of input pulses, and the number by which an amount is divided are stored in D . D must be in the range of D0 to D999., it occupies five consecutive devices at most. 3.
PWD instruction is for detecting the intervals between the input signals of the frequency of input signals; the valid frequency range is 1 ~1kHz. If M1169 = Off, the instruction will continuously detect the intervals between the rising edges of the input signals and the falling edges of the input signals (time unit: 100us). If M1169 = On, the instruction will continuously detect the intervals between rising edges of the input signals (time unit: 4. If PWD is executed for the first time, the detection mode of PWD will be set according to the state of M1169. 0.001us). It cannot designate the same input as DCNT and ZRN instructions.
After the instruction is executed, the detection mode can not be changed. 5. If M1169 is ON, M1154 will be the flag for the dectection of the width of the duty-off/duty-on pulse. If M1154 is Off, the width of the duty-off pulse will be detected. If M1154 is On, the width of the duty-on pulse will be detected. If the instruction is used more than once in a program, the same M1154 will be used. The state of M1154 can be changed after the instruciton is executed. 6. If M1169 is On, M1263 will be a averaging mechanism flag.
If M1263 is On, the frequencies of input signals will DVP-PLC Application Manual 9-33 Mnemonic Operands Function PWD Detection of Input Pulse Width Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F PWD: 5 steps S * D * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS EH SV SV2