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.

10.18 MCRA Activate MCR Area<br />

Format<br />

Description<br />

Status word<br />

Example<br />

Important Notes on Using MCR Functions<br />

MCRA<br />

Program Control Instructions<br />

MCRA (Master Control Relay Activation) energizes the MCR dependency for the<br />

instructions following after it. The instruction MCRA must always be used in<br />

combination with the instruction MCRD (Master Control Relay Deactivation). The<br />

instructions programmed between MCRA and MCRD are dependent upon the signal<br />

state of the MCR bit.<br />

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

bits.<br />

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

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

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

MCRA //Activate MCR area.<br />

A I 1.0<br />

MCR( //Save RLO in MCR stack, open MCR area. MCR = "on" when RLO=1 (I 1.0 ="1");<br />

MCR = "off" when RLO=0 (I 1.0 ="0")<br />

A I 4.0<br />

= Q 8.0 //If MCR = "off," then Q 8.0 is set to "0" regardless of I 4.0.<br />

L MW20<br />

T QW10 //If MCR = "off," then "0" is transferred to QW10.<br />

)MCR //End MCR area.<br />

MCRD //Deactivate MCR area.<br />

A I 1.1<br />

= Q 8.1 //These instructions are outside of the MCR area and are not dependent upon<br />

the MCR bit.<br />

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

A5E00706960-01 10-23

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

Saved successfully!

Ooh no, something went wrong!