25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.1 High-speed Counter Function
251
25
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 685
Special Relay List, Page 719 Special Register List.
Starting/stopping high-speed counter measurement
High-speed counters cannot count by setting the parameter alone.
The HIOEN/DHIOEN instruction is required to start/stop the count.
For the HIOEN/DHIOEN 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/DHCMOV instruction.
For details concerning specials registers for high-speed counters, refer to Page 719 Special Register List.
For information for the HCMOV/DHCMOV instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions,
Standard Functions/Function Blocks).
• 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/DHIOEN instruction to start high-speed counter measurement.
• There are common precautions when using high-speed counters. For details, refer to Page 288 Precautions when
using high-speed counters.
Pulse Input Mode Set pulse input mode. • 1-Phase 1 Input (S/W Up/Down Switch)
• 1-Phase 1 Input (H/W Up/Down Switch)
• 1 Phase 2 Input
• 2 Phase 1 Multiple
• 2 Phase 2 Multiple
• 2 Phase 4 Multiple
• Internal Clock (1MHz)
Preset Input Enable/
Disable
Set whether to "enable" or "disable" the preset input of counter. • Disable
• Enable
Input logic Sets preset input logic when preset input is enabled. • Positive Logic
• Negative Logic
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
Preset Value Sets preset value when preset input is enabled. -2147483648 to +2147483647
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
Item Description Setting range Default