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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming Examples<br />

<strong>Statement</strong> <strong>List</strong><br />

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

A I 0.0 //If there is a transition in signal state from 0 to 1 (positive edge) at input<br />

I 0.0 and, at the same time, the signal state at input I 0.1 is 0, then the<br />

package on the belt is moving to the left.<br />

FP M 0.0<br />

AN I 0.1<br />

S Q 4.1<br />

A I 0.1 //If there is a transition in signal state from 0 to 1 (positive edge) at input<br />

I 0.1 and, at the same time, the signal state at input I 0.0 is 0, then the<br />

package on the belt is moving to the right. If one of the photo-electric light<br />

barriers is broken, this means that there is a package between the barriers.<br />

FP M 0.1<br />

AN I 0.0<br />

S Q 4.0<br />

AN I 0.0 //If neither photoelectric barrier is broken, then there is no package between<br />

the barriers. The direction pointer shuts off.<br />

AN I 0.1<br />

R Q 4.0<br />

R Q 4.1<br />

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

B-6 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!