Programming The Sample Configuration - Siemens SIMATIC ET 200iSP Operating Instructions Manual

Distributed i/o
Hide thumbs Also See for SIMATIC ET 200iSP:
Table of Contents

Advertisement

Commissioning guideline

3.11 Programming the Sample Configuration

3.11
Programming the Sample Configuration
Operating principle
The state of the sensors connected to inputs I512.0 , I513.0 and I514.0 is looked up and
analyzed. I512.0 increments an internal counter and I513.0 decrements it. Input I514.0 resets
the counter to zero.
Depending on the counter reading, the outputs A512.0, A513.0 and A514.0 are set or deleted.
Q512.0 is set when the count is 0. At a count < 3, Q514.0 is set and at ≥ 3, Q513.0 is set.
Programming
Switch to the component view with View > Component view.
Navigate to the block OB1 via SIMATIC 400(1), CPU 410-5H, S7 program (1) and blocks. Double-
click it and confirm the dialog with OK.
Enter the following STL program:
STL
A I 514.0
R C 0
A I 512.0
CU C 0
A I 513.0
CD C 0
AN C 0
= Q 512.0
L C 0
L 3
>=I
= Q 513.0
<I
= Q 514.0
Save the program with File > Save and load it in the CPU with PLC > Load.
54
Explanation
If button 514.0 is active,
set counter to 0
If BERO 512.0 is active,
increment by 1
If BERO 513.0 is active,
decrement by 1
Is counter = 0 ?
YES, then output 512.0 is active
Load counter in ACCU
Charge 3 in the ACCU
Is counter => 3 ?
YES, then output 513.0 is active
Is counter < 3 ?
Yes, then output 514.0 is active
Operating Instructions, 11/2022, A5E00247483-AK
ET 200iSP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents