AVEVA. PML Basics. Conditions

Initial conditions of the code suggests that, depending on the specific parameters will be carried out one or another part of the program.
The basic syntax is:
if (condition) then
— Code executed when the condition
— If the conditions are not met, the code also will not be executed
endif
Example:
Implementation of action depending on the type of the current element

— If the type of the current element is VALV, then
if (!!CE.Type EQ ‘VALV’) then
— Write to the variable var type of the current element and its name in the form!
!var =  !!CE.Type + ‘ – ‘ + !!CE.Name
— Derive the resulting value
  $P $!var
endif

This post was taken from blog http://pmlinpdms.blogspot.com/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s