
3.3 L_AifParMapClose − deactivation of code mapping
Function library LenzeAifParMapDrv.lib
Functions
3−4
L
LenzeAifParMapDrv.lib EN 1.1
3.3 L_AifParMapClose − deactivation of code mapping
BOOL L_AifParMapClose (bClose)
This function is used to deactivate the mapping table and the redirection of codes.
· The transfer parameter bClose must be set to TRUE.
· After this function has been executed, the codes accessed via the AIF interface are no longer
redirected to the corresponding codes of the mapping table.
Transfer parameters
Identifiers Data type Possible settings Info
bClose Bool TRUE Deactivation of code redirections according to the mapping table.
· The AifParMap driver in the operating system is deactivated.
Return value
Data type Value Meaning
Bool
TRUE The AifParMap driver in the operating system has been deactivated.
FALSE The AifParMap driver in the operating system has not been deactivated.
· Remedy: Calling the function with transfer parameter bClose = TRUE.
Note!
If the function L_AifParMapClose is called while read or write requests for codes are active an error
may occur!
This is why all actions with code access should be completed before this function is called.
Example
Calling the function in ST:
IF bCloseParMapDriver AND NOT bClose THEN
bClose := TRUE;
dwReturnClose := L_AifParMapClose(bClose:= TRUE);
END_IF
Komentáře k této Příručce