ST Code Development

 

When programming POUs in the IEC 61131 programming language ST (Structured Text) by typing the ST expressions and statements in the textual code editor, the required variables have to be declared manually in the related local variables worksheet. After the declaration, they can be inserted into the code using the IntelliSense function. Functions and function blocks can be inserted using the Edit Wizard. In doing so, FB instance names are declared during insertion.

To open a code worksheet, double-click the desired icon:

OpenCodeWS_ST.gif

Verified user POUs: After verifying the code of a POU, the particular POU can be marked as verified via context menu. When the verification flag is set, the POU is write-protected and shown with a different tree icon: ico_VerifiedPOUs.gif

Refer to the topic "POU Verification".

Safety-relevant peculiarities in ST

The following restrictions apply:

Features of the Text Editor

NOTE:

Code and variables can only be edited if you have logged-on at 'Development' level using the correct project password ('Project > Project Log On' menu item).

NOTE:

EcoStruxure Machine Expert - Safety provides a certification manager for certifying the completed project after successful commissioning. A certified project is protected by password against modifications. (Such modifications would result in a new project acceptance procedure and certification.)

If you can't edit the project although you are logged-on correctly, verify whether the project is already certified. This is indicated in the status bar (rightmost):

Statusbar_CertificationOn.GIF 

Refer to the topic "Project certification" for detailed information.

Click here for related topics