2 user tags: defining own data elements, User tags: defining own data elements, Ditionally – Lenze ApplicationTemplate PackML (PLC Designer R3-x) User Manual

Page 59: User tags: defining own, Data elements ( 59)

Advertising
background image

Lenze · ApplicationTemplate PackML · 1.0 EN - 05/2014

59

Architecture: The ApplicationTemplate PackML in detail

Accessing structure variables of machine modules

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

The associated program call in the machine application has the following syntax:

Vis.diPieces :=

4711;

9.1.2

User Tags: Defining own data elements

The ApplicationTemplate PackML contains the following predefined data elements structure/type,

which are called "tags": command, status, admin tag.

• More individual tags can be defined in the UserTags_PackML structure.

• The structure for individual data elements is located in the

A75_UserTags folder.

[9-3]

Example: UserTag created individually

• The structure name L_UserTags_PackML has to be kept.
• The data elements of the structure are user-definable.

The structure is identical for all machine modules in an application. Each machine module is

provided with an own instance of the UserTag data.
The following accesses to the UserTag data are possible:

1. Reading/writing of individual UserTag elements of the own machine module.

[9-4]

Example: Access to a UserTag in state action S04, own module.

Instead of the L_EATP_CONST.OWNID constant, the numerical value "0" can be used to access

the own module.

2. Reading/writing of individual UserTag elements of a slave machine module.

[9-5]

Example: Access to the UserTag of a single slave module, address 96.

3. "Broadcast" writing:

• Writing of a UserTag element in all slave machine modules.

Advertising