Programming The Sample Configuration; Putting The Example Into Operation - Siemens SIMATIC ET 200iSP Operating Instructions Manual

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

Advertisement

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
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 download it to the CPU withPLC > Download.
2.11

Putting the Example into Operation

Commissioning
Turn on the power supply of the ET 200iSP.
ET 200iSP
Operating Instructions, 11/2017, A5E00247483-07
Commissioning guideline
2.11 Putting the Example into Operation
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
Load 3 in ACCU
Is counter => 3 ?
YES, then output 513.0 is active
Is counter < 3 ?
Yes, then output 514.0 is active
41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents