
10.3
High-speed Counter Instruction
10-17
Sample program
For FP0H mode
R101
DT90300
K0
F1 DMV
K5000
K0
F167 HC1R
Y0
R100
(
)
DF
R101
X5
(
)
DF
R100
R100
R9110 R103
R101
Y0
<
>
SET
R9110
(
)
DF/
R103
R103
R100
T0
K5
TMX 0
1
2
3
4
5
10
11
Y1
<
>
SET
6
R100
DT90300
K4500
F61 DCMP
7
R100
R102
8
R900C
R102
(
)
DF
Y1
9
<
>
RST
①
Positioning operation is running.
②
Positioning operation starts.
③
Resets the elapsed value of the high-speed counter CH0.
④
Target value match OFF instruction: Y0 turns off when the elapsed value of the high-speed counter
CH0 reaches 5000 pulses.
⑤
Sets Y0 (inverter operation signal).
⑥
Sets Y1 (inverter high-speed signal).
⑦
32-bit data comparison instruction: R900C turns on when the elapsed value of the high-speed counter
CH0 is larger than 4500 pulses.
⑧
Arrival at deceleration point
⑨
Resets Y1 (inverter high-speed signal).
⑩
Positioning done pulse (0.5 sec)
⑪
0.1-second timer: Sets K5. It is used as 0.5-second timer.
(Note): The allocations of control active flags and elapsed value areas for the FP
Σ
mode are different.
For details of the allocation of flags, refer to "12.2.4 When Using High-speed Counter Function".
Summary of Contents for FP0H Series
Page 1: ......
Page 11: ...1 Functions of Unit and Restrictions on Combination ...
Page 19: ...2 Wiring ...
Page 23: ...3 Power ON and OFF and Items to Check ...
Page 30: ...Power ON and OFF and Items to Check 3 8 ...
Page 31: ...4 Settings of Control Unit ...
Page 52: ...Settings of Control Unit 4 22 ...
Page 53: ...5 Operation Patterns ...
Page 89: ...6 Operating Characteristics ...
Page 93: ...7 Instruction References ...
Page 124: ...Instruction References 7 32 ...
Page 125: ...8 Troubleshooting ...
Page 133: ...9 PWM Output Function ...
Page 140: ...PWM Output Function 9 8 ...
Page 141: ...10 High speed Counter Function ...
Page 151: ...10 3 High speed Counter Instruction 10 11 MEMO ...
Page 170: ......
Page 171: ...11 FPΣ Mode ...
Page 180: ...FP Mode 11 10 ...
Page 181: ...12 Specifications ...
Page 196: ...Specifications 12 16 ...
Page 198: ......
Page 199: ......
Page 200: ......