4 activating/deactivating default coupling, The sample program in the, Applicationtemplatecounter – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual

Page 134: Appendix

Advertising
background image

Appendix

The sample program in the ApplicationTemplateCounter

134

Lenze · ApplicationTemplate · 1.3 EN - 04/2013

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

12.1.4

Activating/deactivating default coupling

12.2

The sample program in the ApplicationTemplateCounter

The user interface of the visualization is divided into the following areas:

What does the sample program in the ApplicationTemplateCounter achieve?

• The counter example demonstrates that the machine modules (MM_Module1/MM_Module2)

work depending on the specified state.

• The visualization illustrates communication between the machine modules by the ACD

structure.

Identifier/function

Transfer value/data type

Description

Activate / deactivate decoupling from the state machine: machine control module / master module
SMDisableDefaultCouplingMaster

Decoupling of the machine control

module from the state machine.

xValue

BOOL

• TRUE: Deactivate decoupling of

the master.

• FALSE: Activate decoupling of the

master.

Activate / deactivate decoupling from the state machine: machine control module / master module
SMDisableDefaultCouplingSlave

Activates / deactivates the

decoupling of a lower-level slave

module from the state machine.

xValue

BOOL

• TRUE: Activate decoupling of the

slave module.

• FALSE: Deactivate decoupling of

the slave module.

• Area visualises

communication between the

individual machine modules.

• In this area, the demo

visualization of the sample

programs is shown.

Machine module/state

Function

MM_Module1

Automatic Incrementing (50 units per second)

Mode1 Decrementing (10 units per second)
Service Load value 123

Fault Set current value to zero.

Systemfault Set current value to zero.

MM_Module2

Automatic Incrementing (20 units per second)

Mode1 Incrementing (single steps up to 800000)

Advertising