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 />

The negated (inverted) RLO:<br />

1<br />

0<br />

250 ms<br />

Every 250 ms the RLO bit is 0. Then the BEC statement does not end the processing<br />

of the block. Instead, the contents of memory byte MB100 is incremented by 1.<br />

The contents of memory byte MB100 changes every 250 ms as follows:<br />

0 -> 1 -> 2 -> 3 -> ... -> 254 -> 255 -> 0 -> 1 ...<br />

Achieving a Specific Frequency<br />

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

From the individual bits of memory byte MB100 you can achieve the following<br />

frequencies:<br />

Bits of MB100 Frequency in Hertz Duration<br />

M 100.0 2.0 0.5 s (250 ms on / 250 ms off)<br />

M 100.1 1.0 1 s (0.5 s on / 0.5 s off)<br />

M 100.2 0.5 2 s (1 s on / 1 s off)<br />

M 100.3 0.25 4 s (2 s on / 2 s off)<br />

M 100.4 0.125 8 s (4 s on / 4 s off)<br />

M 100.5 0.0625 16 s (8 s on / 8 s off)<br />

M 100.6 0.03125 32 s (16 s on / 16 s off)<br />

M 100.7 0.015625 64 s (32 s on / 32 s off)<br />

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

A M10.0 //M 10.0 = 1 when a fault occurs. The fault lamp blinks at a frequency of 1<br />

Hz when a fault occurs.<br />

A M100.1<br />

= Q 4.0<br />

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

B-8 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!