High-Speed Current Value Transfer Of 32-Bit Data - Mitsubishi Electric MELSEC iQ-F Series User Manual

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

Advertisement

High-speed current value transfer of 32-bit data

DHCMOV(P)
These instructions read and write (updates) special register for high-speed counter, pulse width measurement, PWM, and
positioning.
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Transfer source device number
(d)
Transfer source device number
(n)
Specification to clear the device value of the transfer source after the transfer
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
(n)
Processing details
These instructions transfer the data in the device specified by (s) to the device specified by (d). At this time, if the value of (n)
is K0, the value of (s) is not cleared. If the value of (n) is K1, the value of (s) is cleared to "0" after the transfer. The value is
cleared only for SD devices for the current value of high-speed counters or LC devices used as a high-speed counter when
using the FX3 compatible high-speed counter.
When (s) is a device supporting high-speed transfer
• When the DHCMOV instruction is executed, the latest value is acquired such as the current value of a high-
speed counter and transferred to (d).
When (d) is a device supporting high-speed transfer
• When the DHCMOV instruction is executed, value such as the current value of a high-speed counter is
changed.
■Effect of DHCMOV instruction
• By using both input interrupt and DHCMOV instruction, the current value of a high-speed counter can be received at the
rising edge or falling edge of an external input.
• When DHCMOV instruction is used just before a comparison instruction (DCMP, DZCP or comparison contact instruction),
the latest value of the high-speed counter is used in comparison.
14 HIGH-SPEED COUNTER INSTRUCTION
786
14.2 High-speed Current Value Transfer Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
Structured text
ENO:=DHCMOV(EN,s,n,d);
ENO:=DHCMOVP(EN,s,n,d);
Range
Data type
Bit/32-bit signed
binary
Bit/32-bit signed
binary
K0, K1
16-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY_ELEMENTARY
ANY_ELEMENTARY
ANY16_U
Constant
Others
K, H
E
$

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-f fx5

Table of Contents