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

Page 991

Advertising
background image

L-force | PLC Designer

Programming Reference

DMS 4.1 EN 03/2011 TD29

989

Attribute Pragmas
Attribute pragmas might be assigned to a signature in order to influence the
compilation resp. pre-compilation, i.e. the code generation.
There are userdefined pragmas which might be used in combination with conditional
pragmas and there are also the following predefined standard attribute pragmas:
• Attribute 'displaymode'
• Attribute 'ExpandFully'
• Attribute 'global_init_slot'
• Attribute 'hide'
• Attribute 'hide_all_locals'
• Attribute 'initialize_on_call'
• Attribute 'Init_Namespace'
• Attribute 'init_on_onlchange'
• Attribute 'instance-path'
• Attribute 'linkalways'
• Attribute 'Monitoring'
• Attribute 'no_check'
• Attribute 'no_copy'
• Attribute 'No-Exit'
• Attribute 'noinit'
• Attribute 'no_virtual_actions'
• Attribute 'obsolete'
• Attribute 'pack_mode'
• Attribute 'parameterstringof'
• Attribute 'qualified_only'
• Attribute 'reflection'
• Attribute 'symbol'

Userdefined Attributes
It is possible to assign arbitrary user- or application-defined attribute pragmas to
POUs, type declarations or variables. This attribute can be queried before compilation
by means of conditional pragmas.
Syntax:
{attribute 'attribute'}
This pragma instruction is valid for the current or - if placed in a separate line - for the
subsequent line.

Advertising