Notes On Programming The High-Speed Counter - Panasonic FP-M Hardware Manual

Table of Contents

Advertisement

7-5. High-speed Counter Board
Reading the capture value
• Only the F1 (DMV) instruction reads the capture value of the high-speed counter board stored in special data
registers DT9110, DT9111, DT9118, and DT9119.
Program example:
• Reading the capture value of the high-speed counter board
The capture value of board channel 0 stored in DT9110 is
copied to data register DT0 when trigger X5 turns ON.
Monitoring the status of the high-speed counter board
• The F0 (MV) instruction reads the control status of the high-speed counter board stored in special data register
DT9121.
Program example:
• Monitoring the status of the high-speed counter board
The control status of the high-speed counter board stored
in DT9121 is copied to word internal relay WR10.

2) Notes on programming the high-speed counter

• Operation errors will occur in the following circumstances:
- The high-speed counter board is disconnected from the FP-M control board when instructions F0 (MV) and
F1 (DMV) are executed.
- The setting of the input mode selector on the high-speed counter board is incorrect when instructions F0 (MV)
and F1 (DMV) are executed.
- When the target value is consecutively set to the same channel and executed.
- When the changing/reading of the elapsed and capture value are executed consecutively.
If executing consecutively, execute leaving one or more scan times open.
• When changing/reading the contents of special data registers DT9104 through DT9119, be sure to use the F1 (DMV)
instruction.
• Once the operation mode is specified, the high-speed counter operates in the mode until a new setting is made.
• An error will occur if an elapsed value is read simultaneously in a normal program and interrupt program.
158
X5
F1 DMV, DT9110, DT 0
DT9110: Capture value area of the high-
speed counter board channel 0
R9010
F0 MV, DT9121, WR 10
DT9121: High-speed counter board status
monitor area

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents