
■
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.
DT9110: Capture value area of the high-
speed counter board channel 0
■
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.
DT9121: High-speed counter board status
monitor area
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
7-5. High-speed Counter Board
F1 DMV, DT9110, DT 0
X5
F0 MV, DT9121, WR 10
R9010
Содержание FP-M Hardware
Страница 1: ...FP M Hardware ACG M0045 1 94 12 FP M Hardware PROGRAMMABLE CONTROLLER ...
Страница 44: ...36 ...
Страница 118: ...110 ...
Страница 266: ...258 RECORD OF CHANGES ACG No Date Description of Changes ACG M0045 1 DEC 1994 First edition RECORD OF CHANGES ...
Страница 267: ......
Страница 268: ......