3 the "disabledefaultcouplingslave" function, The "disabledefaultcouplingslave" function, Architecture: the applicationtemplate in detail – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 86

Advertising
background image

Architecture: The ApplicationTemplate in detail

Default coupling

86

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

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

"DefaultCouplingMaster" methods - overview

9.4.3

The "DisableDefaultCouplingSlave" function

The "DisableDefaultCouplingSlave" function has the effect that the slave module decouples from

the state machine of the master module (during operation).

• This function is required if...

• ...specific machine parts / machine modules are to be decoupled (during operation).
• ...a different response is required for the decoupled machine parts/machine modules than for

the higher-level machine module.

• The SMDisableDefaultCouplingSlave(TRUE) method call of a module application (MAP)

activates the function to decouple the slave from the master.

• The SMDisableDefaultCouplingSlave(FALSE) method call deactivates the function.

• The module's intrinsic state machine cannot be coupled to the higher-level master module.

• The state machine can control the subordinated slave modules (locally from the module

application) via the BaseChannel methods.

• That way, the MFB_MachineControl state machine of the lower-level slave modules acts just

like the machine module with the activated SMDisableDefaultCouplingSlave method.

• The higher-level master module ignores the status of a slave module for which the

DisableDefaultCouplingSlave function is activated.

• Optionally, the error acknowledgement can be set via the higher-level master:

Identifier/function

Transfer value/data type

Description

baseChannelGetDefaultCouplingMaster

Disabled

• Queries the status of the

SMDisableDefaultCouplingMaster

method of the respective module.

MM_Address

L_EATP_MM_Address

• Address of the module the current

state of which is to be queried.

• The value "0" and the

L_EATP_CONST.OWNID constant

address the module's intrinsic ID.

Return value/data type

BOOL

• TRUE: of the master is

deactivated

• FALSE: The standard coupling of

the master is activated.

SMDisableDefaultCouplingMaster

• Activates/deactivates the standard

coupling of the master.

xValue

BOOL

• TRUE: Deactivate the standard

coupling of the master

• FALSE: Activate the standard

coupling of the master

: "Disable" = "TRUE"

L_EATP_GVL.xDisableGlobalErrorReset := FALSE; //default setting

Advertising