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.

10.14 MCR (Master Control Relay)<br />

!<br />

Important Notes on Using MCR Functions<br />

Program Control Instructions<br />

Warning<br />

To prevent personal injury or property damage, never use the MCR to replace a<br />

hard-wired mechanical master control relay for an emergency stop function.<br />

Description<br />

The Master Control Relay (MCR) is a relay ladder logic master switch for energizing<br />

and de-energizing power flow. Instructions triggered by the following bit logic and<br />

transfer instructions are dependent on the MCR:<br />

• = <br />

• S <br />

• R <br />

• T , T , T <br />

The T instruction, used with byte, word, and double word, writes a 0 to the memory if<br />

the MCR is 0. The S and R instructions leave the existing value unchanged. The<br />

instruction = writes "0" in the addressed bit.<br />

Instructions dependent on MCR and their reactions to the signal state of the MCR<br />

Signal State<br />

of MCR<br />

= S , R T , T <br />

T <br />

0 ("OFF") Writes 0.<br />

Does not write. Writes 0.<br />

(Imitates a relay that (Imitates a relay that (Imitates a component<br />

falls to its quiet state remains in its current that produces a value<br />

when voltage is state when voltage is of 0 when voltage is<br />

removed.)<br />

removed.)<br />

removed.)<br />

1 ("ON") Normal processing Normal processing Normal processing<br />

MCR( - Begin MCR Area, )MCR - End MCR Area<br />

The MCR is controlled by a stack one bit wide and eight bits deep. The MCR is<br />

energized as long as all eight entries are equal to 1. The MCR( instruction copies the<br />

RLO bit into the MCR stack. The )MCR instruction removes the last entry from the<br />

stack and sets the vacated position to 1. MCR( and )MCR instructions must always<br />

be used in pairs. A fault, that is, if there are more than eight consecutive MCR(<br />

instructions or an attempt is made to execute an )MCR instruction when the MCR<br />

stack is empty, triggers the MCRF error message.<br />

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

A5E00706960-01 10-17

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

Saved successfully!

Ooh no, something went wrong!