Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-58
The followin
g
points should be read while stud
y
in
g
the example on the ri
g
ht of the pa
g
e.
Please note, all normal rules associated with hi
g
h speed counters still apply.
The data table is processed one ‘record
number’ at a time, i.e onl
y
1 record is ever
active as the comparison data. The currentl
y
active record number is stored in data re
g
ister
D8130. As the comparison value for the active
record is ‘reached’, the assi
g
ned ‘Y’ device is
SET or RESET and the active ‘Record number’
is incremented b
y
1. Once all records in a data
table have been processed, the current record
pointer (D8130) is reset to 0 (the table is then
read
y
to process a
g
ain) and the operation
complete fla
g
M8131 is set ON.
If the hi
g
h speed counter is reset (b
y
pro
g
ram
or hardware input), when it resumes countin
g
and reaches the first record’s comparison value,
the M8131 fla
g
will be reset. Both the status of
M8131 and contents of D8130 are not editable
b
y
the user. If the DHSZ instruction is turned
OFF then all associated fla
g
s are reset.
Care should be exercised when resettin
g
the
hi
g
h speed counter or turnin
g
OFF the DHSZ
instruct as all associated ‘Y’ output devices will
remain in their last state, i.e. if an output was
ON it will remain ON until independentl
y
reset
b
y
the user.
The data within inactive records can be
chan
g
ed durin
g
operation allowin
g
data tables
to be updated. An
y
chan
g
e made is processed
at the end of the current pro
g
ram scan. The
HSZ instruction will continue to process onl
y
the
active data record, i.e. it will not reset due to the
updatin
g
of an inactive data record.
When the DHSZ instruction is initiall
y
activated it will not process a comparison until the
followin
g
pro
g
ram scan as the CPU requires a sli
g
ht time dela
y
to initialize the comparison
table.
0
[D150, D151]
K321
1
Record
number
[D8130]
Selected 'Y'
Output
Device
[D
+2
]
SET/RESET
'Y'Device
(1=SET,
0=RESET)
[D
+3
]
Comparison
value
(lower/upper
register)
[D, D
+1
]
2
3
4
[D154, D155]
K432
[D158, D159]
K543
[D162, D163]
K765
[D166, D167]
K765
[D152]
H10 (Y10)
[D156]
H10 (Y10)
[D160]
H10 (Y10)
[D164]
H10 (Y10)
[D168]
H37 (Y37)
[D153]
K1
[D157]
K0
[D161]
K1
[D165]
K0
[D169]
K1
321
432
543
654
765
Y10
Y37
ON
OFF
M8131
D8130 0 1 2 3 4 0
C251 - count value
equals HSZ
comparison value
C251 reset
M8000
K9999
M8130C251DHSZ D150
K5
C251
X17