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
WY
WR
WL
SV
EV
DT
LD
I
Constant
Index
modifier
K
H
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.3 High-speed Counter Instruction
10-14
WUME-FPXHPOSG-01
Summary of Contents for FP-XH Series
Page 2: ... MEMO 2 WUME FPXHPOSG 01 ...
Page 18: ... MEMO 1 10 WUME FPXHPOSG 01 ...
Page 30: ... MEMO 3 8 WUME FPXHPOSG 01 ...
Page 51: ...4 4 Reading Elapsed Values WUME FPXHPOSG 01 4 21 ...
Page 52: ... MEMO 4 22 WUME FPXHPOSG 01 ...
Page 88: ... MEMO 5 36 WUME FPXHPOSG 01 ...
Page 94: ... MEMO 6 6 WUME FPXHPOSG 01 ...
Page 140: ... MEMO 9 8 WUME FPXHPOSG 01 ...
Page 193: ... MEMO WUME FPXHPOSG 01 ...
Page 194: ...Panasonic Industrial Devices SUNX Co Ltd 2020 October 2020 WUME FPXHPOSG 01 ...