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

Page 79

Advertising
background image

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

79

Architecture: The ApplicationTemplate in detail

State machine

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

9.3.3

The state transitions in detail

The "Init" status is reached immediately after mains switching/device reset.

• The module application executes the initialisation. After the initialisation phase, the state

machine is to be set to the "Ready" status by setting the xEnableInitToReady input.

• The following input conditions must be met so that the respective state transition is reached:

Number

State transition

Condition

1

"Init""Ready"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Ready)

; and

• State transition is enabled by the module application

(xEnableInitToReady input = TRUE)

Note: When this method is passed through by every machine module (MM) during

the initialisation phase, all MMs are in the "Ready" status.

2

"Ready"

"Manual"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates

.Manual); and

• State transition is to be enabled by the module application in every subordinated

machine module (xDisableReadyToManual input = FALSE)

3

"Ready"

"Service"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Service);

and

• State transition is enabled by the module application

(xDisableReadyToService input = FALSE)

4

"Ready"

"Automatic"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Automatic);

and

• State transition is enabled by the module application

(xDisableReadyToAutomatic input = FALSE)

5...7

"Ready"

"Mode(1...2)"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Mode

(1...2));and

• State transition is enabled by the module application:

(xDisableReadyToMode(1...2) input = FALSE)

8

"Manual"

"Ready"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Ready); and

• Enable of the state transition by the module application

(xDisableManualToReady input = FALSE)

9

"Service"

"Ready"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Ready);

and

• State transition is enabled by the module application

(xDisableServiceToReady input = FALSE)

10

"Automatic"

"Ready"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Ready);

and

• State transition is enabled by the module application

(xDisableAutomaticToReady input = FALSE)

11 ... 13

"Mode 1...2"

"Ready"

SetState request by the master

baseChannelSetNominalState(MM_Address:= 0,
eState:=L_EATP_SMStates.Ready);

and

• State transition is enabled by the module application:

(xDisableMode(1...2)ToReady input = FALSE)

Advertising