Hide thumbs Also See for S7-1200:
Table of Contents
Basic instructions
7.3 Counter operations
Table 7- 26
Operation of CTD (count down)
Counter
The CTD counter counts down by 1 when the value of
parameter CD changes from 0 to 1. The CTD timing diagram
shows the operation for an unsigned integer count value
(where PV = 3).
If the value of parameter CV (current count value) is equal
to or less than 0, the counter output parameter Q = 1.
If the value of parameter LOAD changes from 0 to 1, the
value at parameter PV (preset value) is loaded to the
counter as the new CV (current count value).
Table 7- 27
Operation of CTUD (count up and down)
Counter
The CTUD counter counts up or
down by 1 on the 0 to 1
transition of the count up (CU) or
count down (CD) inputs. The
CTUD timing diagram shows the
operation for an unsigned
integer count value (where PV =
4).
If the value of parameter CV
is equal to or greater than the
value of parameter PV, then
the counter output parameter
QU = 1.
If the value of parameter CV
is less than or equal to zero,
then the counter output
parameter QD = 1.
If the value of parameter
LOAD changes from 0 to 1,
then the value at parameter
PV is loaded to the counter
as the new CV.
If the value of the reset
parameter R is changes from
0 to 1, the current count
value is reset to 0.
222
Operation
Operation
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller
Table of Contents
loading

Table of Contents