Reading Capture Data; Reading Capture Register Data - Panasonic FP7 User Manual

High-speed counter unit
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

8.5 Reading Capture Data

8.5.1 Reading Capture Register Data

 Area in which capture data is stored
• Latest captured data is stored in the capture 0 register or capture 1 register of unit
memory(UM).
• The values ((Capture 1 register) - (Capture 0 register)) are stored in the capture register
difference value area.
• They are stored as signed 32-bit data (-2,147,483,648 to 2,147,483,647).
 Related unit memory (UM) No.
Monitor item
Capture 0 register
Monitor
Capture 1 register
area
Capture register difference value
 I/O allocation
Signal name
Capture 0 done flag
Capture 1 done flag
(Note 1): The above I/O numbers are those for the slot number 1 and the starting word number 10. The I/O numbers
actually used vary according to the slot number where the unit is installed and the starting word number.
 Sample program
Data is read out to arbitrary operation memories using the done flag which indicates the
completion of capture.
Example) Program to read the capture value of CH0 of the high-speed counter unit installed in
the slot number 1
X104
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Unit memory (UM) No.
CH0
CH1
UM003A2-
UM003B2-
UM003A3
UM003B3
UM003A4-
UM003B4-
UM003A5
UM003B5
UM003A6-
UM003B6-
UM003A7
UM003B7
CH0
CH1
X104
X124
X105
X125
MV.SL
S1:UM003A2
CH2
CH3
UM003C2-
UM003D2-
UM003C3
UM003D3
UM003C4-
UM003D4-
UM003C5
UM003D5
UM003C6-
UM003D6-
UM003C7
UM003D7
CH2
CH3
X144
X164
X145
X165
DT100

Advertisement

Table of Contents
loading

Table of Contents