184
FNC
55
1
2
M
3
○○○○
D H S Z
S1
S2
D
S
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S1
D
S2
S
S=C235~C255
S1 : the set value of the lower limit at the zone compare
S2 : the set value of the upper limit at the zone compare
S : the ID No. of the software high speed counter to be
used
D : the destination of the comparison result outputs
DHSZ K100 K200 C255 Y0
M9000
S1 S 2 S
D
Operand
Devices
Software High Speed Counter
Zone Compare
Note
This instruction is a 32-bit instruction; the DHSZ should be always entered when uses this instruction.
There is no limitation on the number of using times about the DHSCS, DHSCR and DHSZ instructions, while
the DHSCT can only be used once in the program. However, the total of these instructions performed at the
same time should not exceed “8”.
Both the Software High Speed Counter and the DHSCS, DHSCR, DHSZ, DHSCT instructions are only
performed to compare when there is an external signal to the input of the counter. The compare action shall
not be performed if the present value of Software High Speed Counter is changed by a transferring
instructions, because there is no counter input signals. Thus, there is not have the compare action, of course
not has the compare outputs.
D occupies 3 consecutive components, should use Y0~Y5 if the D designates to a Y
S1 S2 S1
S
All of the counting value and result outputs of this instruction are processed with interrupt insertion, the Y0~Y2 will
output immediately and irrespective to the Scan Time. The results of the zone comparison are shown as follows:
When K100 > the present value of C255, then Y0=“ON”.
When K100 ≤ the present value of C255 ≤ K200, then Y1=“ON”.
When K200 < the present value of C255, then Y2=“ON”.
If > , then the value of will become both of the Upper/Lower limits to be compared with the .