![FATEK FBs Series Скачать руководство пользователя страница 130](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826130.webp)
Basic Function Instruction
6-5
C
COUNTER
(
16-Bit: C0
~
C199
,
32-Bit: C200
~
C255
)
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 FB
S
-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).
Содержание FBs Series
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...