‘Extras’ ‘Create macro”

Symbol: 6b1430ea4376787c0a33139018bd1ba8_b2c5e1bca19960ae0a317d314c219d2e

With this command, several POUs that are selected at the same time can be assembled into a block, which can be named as a macro. Macros only can be reproduced by Copy/Paste, whereby each copy becomes a separate macro whose name can be chosen independently. Macros are thus not references. All connections that are cut by the creation of a macro generate in- or out-pins on the macro. Connections to inputs generate an in-pin. The default name appears next to the pin in the form In<n>. For connections to outputs, Out<n> appears. Affected connections which had connection markers prior to the creation of the macro, retain the connection marker on the PIN of the macro.

At first, a macro has the default name “MACRO”. This can be changed in the Name field of the macro use. If the macro is edited, the name of the macro will be displayed in the title bar of the editor window appended to the POU name.

Example:

Selection:

../_images/ad16fa53a19990160a317d310185f6aa

Macro:

../_images/9868244ca199ad270a317d31204cc14c

In the editor:

../_images/7c61568aa199ca180a317d312cdb7e7a