
6. Programming for High-speed Counter Board
1) High-speed counter board related instructions F0 (MV), F1 (DMV)
• Be sure to use only the F1 (DMV) instruction when changing the target value and reading and changing the elapsed
value of the high-speed counter board stored in special data registers DT9104 through DT9119.
• Be sure to use the F0 (MV) instruction, when changing the setting and reading the status of the high-speed counter
board.
■
Changing the target value
• Only the F1 (DMV) instruction changes the target value of the high-speed counter board stored in special data
registers DT9104 through DT9107 and DT9112 through DT9115.
Program example:
• Changing the target value of the high-speed counter board
When trigger X3 turns ON:
- Transfer the target value 0 “K1000” of board channel
0 to special data registers DT9104 and DT9105.
- Transfer the target value 1 “K2000” of board channel
0 to special data registers DT9106 and DT9107.
Note:
■
Changing and reading the elapsed value
• Only the F1 (DMV) instruction changes and reads the elapsed value of the high-speed counter board stored in the
special data registers DT9108, DT9109, DT9116, and DT9117.
Program example:
• Reading the elapsed value of the high-speed counter board
The elapsed value of board channel 0 stored in DT9108
is copied to data register DT0.
R9010:
Always ON relay
DT9108: Elapsed value area of high-speed
counter board channel 0
• Changing the elapsed value of the high-speed counter board
The elapsed value of board channel 0 is changed to
K123,456 when trigger X2 turns ON.
DT9108: Elapsed value area of high-speed
counter board channel 0
• The target value is processed when 1 is set to bit position 5 (target setting bit for channel 0) of DT9120.
157
7-5. High-speed Counter Board
X3
(DF)
F1 DMV, K1000, DT9104
1
1
F1 DMV, K2000, DT9106
X4
(DF)
F0 MV, WR 0, DT9120
X5
R5
F1 DMV, DT9108, DT 0
R9010
X2
(DF)
F1 DMV, K123456, DT9108
1
1
Содержание 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: ......