Panasonic FP Series Programming Manual page 892

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

28.2 Writing the high-speed counter control code
The special data register where the high-speed counter and pulse output control code are stored
can be accessed with the system variable sys_wHscOrPulseControlCode. (The system variable
sys_wHscOrPulseControlCode corresponds to special data register DT90052.)
Operations performed by the high-speed counter control code
Clearing high-speed counter instructions (bit 3)
Enabling/disabling the reset input (hardware reset) of the high-speed counter (bit
2)
Enabling/disabling counting operations (bit 1)
Resetting the elapsed value (software reset) of the high-speed counter to 0 (bit 0)
The control code settings for each channel can be monitored using the system variables
sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode (where x=channel number).
The settings of this system variable remain unchanged until another setting operation is executed.
Description for FP, FP-X, FP0R:
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
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
8
7
4
3
III
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)
High-speed counter instructions
0
I
1
0
0
1
891

Advertisement

Table of Contents
loading

Table of Contents