Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-56
b) If more than one hi
g
h speed counter function is used for a sin
g
le counter the selected fla
g
devices (D) should be kept within 1
g
roup of 8 devices, i.e. Y0-7, M10-17.
c) All hi
g
h speed counter functions use an interrupt process, hence, all destination devices (D)
are updated immediatel
y
.
5.6.5 HSCR (FNC 54)
Operation:
The HSCR, compares the current value of the
selected hi
g
h speed counter (S
2
) a
g
ainst a
selected value (S
1
). When the counters current
value chan
g
es to a value equal to S
1
, the device
specified as the destination (D) is reset. In the example above, Y10 would be reset onl
y
when
C255’s value stepped from 199 to 200 or from 201 to 200. If the current value of C255 was
forced to equal 200 b
y
test techniques, output Y10 would
NOT
reset.
For further,
g
eneral points, about usin
g
hi
g
h speed counter functions, please see the
subsection ‘Points to note’ under the HSCS (FNC 53). Relevant points are; a, b, and c.
Please also reference the note about the number of hi
g
h speed instructions allowable.
Mnemonic Function
Operands
Program steps
S
1
S
2
D
HSCR
FNC 54
(Hi
g
h speed
counter
reset)
Resets the
selected output
when the
specified hi
g
h
speed counter
equals the test
value
K, H,
KnX, KnY,
KnM, KnS,
T, C, D, V, Z
C
Note:
C = C235 to
C255, or
available hi
g
h
speed
counters
Y, M, S
C
Note:
If C, use same
counter as S
2
DHSCR:
13 steps
Use of interrupt pointers
FX
(2C)
and FX
2N
MPUs can use interrupt pointers I010 throu
g
h I060 (6 points) as destination
devices (D). This enables interrupt routines to be tri
gg
ered directl
y
when the value of the
specified hi
g
h speed counter reaches the value in the HSCS instruction.
Note:
FX
0
,FX
0N
users - Max. 4 simultaneousl
y
active HSCS/R instructions. FX users Max. 6
simultaneousl
y
active HSCS/R and HSZ instructions. Please remember that the use of hi
g
h
speed counter functions has a direct impact on the maximum allowable countin
g
speed! See
pa
g
e 4-22 for further details.
M8000
C255 Y10
[ S1 ] [ S2 ]
K200
[ D ]
DHSCR