Writing And Reading The Elapsed Value For The High-Speed Counter - Panasonic FPS Series User Manual

Table of Contents

Advertisement

FPΣ User's Manual
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
IV
III
Channel number (channel n: 16#n)
1
Clear high-speed counter instruction (bit 3)
2
0: continue
Reset input (bit 2) (see note)
3
0: enabled
Count (bit 1)
4
0: permit
Reset elapsed value to 0 (bit 0)
5
0: no
Example: 16#2009
Group
Value
IV
2
III
0
II
0
I
9
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).
8
7
4
3
II
1: clear
1: disabled
1: prohibit
1: yes
Description
Channel number: 2
(fixed)
(fixed)
Hex 9 corresponds to binary 1001
Clear high-speed counter instruction: clear (bit 3)
Reset input: enabled (bit 2)
Count: permit (bit 1)
Reset elapsed value to 0: yes (bit 0)
7.3 High-Speed Counter Function
0
I
1
0
0
1
113

Advertisement

Table of Contents
loading

Table of Contents