Reference Information (Manual Reset Of Capture Done Flag) - Panasonic FP7 User Manual

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

Advertisement

8.5.4 Reference Information (Manual Reset of Capture Done Flag)

 Manual reset of capture done flag
• The capture done flag can also be reset by turning off, on and off the corresponding bit in the
capture done flag clear request area.
• The capture 0 done flag and capture 1 done flag can be reset individually.
 Purpose for manual reset of capture done flag
• For the capture done flag, the operation device direct input (IN) and direct output (OT) are
used in combination for confirming if capture operations are completed when performing
multiple capture operations in one scan time. When the intervals between capture operations
are relatively long compared to the scan time, it is not necessary to use them.
 Sample program
Example) Program to read the capture 0 register of CH0 of the high-speed counter unit
installed in the slot No.1 and reset the capture done flag manually
SR13
R100
DF/
High-speed counter
operation requesting
R100
R101
DF
High-speed counter
High-speed counter
operation requesting
operation stop
S1:OT0
Operation ready
request
S1:IN0
Operation ready
done flag
S1:IN4
Capture
done flag
KEY POINTS
When using operation devices "Direct input IN" and "Direct output OT", I/O
refresh processing is performed during arithmetic processing. For using
this operation device, check the box of "Exclude this unit from the scope of
I/O refresh" in the I/O map of the FP7 configuration dialog box not to
perform the normal I/O refresh process executed in a scan time.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
MV.US
H10
(Arbitrary program)
MV.UL
S1:UM003A2
MV.US
H11
MV.US
H10
Set Capture done
S1:UM00115
clear to Manual
request
R101
High-speed counter
operation stop
S1:OT0
Operation ready
request
Read Capture 0
DT100
register data
S1:UM00115
Execute Capture
done flag clear
S1:UM00115

Advertisement

Table of Contents
loading

Table of Contents