26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Programming Examples<br />

<strong>Statement</strong> <strong>List</strong> to control the Conveyor Belt<br />

<strong>STL</strong> Explanation<br />

O I 1.1 //Pressing either start switch turns the motor on.<br />

O I 1.3<br />

S Q 4.0<br />

O I 1.2 //Pressing either stop switch or opening the normally closed contact at the<br />

end of the belt turns the motor off.<br />

O I 1.4<br />

ON I 1.5<br />

R Q 4.0<br />

Example 2: Detecting the Direction of a Conveyor Belt<br />

Q 4.0<br />

The following figure shows a conveyor belt that is equipped with two photoelectric<br />

barriers (PEB1 and PEB2) that are designed to detect the direction in which a<br />

package is moving on the belt. Each photoelectric light barrier functions like a<br />

normally open contact.<br />

PEB2 PEB1<br />

Q 4.1<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

B-4 A5E00706960-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!