Mitsubishi Electronics FX3G User Manual

Page of 964
362
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
2. Device specification range
Only high-speed counters (C235 to C255) can be specified as 
.
3. Only 32-bit operation instructions are available.
Because instructions for high-speed counters are dedicated to 32 bits, make sure to input "DHSZ (FNC 55)".
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) The 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 "13.6.1. Program in which comparison result is set to ON when power is turned ON
[ZCP (FNC 11) instruction]".
6. Priority order in operation among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC 55) 
instructions for the same high-speed counter
→ For details, refer to "6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC
55) instructions for the same high-speed counter" in Subsection 13.4.1.
7. Reset operation by an external terminal
→ For details, refer to "5. Reset operation by an external terminal [M8025*1: HSC (external reset) mode]"
in Subsection 13.4.1.
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 
 (FX
3G
/FX
3GC
/FX
3U
/FX
3UC
)
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.
   
S
  
S
1
  
S
2
  
S
1
  
S
2
  
S
1
  
S
2
   
D
  
S
1
  
S
2
   
D
   
D