07.03.2014 Views

Introduction.

Introduction.

Introduction.

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.

5.Program structures<br />

INTRODUCTION: 1<br />

5.1 CYCLIC ORGANIZATION BLOCK (COB 0 TO 15) 1<br />

5.2 PROGRAM BLOCKS (PB 0 TO 299) 3<br />

5.3 FUNCTION BLOCKS ( FB 0 TO 999 ) 5<br />

5.4 STRUCTURE VIEW AND EXECUTION PATH 6<br />

5.5 EXCEPTION BLOCK (XOB) 7<br />

5.6 SEQUENTIAL BLOCKS (SB 0 TO 31) 10<br />

<strong>Introduction</strong>:<br />

The key to fast programs, lies in the structure of a program. The structure is the<br />

most important part of your entire project, because it makes your program readable<br />

to others, makes it portable, easier to extend and to maintain. Before you start to<br />

write your program you need to have an idea about all the different tasks your installation<br />

will have to solve. PG5 organizes the program parts in different kinds of<br />

blocks, each with it's special function:<br />

There are five different types of blocks:<br />

CB's ( Cyclic Organization Blocks)<br />

FB's ( Function Blocks )<br />

PB's ( Program Blocks )<br />

XOB's ( Exception Blocks )<br />

SB's ( Sequential Blocks ) called Graftec

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

Saved successfully!

Ooh no, something went wrong!