2 l_eatp_criticalsection, L_eatp_criticalsection, L_eatp_criticalsection ( 117) – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual
Page 117: The l_eatp_applicationtemplate library
![background image](/manuals/566296/117/background.png)
Lenze · ApplicationTemplate · 1.3 EN - 04/2013
117
The L_EATP_ApplicationTemplate library
1_POUs - Program Organization Units
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
11.2.2
L_EATP_CriticalSection
This FB contains the lock(), UnLock(), and LockState() methods.
The methods render it possible to ensure consistent data transmission. Consistent data
transmission for instance is required for multitasking systems.
Lock()
...reserves a data area of the ACD structure (query the state of the flag).
Unlock()
...releases the previously reserved data area again (reset flag).
LockState()
...queries the inhibit state of a data area (flag set/not set).
Return value
Data type
Value/meaning
BOOL
Replies whether a data area has been reserved (flag set).
TRUE Data area reserved (flag set).
FALSE Data area not reserved (flag not set).
Return value
Data type
Value/meaning
BOOL
Replies whether the data area has been released (flag reset).
TRUE Data area released (flag reset).
FALSE Data area not released (flag not reset).
Return value
Data type
Value/meaning
BOOL
Replies whether flag is set.
TRUE Return value if flag is set.
FALSE Return value if flag is not set.