Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 be averaged according to the number set, and the number of input pulses will be stored. If the instruction is used more than once in a program, the same M1263 will be used. The state of M1263 can be changed after the instruciton is executed. 7. The functions of D and D +1 depend on the detection mode used. If the width of the duty-off/duty-on pulse is detected, the width of the duty-off/duty-on pulse will be stored in D and D +1, and the longest detection time will be 21,474.83647 seconds, about 357.9139 minutes or 5.9652 hours. If the frequency of input pulses is detected, it will be stored in D and D +1.

If the frequency of input pules is detected, and the averaging mechanism is enabled, D +2, D +3, D +4 wil be used. The number of input pulses is stored in D+2 and D+3. The number by which an amount is divided is stored in D +4, and must be in the range of K1 to K20. If the number by which an amount is divided exceeds the upper limit, or the lower limit, the upper limit or the lower limit will be the setting value. 8. The instruction can be used three times at most in a program. Program Example: (For EH2/SV/SV2, and EH3 V1.40 (and below)) When X0 = On, record the time span of X10 = On and store it in D1 and D0. X0 Program Example:

(For EH2/SV/SV2, and EH3 V1.40 (and below)) If X0 is On, ten frequencies of pulses sent to X10 will be averaged, and the result will be stored in D0 and D1. Besides, the number of pulses sent to X10 will be stored in D2 and D3. X0 X0 DVP-PLC Application Manual 9-34 PWD X10 D0 SET M1169 SET M1263 MOV K10 PWD X10 D0