Message pragmas, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 989

Advertising
background image

L-force | PLC Designer

Programming Reference

DMS 4.1 EN 03/2011 TD29

987

See the following pragma types:
• Message Pragmas
• Attribute Pragmas
• Conditional Pragmas
not yet implemented: Pragmas as used in 2.3

Message Pragmas
Message pragmas can be used to force the output of messages in the Messages
window during the compilation (build) of the project.
The pragma instruction can be inserted in an existing line or in a separate line in the
text editor of a POU. Message pragmas positioned within currently not "defined"
sections of the implementation code will not be regarded when the project is
compiled. On this see the example provided with the description of the "defined
(identifier)" Conditional Pragma.
There are four types of message pragmas:

Pragma

Message type

{text ''textstring''}

Text: The specified textstring will be displayed.

{info 'textstring''}

Information : The specified textstring will be displayed.

{warning digit 'textstring''} Warning : The specified textstring will be displayed.

Not yet implemented:

The digit indicates the desired warning level between 1 and 4.

Unlike a

"data type-global" Obsolete Pragma this warning is explicitly defined for the
local position.

{error 'textstring'}

Error : The specified textstring will be displayed.

Note: In case of messages of types Information, Warning and Error the source
position of the message - that is where the pragma is placed in a POU - can be
reached via the 'Next Message' command. This is not possible for the Text type.

Advertising