Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
269
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
12.4 DHSCS, DHSCS_I / High Speed Counter Set, High Speed Interrupt Counter Set
Cautions
1. Selection of the counter comparison method
When the DHSCS instruction is used, the maximum frequency and total frequency of the high speed counter
are affected.
Refer to the counting operation described below, and select according to the contents of control whether to
use this instruction or general-purpose comparison instruction.
1) Case to select DHSCS instruction
- When the output should be given when the counting result becomes equivalent to the comparison value
without regard to the scan time of the PLC.
2) Cases to select a general-purpose comparison instruction
- When the required frequency is beyond the counting performance.
- When counting is regarded as important, but the effect of the scan time can be ignored in operations
according to the counting result.
- When the number of an instruction exceeds the allowable limit.
For FX
3U and FX3UC PLCs
For FX
1S, FX1N, FX1NC, FX2N, FX2NC, FX3S, FX3G and FX3GC PLCs
For FX
0S, FX0, FX0N, FXU, and FX2C PLCs
2. Device specification range
Only high speed counters can be specified as .
For details, refer to the following manual.
FX Structured Programming Manual [Device & Common]
3. DHSCS_I instruction
Use the DHSCS_I instruction when executing counter interrupt using the interrupt pointer (I).
Refer to Section 35.6 for the counter interrupt using this instruction.
The FX
0S, FX0, FX0N, FX1S, FX1N, FX1NC, FX3S, FX3G and FX3GC PLCs do not support this instruction.
LDD<=
EN
s1
s2
ENO
D100
SET
EN
d
ENO
Y010
REF
EN
d
n
ENO
Y010
K8
M8000
DHCMOV
EN
s
n
ENO
d
K0
K100
CN251 D100
LDD<=
EN
s1
s2
ENO
CN251
SET
EN
d
ENO
Y010
REF
EN
d
n
ENO
Y010
K8
K40000
INT_TO_DINT
_INT
GE
SET
EN
d
ENO
Y010
K20000
CN251
REF
EN
d
n
ENO
Y010
K8