EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 612

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.18 Others
610
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 32-bit operation (DHCMOV)
1) The current value of a high speed counter or ring counter specified by is transferred to the device
specified by .
2) After transfer, the current value of the high speed counter or ring counter is processed as shown in the
table below depending on the set value of "n".
*1. Ring counters (D8099 and D8398) cannot be specified in FX
3UC PLCs earlier than Ver. 2.20 (not
inclusive).
2. High speed counter current value update timing and the effect of DHCMOV instruction
1) High speed counter current value update timing
When a pulse is input to an input terminal for a high speed counter (C235 to C255), the high speed
counter executes up-counting or down-counting.
If the current value of a high speed counter is handled in an instruction such as the normal MOV
instruction, the current value is updated at the timing shown in the table below. As a result, it is affected
by the program scan time.
By using DHCMOV instruction, the current value can be updated and transferred when it is executed.
2) Effect of DHCMOV instruction
a) 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 (at reception of input interrupt).
Refer to the Program example 2.
b) When DHCMOV instruction is used just before a comparison instruction (CMP, ZCP or comparison
contact instruction), the latest value of a high speed counter is used in comparison. Unlike the
comparison instruction for high speed counters (DHSCS, DHSCR or DHSZ), the following points must
be kept in mind when using the DHCMOV instruction.
- When the current value of a hardware counter is compared using CMP, ZCP or comparison contact
instruction (not using a designated high speed counter comparison instruction), a hardware counter
does not change into a software counter.
FX Structured Programming Manual (Device & Common)
- When the number of high speed software counter comparison instructions is reduced, the total
frequency limitation is decreased.
FX Structured Programming Manual (Device & Common)
- When it is necessary to execute comparison and change an output contact (Y) as soon as the
current value of a high speed counter changes, use a designated high seed counter comparison
instruction (DHSCS, DHSCR or DHSZ)
- DHCMOV instruction can be used as many times as necessary.
Device [ +1, ] after instruction is executed
High speed counter C235 to C255
Current value of high speed counter [+1,]
Ring counter
*1
D8099
D8099
"0" is stored in +1.
D8398
Current value of [D8399, D8398] [+1,]
"n" set value Operation
K0(H0) Does not clear the current value (no processing).
K1(H1) Clears the current value to "0".
Current value update timing
Hardware counter When OUT instruction for the counter is executed
Software counter Every time a pulse is input
DHCMOV
EN ENO
d
s
n
Specification to clear the current
value of high speed counter or ring
counter (transfer source) after transfer
Command
input
Label 1
*1
Label
*2
*2.
This defines the device of the high speed counte
r
or ring counter of the transfer destination.
This defines the transfer destination device.
*1.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals