By PRV instruction, you can read the frequency of the input pulse, high-speed counter frequency measurement, frequency is measured in Hz, hexadecimal 8-bit output, and can be used only in high-speed counter 0. In addition, also during high-speed counter 0 comparison operation at the same time, measurement frequency. Even in the frequency measurement, nor will feature high-speed counter, pulse output function has been affected.
1. High-speed counter frequency measurement step
(1) the use of high-speed counter settings without using the /: the PLC Setup High-speed counter [O / without] is set to “use.”
(2) counter selection: Setting PLC Setup High-speed counter in the [] / [] pulse input mode.
Sampling (3) Value range mode: select System Settings in the PLC high-speed counter [O] / [] mode range of values, the value range mode to ring mode, the selection PLC Setup High-speed counter 0 [ ] / [] ring counter maximum value.
(4) Select the reset method of high-speed counter current value: Select PLC Setup High-speed counter [0] / [Reset] mode.
Execution (5) PRV instruction: Operands N is the number of high-speed counter [high-speed counter input 0: # OO1O]; C is the frequency of the operand read is # 0003; operand D is a frequency to save channel.