9 architecture: the applicationtemplate in detail, 1 accessing structure variables of machine modules, 1 accessing module's intrinsic structure variables – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 71: Architecture: the applicationtemplate in detail, Accessing structure variables of machine modules, Accessing module's intrinsic structure variables, 9architecture: the applicationtemplate in detail

Advertising
background image

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

71

Architecture: The ApplicationTemplate in detail

Accessing structure variables of machine modules

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

9

Architecture: The ApplicationTemplate in detail

9.1

Accessing structure variables of machine modules

9.1.1

Accessing module's intrinsic structure variables

The structures of the machine modules contain the input and output variables of the machine

modules for integrating data in the complete system:

• I/O data: Structure MIO
• Parameters / data of the recipe manager: Structure MPar
• Persistent data: Structure MPD
• Visualization data: Structure MVis

The following example shows how a structure variable for an external visualization (assigned to the

MAP) within a module application is to be called (when a module with automatically matching

names is assigned, the matching entries will be added automatically):

[9-1]

Extract from the MVIS_scMachine structure

[9-2]

Extract from the module application (MAP)

Structures (Structs) for ...

...IOs

...parameters (recipe manager)

...persistent data

...external visualization

// MVis_scMachine

// for MAP1

diPieces : DINT;

// for MAP2

diLength : DINT;

VAR_IN_OUT

/// ------------------ START OF USER SPECIFIC BLOCK ---------------------

/// Add the needed declarations of Par, Vis, IO and PD access here

Par: MPar_scMachine;

Vis: MVis_scMachine;

IO: MIO_scMachine;

PD: MPD_scMachine;

/// ------------------- END OF USER SPECIFIC BLOCK ----------------------

END_VAR

Advertising