1 declaring/recording the acd structure in the mfb, Declaring/recording the acd structure in the mfb – Lenze ApplicationTemplate PackML (PLC Designer R3-x) User Manual

Page 61

Advertising
background image

Lenze · ApplicationTemplate PackML · 1.0 EN - 05/2014

61

Architecture: The ApplicationTemplate PackML in detail

The AppChannelData structure(ACD)

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

[9-9]

Configuration of the ACD structure with an inherited L_EATP_ACD_Base structure

• The MACD_sc<Module name> can be individually extended by the data types required.
• By the inherited structure, specific control and status bits are provided in the ACD structure.
• In the structure, the L_EATP_CriticalSection block which ensures a consistent data exchange is

instanced (if the FB is used correctly).

More information about the L_EATP_ACD_Base structure:

L_EATP_ACD_Base

( 106)

9.2.1

Declaring/recording the ACD structure in the MFB

In order to be able to use the ACD structure in the modes of an MFB and its master, the instance of

the ACD structure has to be declared locally in the MFB.

[9-10] Declaration of the ACD structure in the MFB_Module1

The ACD structure is recorded in the program part of the MFB; by this, safety mechanisms are

activated.

• The instance name and size of the structure are to be transferred to the RegisterACD() method.
• The structure is to be newly recorded during every cycle. (A missing recording triggers an

infrastructure error.)

[9-11] Recorded ACD structure in the MFB_Module1

9.2.2

Accessing the ACD structure of the master module - by means of the MFB module

Advertising