Panasonic FP-M Hardware Manual page 168

Table of Contents

Advertisement

7-5. High-speed Counter Board
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
X5
C51
X5
C51
C50
(DF)
1
F1 DMV, K500, DT9104
F1 DMV, K1000, DT9106
C51
(DF)
1
F1 DMV, K-500, DT9104
F1 DMV, K-1000, DT9106
R9010
F60 CMP, WX 0, DT9120
R900B
(DF)
1
F0 MV, WX 0, DT9120
R9010
F0 MV, DT9121, WR 0
Time chart:
A phase
Individual
input mode
B phase
Elapsed value
Output mode
X0 and X1
Software reset
Target setting
Counter output OUT 00
"Target 0 = elapsed
value" output
Counter output OUT 01
"Target 1 = elapsed
value" output
160
CT 50
1
CT 51
2
1
1
1
ON
• • • • • •
OFF
1,000 pulses
ON
OFF
1000
500
0
-500
-1000
ON
OFF
ON
X2
OFF
ON
X5
OFF
ON
OFF
ON
R4
OFF
ON
OFF
ON
R5
OFF
Counting the number of times the target value is updated,
the sign of the target value is changed to positive or
negative.
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,000 pulses

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents