2 l_aifparmapopen - activation of code mapping, L_aifparmapopen − activation of code mapping, Function library lenzeaifparmapdrv.lib – Lenze DDS Global Drive PLC Developer Studio User Manual
Page 13: 2 l_aifparmapopen − activation of code mapping, Functions

Function library LenzeAifParMapDrv.lib
Functions
3.2
L_AifParMapOpen − activation of code mapping
3−3
L
LenzeAifParMapDrv.lib EN 1.1
3.2
L_AifParMapOpen − activation of code mapping
DWORD L_AifParMapOpen (bOpen)
This function is used to activate the mapping table and the redirection of codes.
·
The transfer parameter
bOpen must be set to TRUE.
·
After this function has been executed, the codes accessed will be redirected via the AIF
interface to the corresponding codes listed in the mapping table.
Transfer parameters
Identifiers
Data type
Possible settings
Info
bOpen
Bool
TRUE
Activation of code redirections according to the mapping table.
·
The AifParMap driver in the operating system is initialised.
Return value
Data type
Bit
Value
Meaning
Double word
0
0
Driver is initialised.
1
Driver is not initialised.
·
Remedy: Calling the function with transfer parameter bOpen = TRUE.
1−15
Reserved for future extensions (bits are set to 0).
·
Invalid with bit 0 = 1
16−31
Version of the function library LenzeAifParMapDrv.lib
·
Format: Main version/subversion (e. g. 0103hex = version 1.03)
·
Invalid with bit 0 = 1
Note!
If the function L_AifParMapOpen 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 bOpenParMapDriver AND NOT bOpen THEN
bOpen := TRUE;
dwReturnOpen := L_AifParMapOpen(bOpen:= TRUE);
END_IF