8-15
Input pulse measurement instruction (F178)
- This instruction is used to measure the pulse number and cycle of a specified high-speed counter
channel when using the high-speed counter function.
- The pulse number to be measured is counted in a specified counting cycle.
- The one pulse (on-off cycle) right after the execution of the instruction is measured as the pulse cycle.
Note) The last numbers of the actual measured values may vary due to the measurement error.
Setting conditions:
- Channel No.: 0
- Storage location of measured pulse number:
DT200 to DT201
- No. of moving average of measured pulse number:
Once
- Measurement cycle of measured pulse number:
100ms
- Pulse cycle measurement by 1µs and 1 ms
- Storage location of measured pulse cycle (1 µs
unit): DT202 to DT203
- Storage location of measured pulse cycle (1 ms
unit): DT204 to DT205
- Measurement limit of measured pulse cycle (1ms
Operation of F178 instruction (In case of the above sample program)
Example) When a single pulse of 250Hz was measured repeatedly
Pulse number measured within 100 ms: 25 (Error±1) is stored in DT200 and DT201.
Pulse cycle: 1/250 x 10
6
= 4000 (Error±1) is stored in DT202 and DT203.
Pulse cycle: 1/250 x 10
3
= 4 (Error±1) is stored in DT204 and DT205.