Sample Programs; Transitional-Pulse Relay (Edge Evaluation) - Siemens SIMATIC S5 Manual

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

STEP 5 Operations
3.5

Sample Programs

Sections 3.5.1 through 3.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).
3.5.1

Transitional-Pulse 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 12.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 12.0 is reset.
Therefore, flag F 12.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
12.0
A
F
12.0
S
F
4.0
AN
I
1.7
R
F
4.0
NOP 0
3-72
Example
CSF
&
I 1.7
F 12.0
F 4.0
(#)
I 1.7
I 1.7
F 4.0
F 12.0
I 1.7
F 4.0
S
I 1.7
R Q
S5-115F Manual
Circuit Diagram
I 1.7
F 12.0
LAD
F 4.0
F 12.0 F 4.0
(#)
S
R Q
EWA 4NEB 811 6149-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents