Example 2 - Siemens Metro 21 M216KA Operator's Manual

Distributed i/o device
Table of Contents

Advertisement

Example 2

comparison value for 500 ms pulse duration
Figure 13-20 Example 2
ET 200L, ET 200L-SC and ET 200L-SC IM-SC Distributed I/O Device
EWA 4NEB 780 6009-02c
The following example shows how to count upward periodically, with gate
function, output at comparison value.
Conditions: The input and output address of the counter module have been
parameterized as 0.
Count
periodically
Parameterize
periodic upward counting
with gate function, output at
Set loaded value,
set comparison value
stop gate,
disable output,
accept loaded value
accept comparison value
Loaded value
accepted?
Yes
Do not accept loaded value
Loaded value not
accepted?
Yes
Comparison
value
accepted?
Yes
The 1COUNT40kHz Counter Module
AW 0 = "loaded value"
AW 2 = "comparison value"
A 4.0 = 0
A 4.1 = 0
A 4.2 = 1
A 4.3 = 1
No
E 4.4 = 1 ?
A 4.2 = 0
No
E 4.4 = 0.?
This is the earliest point at which
the loaded value AW 0 can be
changed
No
E 4.5 = 1 ?
13-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents