Step7 Basic operations, program blocks - DCE FEL ČVUT v Praze
Step7 Basic operations, program blocks - DCE FEL ČVUT v Praze
Step7 Basic operations, program blocks - DCE FEL ČVUT v Praze
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Counters –S_CUD<br />
• I0.0, I0.1 –count pulses<br />
(positive edge)<br />
• I0.2 –with positive edge set the<br />
counter value<br />
• I0.3 –with positive edge reset the<br />
counter value<br />
• Q4.0 –one if C10 not equal to zero<br />
Organisation <strong>blocks</strong><br />
• OB1, OB100, OB35<br />
• OB121 – synchronous interrupt<br />
• OB82, OB86, OB40 – asynchronous (HW) interrupt<br />
• Block parameters(local stack – L)<br />
<strong>Step7</strong> counters<br />
<strong>Step7</strong>: <strong>program</strong> units<br />
Functions and function <strong>blocks</strong><br />
• Function FC<br />
• in, out, in_out, temp parameters<br />
• Function <strong>blocks</strong> FB<br />
• Always with a dedicated data block (DB)<br />
• Additionally stat parameters (global scope –in the DB address space)<br />
• Instance and global DB –another address space<br />
3.10.2012<br />
7