High-Speed Current Value Transfer Instruction; High-Speed Current Value Transfer Of 16-Bit Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

9.2

High-speed Current Value Transfer Instruction

High-speed current value transfer of 16-bit data

HCMOV(P)
These instructions read and write (updates) special register for high-speed counter, pulse width measurement, PWM, and
positioning.
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Transfer source device number
(d)
Transfer destination 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)
(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 special devices supporting high-speed transfer.
When (s) is a device supporting high-speed transfer
• When the HCMOV 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 HCMOV instruction is executed, value such as the current value of a high-speed counter is
changed.
■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.
9 HIGH-SPEED COUNTER INSTRUCTION
644
9.2 High-speed Current Value Transfer Instruction
(d)
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
Structured text
ENO:=HCMOV(EN,s,n,d);
ENO:=HCMOVP(EN,s,n,d);
Range
K0, K1
Double word Indirect
U\G
Z
LC
LZ
Data type
Data type (label)
Bit/16-bit signed binary
ANY_ELEMENTARY
Bit/16-bit signed binary
ANY_ELEMENTARY
16-bit unsigned binary
ANY16_U
Constant
specification
K, H
E
Others
$

Advertisement

Table of Contents
loading

Table of Contents