![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114819.webp)
14 HIGH-SPEED COUNTER INSTRUCTION
14.2 High-speed Current Value Transfer Instruction
817
14
■
Effect of HCMOV instruction
• By using both input interrupt and HCMOV instruction, the current value of a high-speed counter can be received at the
rising edge or falling edge of an external input.
• When HCMOV instruction is used just before a comparison instruction (CMP, ZCP or comparison contact instruction), the
latest value of the high-speed counter is used in comparison.
Precautions
• When it is necessary to execute comparison and outputting as soon as the current value of a high-speed counter changes,
use the high-speed comparison table, multi-output high-speed comparison table, or one of the DHSCS, DHSCR, and DHSZ
instructions.
• If 32-bit binary data special device which supports the high-speed transfer (such as the current value of a high-speed
counter) is read using the HCMOV instruction, the operation is the same as that when the MOV instruction is used.
• Do not overwrite the current value of a high-speed counter using the HCMOV instruction while executing the pulse density
(rotation speed measurement) or the SPD instruction.
• If (s) is SD8099, and the (n) value is K1, SD8099 is cleared at the timing the instruction is executed (after the SD8099
current value is transferred). Do not clear the SD8099 current value with an application instruction such as a MOV
instruction, which is affected by the scan.
The HCMOV instruction is mainly used to read the current value of the high-speed counter/pulse width
measurement and change the current address (in the user units) or the current address (in the pulse unit) of
positioning.
Operation error
Error code
(SD0/SD8067)
Description
2801H
The channel number of a module that does not exist is specified.
2821H
Operands that execute transmission between an SM supporting high-speed transfer and an SD supporting high-speed transfer is
designated.
3056H
Timeout occurred while communicating with the target modules during execution of the instruction.
3060H
Signal error was detected while accessing the target modules during execution of the instruction.
3405H
A value outside the data range is set in (n).
3580H
An instruction that cannot be used in an interrupt program is used.
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......