01.04.2014 Views

63696870_V20_at_S7-1200_USS_v10_SHORT ... - Siemens

63696870_V20_at_S7-1200_USS_v10_SHORT ... - Siemens

63696870_V20_at_S7-1200_USS_v10_SHORT ... - Siemens

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

2 Program Structure<br />

2 Program Structure<br />

Figure 2-1: Program structure<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1_DB<br />

[DB1]<br />

<strong>USS</strong>_DRV_DB_1<br />

[DB1071]<br />

Main [OB1]<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1<br />

[FB1]<br />

<strong>USS</strong>_DRV<br />

[FB1071]<br />

<strong>V20</strong>_<strong>USS</strong>_Param_1_DB<br />

[DB2]<br />

<strong>V20</strong>_<strong>USS</strong>_Param_1<br />

[FB2]<br />

<strong>USS</strong>_RPM<br />

[FC1072]<br />

Copyright <strong>Siemens</strong> AG 2012 All rights reserved<br />

Parameters_1<br />

[B10]<br />

Cyclic interrupt<br />

[OB30]<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1_DB<br />

[DB1]<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1<br />

[FB1]<br />

<strong>USS</strong>_WPM<br />

[FC1073]<br />

<strong>USS</strong>_PORT<br />

[FC1070]<br />

<strong>USS</strong> system instructions<br />

In the screen above, the system blocks marked with a padlock, are cre<strong>at</strong>ed by<br />

STEP 7 itself when calling the instructions with the same name by the blocks<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1 and <strong>V20</strong>_<strong>USS</strong>_Param_1.<br />

Calling the <strong>V20</strong>_<strong>USS</strong>_Control_1 [FB1] in two OBs<br />

Block rel<strong>at</strong>ions<br />

As you can seen in Figure 2-1, the <strong>V20</strong>_<strong>USS</strong>_Control_1 [FB1] is to be called in the<br />

cyclic program part (OB1) as well as in an interrupt OB (OB30). You do not have to<br />

configure the time interval of the interrupt. This task is performed by<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1.<br />

Due to the <strong>USS</strong> system blocks, it is always necessary to also call the<br />

<strong>V20</strong>_<strong>USS</strong>_Control_1 [FB1] in the program when using <strong>V20</strong>_<strong>USS</strong>_Param_1 [FB2].<br />

8

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

Saved successfully!

Ooh no, something went wrong!