Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 819

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■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
Description
(SD0/SD8067)
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.
14 HIGH-SPEED COUNTER INSTRUCTION
14.2 High-speed Current Value Transfer Instruction
14
817

Hide quick links:

Advertisement

loading