Counter_Fb_M - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
6.9

COUNTER_FB_M

Outline
This counter starts counting when the condition turns ON from OFF and generates an output when counting
up to the set value.
A counter initial value can be set.
1. Format
Function name
COUNTER_FB_M
*1.
Refer to "Cautions".
2. Set data
Variable
Coil
Input
Preset
variable
ValueIn
ValueOut
Output
variable
Status
Function and operation explanation
The counter starts counting when detecting the rising edge (from OFF to ON) of the input argument Coil. It
does not start counting if the Coil remains ON.
The counter starts counting from the value of input argument ValueIn. When the input argument Preset value
is reached, the output argument Status turns ON.
The current count value is stored in the output argument ValueOut.
[Structured ladder]
Var_M0
Coil
10
Preset
1
ValueIn
[ ST ]
Instance name (Coil:= Var_M0,Preset:=10,Valueln:=1);
Var_D10:=Instance name.ValueOut;
Var_M10:=Instance name.Status;
*1.
Var_D10 is a global label and is defined as D10.
*2.
Var_M10 is a global label and is defined as M10.
FX
3U(C)
Expression in each language
Structured ladder
Instance name
COUNTER_FB_M
Coil
ValueOut
Preset
Status
ValueIn
Execution condition
Counter set value
Counter initial value
Counter current value
Counter output contact
Instance name
COUNTER_FB_M
Var_D10
ValueOut
Status
Var_M10
FX
FX
FX
3G
2N(C)
1N(C)
COUNTER_FB_M(Coil,Preset,
ValueIn); *1
Example:
Instance name
(Coil:=X000,Preset:=D0,
ValueIn:=D10);
D20:=Instance name
ValueOut;
M0:=Instance name
Status;
Description
timing chart
Var_M0
*1
*2
Value of Var_D10
Var_M10
6 Standard Function Blocks
6.9 COUNTER_FB_M
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Word [signed]
Word [signed]
ANY16
Bit
ON
ON
ON
1
2
3
10
1
FX
0(S)
2
3
4
5
6
A
ON
223

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents