L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 343

Advertising
background image

L-force | PLC Designer

Editors in PLC Designer



DMS 3.2 EN 02/2011 TD29

341

Extras' 'Jump into Macro'

Symbol:

By this command, or by double clicking on the body of the macro, the macro is opened
for editing in the editor window of the associated POU. The name of the macro is
displayed appended to the POU name in the title bar.

The pin boxes generated for the in- and outputs of the macro during creation can be
handled like normal POU in- and outputs. They can also be moved, deleted, added, etc.
They differ only in how they are displayed and have no position index. For adding you
can use the buttons

(input) resp.

(output), which are available in the menu bar.

Pin boxes have rounded corners. The text in the pin-box matches the name of the pin

in the macro display.

The order of the pins in the macro box follows the order of execution of the elements
of the macro. A lower order index before a higher one, higher pin before lower.

The processing order within the macro is closed, in other words the macro is processed

as a block, at the position of the macro in the primary POU. Commands for
manipulating the order of execution therefore operate only within the macro.

'Extras' 'Expand macro'

With this command, the selected macro is re-expanded and the elements contained in
it are inserted in the POU at the macro's location. The connections to the pins of the
macro are again displayed as connections to the in- or outputs of the elements. If the

expansion of the macro can not occur at the location of the macro box for lack of
space, the macro is displaced to the right and down until enough space is available.

Note!

If the project is saved under project version number 2.1, the macros will likewise all
be expanded. All macros will also be expanded before conversion into other
languages.

'Extras' 'One macro level back', 'Extras' 'All macro levels back'

Symbols:

These commands are also available in the toolbar, as soon as a macro is opened for
editing. If macros are nested within one another, it is possible to switch to the next
higher or to the highest display level.

Advertising