Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
24 Applied Instructions (Others)
24.5 DHCMOV / High Speed Counter Move
599
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Function change depending on the version
The function of this instruction changes depending on the version as shown in the table below.
Error
An operation error occurs in the following case. The error flag M8067 turns ON, and the error code is stored
in D8067.
1) When a device specified in or is outside the allowable range (error code: K6705)
Program examples
1. Program examples 1
In the program example below, the current value of the high speed counter C235 is compared in each
operation cycle, and then the output Y000 is set to ON if the current value is "K500" or more (when the current
value of C235 is not cleared.)
2. Program examples 2
In the program example below, the current value of C235 is transferred to D201 and D200, and the current
value of C235 is cleared when X001 turns from OFF to ON.
Applicable version
Item Outline of function
FX3U FX3UC
Ver. 2.20 or later Ver. 2.20 or later Target device
Ring counter (D8099 and D8398) can be specified in the device specified by
.
[Structured ladder/FBD] [ST]
The AND compare instruction (ANDD>=) is not available in
S
M8000
DHCMOV
EN ENO
d
s
n
C235
D0
ANDD>=
EN
s1
s2
ENO
D0
Y000
K500
K0
*1
K1: The current value of the high speed counter is cleared when
DHCMOV instruction is executed.
K0: The current value of the high speed counter is not cleared
when DHCMOV instruction is executed.
*1.
*1. K0: The current value of the high speed counter is not cleared when DHCMOV instruction is executed.
K1: The current value of the high speed counter is cleared when DHCMOV instruction is executed.
M8394
EI
EN ENO
DHCMOV
EN ENO
d
s
n
C235
K1*
1
D200
[ST]
EI(TRUE);
DHCMOV(M8394,C235,K1,D200);
[Structured ladder/FBD]
[Main program] [Main program]
[Interrupt program]
[Interrupt program]
(Event: I101)