FP
Σ
User's Manual
7.3 High-Speed Counter Function
113
Control code settings
Bits 0–15 of the control code are allocated in groups of four. The bit setting in each group is
represented by a hex number (e.g. 0002 0000 0000 1001 = 16#2009).
15
12 11
8
7
4
3
0
I
II
III
IV
1
Channel number (channel n: 16#n)
Clear high-speed counter instruction (bit 3)
2
0: continue
1: clear
Reset input (bit 2) (see note)
3
0: enabled
1: disabled
Count (bit 1)
4
0: permit
1: prohibit
Reset elapsed value to 0 (bit 0)
5
0: no
1: yes
Example: 16#2009
Group
Value
Description
IV
2
Channel number: 2
III 0 (fixed)
II 0
(fixed)
Hex 9 corresponds to binary 1001
Clear high-speed counter instruction: clear (bit 3)
1
Reset input: enabled (bit 2)
0
Count: permit (bit 1)
0
I 9
Reset elapsed value to 0: yes (bit 0)
1
NOTE
Use the reset input setting (bit 2) to disable the reset input allocated in the
system registers.
REFERENCE
Please refer to the FPWIN Pro online help for programming examples.
7.3.4.2 Writing and Reading the Elapsed Value for the High-Speed Counter
The elapsed value is stored as a double word in the special data registers. Access the special
data registers using the system variable sys_diHscChannelxElapsedValue (where x=channel
number).
Summary of Contents for FPS Series
Page 7: ......
Page 17: ......
Page 18: ...Chapter 1 Safety Measures...
Page 21: ......
Page 22: ...Chapter 2 Overview...
Page 32: ...Chapter 3 CPU Types...
Page 47: ...CPU Types FP User s Manual 30 LD Body...
Page 51: ...CPU Types FP User s Manual 34 POU Header and LD Body...
Page 55: ...CPU Types FP User s Manual 38 LD Body...
Page 57: ......
Page 58: ...Chapter 4 Expansion...
Page 73: ......
Page 74: ...Chapter 5 I O Allocation...
Page 81: ......
Page 82: ...Chapter 6 Installation and Wiring...
Page 115: ......
Page 116: ...Chapter 7 High Speed Counter and Pulse Output...
Page 169: ......
Page 170: ...Chapter 8 Communication...
Page 227: ...Communication FP User s Manual 210 LD Body ST Body...
Page 233: ...Communication FP User s Manual 216 POU Header LD Body...
Page 236: ...FP User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2...
Page 237: ...Communication FP User s Manual 220 2 2 ST Body...
Page 266: ...Chapter 9 Security Functions...
Page 273: ......
Page 274: ...Chapter 10 Other Functions...
Page 277: ......
Page 278: ...Chapter 11 Troubleshooting...
Page 289: ......
Page 290: ...Chapter 12 Appendix...