5 influencing state transitions, Influencing state transitions, Architecture: the applicationtemplate in detail – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 88

Advertising
background image

Architecture: The ApplicationTemplate in detail

Influencing state transitions

88

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

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

9.5

Influencing state transitions

The methods of the ApplicationTemplate can inhibit and re-enable the state transitions.

• All methods are provided with a request parameter of the BOOL data type. By setting "TRUE",

the function of the respective methods (according to the method name) is executed.

[9-20] Sample program: Inhibiting the "Service"->"Ready" state transition

[9-21] Sample program: Enabling the "Service"->"Ready" state transition

Controlling the state transitions - an overview of the methods

SMDisableServiceToReady(TRUE)

SMDisableServiceToReady(FALSE)

Method/function

Transfer value/data type

Description

SMDisableAutomaticToReady

• Controls the "Automatic"

"Ready" state transition

xValue

BOOL

• TRUE: Inhibit state transition

• FALSE: Enable state transition

SMDisableReadyToAutomatic

• Controls the

"Ready""Automatic" state

transition

xValue

BOOL

SMDisableReadyToManual

• Controls the "Ready""Manual"

state transition

xValue

BOOL

SMDisableReadyToMode1

• Controls the "Ready""Mode1"

state transition

xValue

BOOL

SMDisableReadyToMode2

• Controls the "Ready""Mode2"

state transition

xValue

BOOL

SMDisableReadyToHoming

• Controls the "Ready""Homing"

state transition

xValue

BOOL

SMDisableReadyToService

• Controls the "Ready""Service"

state transition

xValue

BOOL

SMDisableManualToReady

• Controls the "Manual""Ready"

state transition

xValue

BOOL

SMDisableMode1ToReady

• Controls the "Mode1""Ready"

state transition

xValue

BOOL

SMDisableMode2ToReady

• Controls the "Mode2""Ready"

state transition

xValue

BOOL

SMDisableHomingToReady

• Controls the "Homing""Ready"

state transition

xValue

BOOL

SMDisableServiceToReady

• Controls the "Service""Ready"

state transition

xValue

BOOL

SMEnableInitToReady

• Controls the "Init""Ready" state

transition

xValue

BOOL

Advertising