Panasonic FP Series Programming Manual page 897

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

High-speed counter instructions
A maximum of 31 target values can be specified.
The target values must be arranged in ascending order. No value may be used
twice.
When the instruction starts, all output relays are FALSE, except for output relay 0,
which turns to TRUE, provided that the elapsed value is smaller than target value
1. Otherwise, the output relay corresponding to the target value area turns to
TRUE. Example: If the current value is between target value 2 = -4000 and target
value 3 = +4000, output relay 2 is TRUE. In the following example maximum
target value control has been disabled. When the elapsed value reaches the last
target value, counting continues and the elapsed value is not reset to 0.
y
INT0
Maximum target value control
The instruction can be executed using maximum target value control to reset the elapsed value to 0
when the maximum target value has been reached. Maximum target value control can be enabled
in the control code of F165_HighSpeedCounter_Cam_8_Values_DUT. Instead of using maximum
target value control, the elapsed value can also be reset using a reset input or a software reset
(see page 1021).
To perform maximum target value control, positive integer numbers must be specified for all target
values.
896
8000
4000
-4000
-10000
1
2
0
1
3
2
3
4
INT0
Elapsed value of high-speed counter
Execution condition
1
High-speed counter control flag
2
Output relay 0-4
3
Interrupt program 0
8000
Target value 4
4000
Target value 3
-4000
Target value 2
-10000
Target value 1

Advertisement

Table of Contents
loading

Table of Contents