Mitsubishi Electronics FX5 ユーザーズマニュアル

ページ / 306
164
19  BUILT-IN I/O FUNCTION
19.1  High-speed Counter Function
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.
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.
 • Configuring high-speed comparison tables with parameters
When configuring high-speed comparison tables with parameters, the number of instructions driven at the same time 
decreases by 1 for each table setting.
Set up the program and configure the settings within the range calculated with the following equation due to 
the limitations described above.
 Number of driven high-speed comparison tables + Number of DHSCS, DHSCR, DHSZ instructions driven 
at the same time
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 instruction.
The normal high-speed counter function continues to perform counting without being influenced by SM8034.
Instruction
High-speed counter current value
HCMOV 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.
Instruction
Limitation in number of instructions driven at same time
DHSCS
Up to 4 instructions can be driven at the same time.
There is no limitation in the number used in programs.
DHSCR
DHSZ