01.07.2013 Views

Programming manual M238 | 3 MB - BERGER - POSITEC

Programming manual M238 | 3 MB - BERGER - POSITEC

Programming manual M238 | 3 MB - BERGER - POSITEC

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.

Step Action<br />

Function and Function Block Representation<br />

3 Function Blocks are called using a CAL instruction:<br />

Use the Input Assistant to select the FB (right-click and select Insert Box in context menu).<br />

Automatically, the CAL instruction and the necessary I/O are created.<br />

Each parameter (I/O) is an instruction:<br />

Value to inputs are set by ":=".<br />

Values to outputs are set by "=>".<br />

4 In the CAL right-side field, replace ??? with the instance name.<br />

5 Replace other ??? with an appropriate variable or immediate value.<br />

To illustrate the procedure, consider this example with the TON Function Block<br />

graphically presented below:<br />

Function Block Graphical Representation<br />

TON<br />

In IL language, the function block name is used directly in the Operator Column:<br />

Function Block Representation in SoMachine POU IL Editor<br />

TON<br />

EIO0000000384 04/2012 231

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

Saved successfully!

Ooh no, something went wrong!