2.10
Programming the Sample Configuration
Principle of operation
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 value, outputs Q512.0, Q513.0 and Q514.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
Change to the component view with View > Component View.
Open the following in succession: SIMATIC 400(1), CPU 416-3 DP, S7 Program(1) and blocks
until you can see the block OB1. Double-click on OB1 and confirm the dialog with OK.
Enter the following STL program:
STL
Explanation
A I 514.0
If button 514.0 is active,
R C 0
set counter to 0
A I 512.0
If BERO 512.0 is active,
CU C 0
increment by 1
A I 513.0
If BERO 513.0 is active,
CD C 0
decrement by 1
AN C 0
Is counter = 0 ?
= Q 512.0
YES, then output 512.0 is active
L C 0
Load counter in ACCU
L 3
Load 3 in ACCU
>=I
Is counter => 3 ?
= Q 513.0
YES, then output 513.0 is active
<I
Is counter < 3 ?
= Q 514.0
Yes, then output 514.0 is active
Save the program with File > Save and download it to the CPU withPLC > Download.
2.11
Putting the Example into Operation
Commissioning
Turn on the power supply of the ET 200iSP.
Commissioning guideline
2.11 Putting the Example into Operation
ET 200iSP
Operating Instructions, 11/2017, A5E00247483-07
41
Содержание SIMATIC ET 200iSP
Страница 82: ...Configuration options 3 18 Redundancy with IM 152 ET 200iSP 82 Operating Instructions 11 2017 A5E00247483 07 ...
Страница 184: ...Commissioning and Diagnostics 6 8 Diagnostics with STEP 7 ET 200iSP 184 Operating Instructions 11 2017 A5E00247483 07 ...
Страница 194: ...Maintenance 7 7 Reading service data ET 200iSP 194 Operating Instructions 11 2017 A5E00247483 07 ...
Страница 220: ...Terminal modules 9 6 Terminal module TM RM RM ET 200iSP 220 Operating Instructions 11 2017 A5E00247483 07 ...
Страница 372: ...Glossary ET 200iSP 372 Operating Instructions 11 2017 A5E00247483 07 ...
Страница 384: ...Index ET 200iSP 384 Operating Instructions 11 2017 A5E00247483 07 ...