5.11 Standard Counter Function Blocks
5.11.4 Counter function blocks
5-203
5
APPLICATION
FUNCTIONS
COUNTER_FB_M
COUNTER_FB_M
5.11.4 Counter function blocks
COUNTER_FB_M
Function
Operation processing
Counts the detected rising edge (from OFF to ON) of . It is not counted when stays ON.
The count starts from the value input to and when the count value reaches the value input to
, turns ON. The current value is stored in .
*1: The first five digits of the serial number are '04012' or higher.
COUNTER_FB_M
indicates the following function.
COUNTER_FB_M
Input argument, s1:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s2:
Counter setting value :Word (signed)
s3:
Counter initial value :Word (signed)
Output argument, d1:
Counter current value :ANY16
d2:
Output :Bit
Universal
UD
High
Performance
* 1
Structured ladder
s1 d1
d2s2
s3
ST
COUNTER_FB_M
(s1, s2, s3, d1, d2)
COUNTER_FB_M
s1 s1
s3
s2
d2
d1