Counter Function Blocks - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Counter function blocks

COUNTER_FB_M
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
COUNTER_FB_M
s1
d1
s2
d2
s3
The following function(s) can go in the dotted squares.
COUNTER_FB_M
■Argument
Input/output
Name
argument
Input argument
s1(Coil)
s2(Preset)
s3(ValueIn)
Output argument
d1(ValueOut)
d2(Status)
Processing details
■Operation processing
• Counts the detected rising edge (from OFF to ON) of (s1). It is not counted when (s1) stays ON. The count starts from the
value input to (s3) and when the count value reaches the value input to (s2), (d2) turns ON. The current value is stored in
(d1).
• Valid setting range for (s2) is 0 to 32767.
• Valid setting range for (s3) is -32768 to 32767. however, if negative value is specified, the initial value is 0.
• When resetting the current value of the counter, reset (s1).
Ex.
When instance name is COUNTER_FB_M_1.
[Structured ladder/FBD]
[ST]
COUNTER_FB_M_1(Coil:=Var_M0,Preset:=10,ValueIn:=0,ValueOut:=Var_D10,Status:=Var_M10);
RST(M15,COUNTER_FB_M_1.Coil);
LCPU
ST
(s1, s2, s3, d1, d2)
COUNTER_FB_M
Description
Executing condition (TRUE: Execution, FALSE:
Stop)
Counter setting value
Counter initial value
Counter current value
Output
Resets
Data type
Bit
Word (signed)
Word (signed)
ANY16
Bit
(Coil)
s1
5 APPLICATION FUNCTIONS
5.11 Standard Counter Function Blocks
5
189

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents