EasyManua.ls Logo

FATEK FBs-4A2D - C (Counter)

FATEK FBs-4A2D
348 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic Function Instruction
6-5
C
COUNTER
16-Bit: C0C19932-Bit: C200C255
C
Symbol
Operand
Cn: The Counter number
PV:
Preset value
WX WY WM WS TMR CTR HR IR OR SR ROR DR K
Range
Ope-
rand
WX0
WX240
WY0
WY240
WM0
WM1896
WS0
WS984
T0
T255
C0
C255
R0
R3839
R3840
R3903
R3904
R3967
R3968
R4167
R5000
R8071
D0
D4095
0
2147483647
Cn
PV
There are total 200 16-Bit counters (C0~C199). The range of preset value is between 0~32767. C0~C139
are Retentive Counters and the CV value will be retained when the PLC turns on or RUN again after a
power failure or a PLC STOP. For Non Retentive Counters, if a power failure or PLC STOP occurs, the CV
value will be reset to 0 when the PLC turns on or RUN again.
There are total 56 32-Bit counters (C200~C255). The range of the preset value is between 0~2147483647.
C200~C239 are Retentive Counters and C240~C255 are Non Retentive Counters.
The default number and assignment of the counters are shown below, if necessary can use the
"CONFIGURATION" function to change the settings.
To insure the proper counting, the sustain time of input status of CLK should greater than 1 scan time.
The max. counting frequency with this instruction can only up to 20Hz, for higher frequency please use the
high-speed soft/hardware counter.
Description
When "CLR" is at 1, all of the contact Cn, FO0 (CUP), and CV value of the counter CV are cleared to 0 and
the counter stops counting.
When "CLR" is at 0, the counter is allowed to count up. The Counter counts up every time the clock "CK"
changes from 0 to 1 (adds 1 to the CV) until the cumulative current value is equal to or greater than the
preset value (CV>=PV), the counter "Count-Up" and the contact status of the counter Cn and FO0 (CUP)
changes to 1. If the input status of clock continues to change, even the cumulative current value is equal
and greater than the preset value, the CV value will still accumulate until it reaches the up limit at 32767 or
2147483647. The contact Cn and FO0 (CUP) stay at 1 as long as CV>=PV unless the "CLR" input is set to
1.please refer the diagram
c below)。
If the FBS-PLC OS version is higher than V3.0 (inclusive), the M1973 can set to 1 so the CV will not
accumulate further after “Count Up” and stops at the PV. M1973 default value is 0, therefore the status of
M1973 can be set before executing any counter instruction in the program to individually set the counter
CV to continue accumulating or stops at the PV after “Count Up” (please refer to the diagram
d below).

Other manuals for FATEK FBs-4A2D

Related product manuals