19 BUILT-IN I/O FUNCTION
19.1 High-speed Counter Function
125
19
Parameters are enabled when the CPU module is powered ON or after a reset. In addition, operations
different from the parameter settings are possible by transferring values to special relays and special registers
while changing these values in the program.
For details concerning special relays and specials registers for high-speed counters, refer to Page 137
Special relay list, Page 148 Special registers list.
Starting/stopping high-speed counter measurement
High-speed counters cannot count by setting the parameter alone.
The HIOEN instruction is required to start/stop the count.
For the HIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function
Blocks).
Read/write of current value of high-speed counter
The current value of the high-speed counter is stored in a special register for each channel. You can check current value by
monitoring the value. The value may however differ from the actual value because the special register is updated during END
processing.
You can read the latest value using the HCMOV instruction.
For details concerning specials registers for high-speed counters, refer to Page 148 Special registers list.
For information for the HCMOV instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard
Functions/Function Blocks).
Precautions
• Input used varies according to channel selected and pulse input mode.
• If not using preset input or enable input, you can use it as input for other functions.
• If mode is other than normal mode, preset input cannot be used.
• Use the HIOEN instruction to start high-speed counter measurement.
• There are common precautions when using high-speed counters. For details, refer to Page 163 Precautions when
using high-speed counters.
Preset Value Sets preset value when preset input is enabled. -2147483648 to +2147483647
Input Comparison Enable/
Disable
Sets whether to "enable" or "disable" input comparison when
preset input is enabled.
• Disable
• Enable
Control Switch Sets preset execution timing when preset input is enabled. • Rising
• Falling
• Rising + Falling Edge
• Always During Input ON
Enable Input Enable/
Disable
Set whether to "enable" or "disable" the enable input. • Disable
• Enable
Input Logic Set the enable input logic value. • Positive Logic
• Negative Logic
Ring Length Enable/
Disable
Sets whether to "enable" or "disable" the ring length for ring
counters.
• Disable
• Enable
Ring Length Sets ring length when ring length setting is enabled. 2 to 2147483648
Measurement Unit Time Not available for high-speed counters (normal mode).
Pulses No. of per Rotation
Item Description Setting range Default