Sample Programs; Momentary-Contact Relay (Edge Evaluation) - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

STEP 5 Operations
8.5

Sample Programs

Sections 8.5.1 through 8.5.3 provide a few sample programs that you can enter and test in all
three methods of representation on a programmer with a screen (e.g., the PG 675).
8.5.1

Momentary-Contact Relay (Edge Evaluation)

On each leading edge of the signal at input I 1.7, the AND
condition "A I 1.7 and AN F 4.0" is satisfied; the RLO is "1".
This sets flags F 4.0 and F 2.0 ("edge flags").
In the next processing cycle, the AND condition "A I 1.7 and
AN F 4.0" is not satisfied since flag F 4.0 has already been set.
Flag F 2.0 is reset.
Therefore, flag F 2.0 is "1" for only one program run.
When input I 1.7 is switched off, flag F 4.0 is reset.
This resetting prepares the way for evaluation of the next
leading edge of the signal at input I 1.7.
STL
A
I
1.7
AN
F
4.0
=
F
2.0
A
F
2.0
S
F
4.0
AN
I
1.7
R
F
4.0
NOP 0
8-76
Example
CSF
&
I 1.7
F 2.0
F 4.0
(#)
I 1.7
Circuit Diagram
I 1.7
F 4.0
F 2.0
I 1.7
F 4.0 F 2.0
F 4.0
S
I 1.7
R Q
S5-115U Manual
I 1.7
F 2.0
LAD
F 4.0
(#)
S
R Q
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents