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.

Load and Transfer Instructions<br />

9.3 L STW Load Status Word into ACCU 1<br />

Format<br />

Description<br />

Status word<br />

Example<br />

L STW<br />

L STW (instruction L with the address STW) loads ACCU 1 with the contents of the<br />

status word. The instruction is executed without regard to, and without affecting, the<br />

status bits.<br />

Note<br />

For the S7-300 series CPUs, the statement L STW does not load the FC, STA, and<br />

OR bits of the status word. Only bits 1, 4, 5, 6, 7, and 8 are loaded into the<br />

corresponding bit positions of the low word of accumulator 1.<br />

BR CC 1 CC 0 OV OS OR STA RLO /FC<br />

writes: - - - - - - - - -<br />

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

L STW //Load contents of status word into ACCU 1.<br />

The contents of ACCU 1 after the execution of L STW is:<br />

Bit 31-9 8 7 6 5 4 3 2 1 0<br />

Content: 0 BR CC 1 CC 0 OV OS OR STA RLO /FC<br />

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

9-4 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!