Mitsubishi Electric MELSEC iQ-F Series User Manual page 53

Positioning control
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

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.
• Do not overwrite the current value of a high-speed counter using the DHCMOV instruction while executing the pulse density
(rotation speed measurement) or the DSPD instruction.
• Transfer is not possible between an SM supporting high-speed transfer and an SD supporting high-speed transfer.
• When the device supporting high-speed transfer is set as the transfer source (s) by the DHCMOV instruction while the high-
speed I/O function is stopped, the previous value before stop is read out. However, if the function is not executed even
once, the initial value is read out.
Ex.
When SD5303, SD5302 (PWM pulse width) is set as the transfer source (s), the operation is executed as follows.
When the PWM function is not executed
When the PWM function was executed but it is currently stopped
When the PWM function is executed
• When a high-speed counter SD device (current value, maximum value, minimum value) is read out individually, only the
read SD device will be updated. Thus, there may be cases when the high-speed counter's SD device does not satisfy the
relation of minimum value ≤ current value ≤ maximum value temporarily. Refer to the MELSEC iQ-F FX5 User's Manual
(Application) for details on the timing that the high-speed counter's SD device is updated.
The DHCMOV 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.
"0" is read out. (This is not the value of the parameter that is set by GX Works3.)
The value when the PWM function was stopped is read out.
The latest value that is currently operating is read out.
14 HIGH-SPEED COUNTER INSTRUCTION
14.2 High-speed Current Value Transfer Instruction
14
787

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-f fx5

Table of Contents