2 structuring within a machine module, Structuring within a machine module, Assigning the map subfunctions to individual tasks – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual
Page 26: Ation, Structuring, Within a machine module

Structuring the automation system: Standard procedure
Structuring within a machine module
26
Lenze · ApplicationTemplate · 1.3 EN - 04/2013
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5.2
Structuring within a machine module
5.2.1
Assigning the MAP subfunctions to individual tasks
In a first step, the functions are to be assigned to the individual tasks. The ApplicationTemplate
supports multitasking with three tasks. More information can be found under:
• Task "High" (standard value: 2 ms)
• Task "Mid" (standard value: 6 ms)
• Task "Free" (unsolicited)
One module application can be used per task.
• Task and module application are assigned in the
A11_ModuleAppCalls folder.
• The
MAC_Task_High program part for instance calls all module applications which are to
pass through a high priority task
Task_High.
[5-2]
ApplicationTemplateCounter sample project: MAC_Task_High calls the Module1_App1 module application.
In order to create a clearly arranged
module application, it is advisable to
divide the module applications (MAP)
into subfunctions and to structure
them correspondingly.