
■
Example 2: Elapsed value comparison control
High-speed counter board setting conditions: Individual input mode (A phase: 1,000 pulse, B phase: 1,000 pulse)
Program example
Time chart:
Software reset
ON
OFF
Output mode
Elapsed value
ON
OFF
X2
X0 and X1
ON
OFF
Target setting
X5
ON
OFF
ON
OFF
ON
OFF
ON
OFF
0
500
1000
-1000
-500
ON
OFF
ON
OFF
A phase
B phase
Individual
input mode
• • • • • •
1,000 pulses
• • • • • •
Counter output OUT 00
“Target 0 = elapsed
value” output
R4
Counter output OUT 01
“Target 1 = elapsed
value” output
R5
1,000 pulses
X5
CT 50
1
C51
F60 CMP, WX 0, DT9120
R9010
F0 MV, WX 0, DT9120
R900B
(DF)
Counting the number of times the target value is updated,
the sign of the target value is changed to positive or
negative.
X5
CT 51
2
C51
C51
F1 DMV, K-500, DT9104
F1 DMV, K-1000, DT9106
(DF)
F1 DMV, K500, DT9104
C50
F1 DMV, K1000, DT9106
(DF)
F0 MV, DT9121, WR 0
R9010
When counter contact C50 turns ON,
- The target value 0 of high-speed counter board channel
0 is changed to K500.
- The target value 1 of high-speed counter board channel
0 is changed to K1,000.
When counter contact C51 turns ON,
- The target value 0 of high-speed counter board channel
0 is changed to K-500.
- The target value 1 of high-speed counter board channel
0 is changed to K-1,000.
Compares the contents (X0 to X7) of DT9120 with the
contents of WX0.
When WX0
DT9120 and R900B turns ON, high-speed
counter board control mode is set by WX0.
The contents of DT9121 (high-speed counter board status
monitor area) are set to WR 0.
1
1
1
1
1
1
160
7-5. High-speed Counter Board
Содержание 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: ......