Download Print this page

Panasonic FP-XH Series User Manual page 154

Programmable controller
Hide thumbs Also See for FP-XH Series:

Advertisement

10.3 High-speed Counter Instruction
10.3.3 [F166 HC1S] High-speed Counter Target Value Match ON Instruction
and [F167 HC1R] High-speed Counter Target Value Match OFF Instruction
Turns ON or OFF the specified output when the elapsed value of the high-speed counter
matches the target value set by the operand.
Instruction format
Operand
Operand
Settings
n
Target channel number of the high-speed counter for the match output
S
Target value data of the high-speed counter or the starting number of the area storing data
D
Output coil which turns ON or OFF when the values match (Y0 to Y29F)
Memory area type that can be specified
Operand
WX
n
-
S
D
-
Outline of operation
● Sets the value specified by [S] as the target value of the high-speed counter, and controls the
specified output [Yn] when the elapsed value matches the target value. This operation is
executed as an interrupt processing.
● In the case of [F166 HC1S] instruction, the output turns ON from OFF. In the case of [F167
HC1R] instruction, the output turns OFF from ON.
● Stores the value of [S] in the target value area when the instruction is executed.
● Clears the setting of the target value and the control of the target value match output when
the value matches the target value.
● For resetting the output turned ON/OFF when the values match, use the RST instruction or
F0 (MV) instruction, or use the F166 (HC1R) instruction and F167 (HC1R) instruction in a
pair.
Example of program
The following example shows the program for setting the output Y0 when the elapsed value of
the high-speed counter CH0 matches K10000.
10-14
WY
WR
WL
SV
-
-
-
-
-
-
EV
DT
LD
-
-
-
-
-
-
-
-
Constant
Index
I
modifier
K
H
-
-
-
-
WUME-FPXHPOSG-01
-
-

Advertisement

loading