Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
282
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
12.6 DHSZ / High Speed Counter Zone Compare
For 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. Some restrictions to applicable devices
S1: The FX3U and FX3UC PLCs only are applicable.
Not indexed (V, Z).
S2: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3: The FX
3U and FX3UC PLCs only are applicable.
4. Caution on values set in the comparison value 1 and comparison value 2
Make sure that is smaller than or equivalent to .
5. Relationship between the comparison timing and the result output
1) DHSZ instruction executes comparison and outputs the result only when a counting pulse is input to a
high speed counter.
(When is "1000" and is "1999", the output is set to ON as soon as the current value of
C235 changes from "999" to "1000" or from "1999" to "2000".)
2) Because the comparison result cannot be obtained when restoring the power or when the PLC mode
switches from STOP to RUN, the result is not output even if the comparison condition is provided.
For details, refer to "Program in which comparison result is set to ON when power is turned ON
[ZCP] instruction" that is described later.
6. Precedence of DHSCS, DHSCR and DHSZ instructions to one particular high speed counter
Refer to caution 6 in "Common cautions on using instructions for high speed counter" which is
described in Section 12.4.
7. Reset operation by an external terminal
Refer to caution 5 in "Common cautions on using instructions for high speed counter" which is
described in Section 12.4.
8. Number of occupied devices
1) The comparison value occupies two devices from or respectively.
2) The output occupies three devices from .
9. When an output (Y) is specified in (D) (FX3G/FX3GC/FX3U/FX3UC)
When Y6 or Y7 is specified as an output (Y), the refresh timing of the three outputs (Y) occupied by
the DHSZ instruction is different for each output.
To make the refresh timing of three points simultaneous, specify Y0 to Y5.
Example: When Y006 is specified as an output (Y), the refresh timing is different between Y006, Y007 and
Y010.
M8000
Y012
INT_TO_DINT
_INT
K20000
GT_E
EN
_IN
_IN
ENO
CN251
INT_TO_DINT
_INT
K20000
LE_E
EN
_IN
_IN
ENO
CN251
INT_TO_DINT
_INT
K10000
GE_E
EN
_IN
_IN
ENO
CN251
REF
EN
d
n
ENO
K8
Y010
Y010
Y011
INT_TO_DINT
_INT
K10000
LT_E
EN
_IN
_IN
ENO
CN251