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.

Program Control Instructions<br />

10.16 MCR( Save RLO in MCR Stack, Begin MCR<br />

Format<br />

Description<br />

Important Notes on Using MCR Functions<br />

MCR(<br />

MCR( (open an MCR area) saves the RLO on the MCR stack and opens a MCR<br />

area. The MCR area is the instructions between the instruction MCR( and the<br />

corresponding instruction )MCR. The instruction MCR( must always be used in<br />

combination with the instruction )MCR.<br />

If RLO=1, then the MCR is "on." The MCR-dependent instructions within this MCR<br />

zone execute normally.<br />

If RLO=0, then the MCR is "off."<br />

The MCR-dependent instructions within this MCR zone execute according to the<br />

table below.<br />

Instructions dependent on MCR Bit State<br />

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

The MCR( and )MCR instructions can be nested. The maximum nesting depth is<br />

eight instructions. The maximum number of possible stack entries is eight. Execution<br />

of MCR( with the stack full produces a MCR Stack Fault (MCRF).<br />

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

writes: - - - - - 0 1 - 0<br />

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

10-20 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!