8.5.2 Reading Buffer Area Data
To read data in the buffer area, check the number of completed capture operations
(UM00400), and specify the range of the operation memory according to the number.
Sample program
Example) Program to read the capture value and buffer value of CH0 of the high-speed
counter unit installed in the slot number 1
R0
DF
(
)
R0
DF
S1:UM00400
(
)
R0
DF
(
)
REFERENCE
•
For information on the clear of capture registers and buffers, refer to 8.6
Clearing Capture Values Storage Area.
•
For details of unit memory (UM) numbers, refer to 11.4 Unit Memory
Detailed Specifications.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
COPY.SL
>=.US
U2
MUL.US
SUB.UL
BKMV.SL
MV.SL
S1:UM003A2
K0
DT102
S1:UM00400
U2
DT0
U3
S1:UM00402 S1:I0UM00402
MV.US
H1
S1:UM00114
MV.US
H0
S1:UM00114
Read Capture
DT100
0 register
Clear buffer data
DT220
transfer area
60 points x 2 words
DT0
Number of
completed capture
0 operations x 2 - 3
I0
Read Buffer
DT102
register
Reset Capture 0
register and
buffer