■High-speed counter current value modification operation by instructions
The table below shows the operations when the current value of a high-speed counter is rewritten by instructions.
Instruction
High-speed counter current value
Page 243 Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction
HCMOV/DHCMOV
instruction
MOV instruction, etc.
RST instruction
Cannot reset. The special register value is overwritten in END processing.
ZRST instruction
Cannot reset. The special register value is overwritten in END processing.
■Limitation in the number of instances of each instruction in a program and number of
instructions driven at the same time
When DHSCS, DHSCR, DHSZ instructions are driven at the same time in excess of the upper limit, the instructions after the
upper limit do not operate.
Instruction
DHSCS
DHSCR
DHSZ
• Configuring high-speed comparison tables with parameters
The number of instructions driven at the same time decreases by 1 for each high-speed comparison table driven by the
HIOEN/DHIOEN instruction.
The HIOEN/DHIOEN instruction that drives the high-speed comparison table is capable of driving at the same time 32
instructions in the case of a CPU module and 15 instructions in the case of a high-speed pulse input/output module.
Set up the program and configure the settings within the range calculated with the following equation due to
the limitations described above.
CPU module
32 ≥ Number of driven high-speed comparison tables + Number of DHSCS, DHSCR, DHSZ instructions
driven at the same time
However, restriction of number of high-speed comparisons differs depending on the version. (Page 478
Added and Enhanced Functions)
High-speed pulse input/output module
15 ≥ Number of driven high-speed comparison tables
■User interrupt
During a program with interruption priority 1, the HIOEN/DHIOEN instruction cannot be executed to start or stop the high-
speed counter of a high-speed pulse input/output module. (Page 64 Interrupt priority)
■Operation when the all output disable flag (SM8034) is ON
When the all output disable flag (SM8034) is turned ON, the outputs that were turned ON by high-speed comparison tables,
high-speed comparison instructions, or multi-point output high-speed tables are turned OFF. (The image remains ON.)
If SM8034 is turned OFF, the outputs that were turned OFF return to the original state.
For high-speed comparison tables and high-speed comparison instructions, high-speed counters do not stop and comparison
processing is performed even when SM8034 is ON, and the image turns ON if there is a match. The actual output is output
when SM8034 is OFF.
For multi-point output high-speed comparison tables, the high-speed counter for which the multi-point output high-speed
comparison table is operating is stopped when SM8034 is turned ON, and multi-point output comparison processing is also
stopped. High-speed counters and multi-point output high-speed comparison tables cannot be operated by turning OFF
SM8034 and need to be restarted by the HIOEN/DHIOEN instruction.
The normal high-speed counter function continues to perform counting without being influenced by SM8034.
Limitation in number of instructions driven at same time
Up to 32 instructions can be driven at the same time.
There is no limitation in the number used in programs.
24 HIGH-SPEED INPUT/OUTPUT FUNCTION
24.1 High-speed Counter Function
24
247