07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Workshop PG5<br />

Program structures<br />

5.4 Structure View and Execution Path<br />

Once you have built your program, you can view the block structure of the program. Click on<br />

the Block structure view icon, located in the tool bar of the project manager. This will display<br />

the structure, and show you which COB is calling which PB, FB, or SB. The display below is<br />

for the FB example on the preceding page. It shows that FB1 is being called by COB 0 twice.<br />

Block structure<br />

view icon.<br />

Block structure<br />

view<br />

To display the execution path, you need to be online and the program running. Stop<br />

the program and place the curser in the center of the page and right click the mouse.<br />

This will display the pull down menu below. Click on Execution path, and it will<br />

display the path. This works with the above program because it consists of only<br />

FB’s. For a program with several segements, you would have to set break points to<br />

ensure you stop within a FB, PB, or SB. Setting break points is explained in<br />

chapter 7.<br />

The display shows that the FB 1 was called from<br />

the COB 0. (25) is the line number that we return<br />

to when the FB is finished. (10) is the line<br />

that we stopped on in the FB.<br />

© SAIA-Burgess Controls AG Page 5-6

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

Saved successfully!

Ooh no, something went wrong!