4 l_candsxclose - deactivation of index mapping, L_candsxclose − deactivation of index mapping, Function library lenzecandsxdrv.lib – Lenze DDS Global Drive PLC Developer Studio User Manual
Page 17: 4 l_candsxclose − deactivation of index mapping, Functions/function blocks

Function library LenzeCanDSxDrv.lib
Functions/function blocks
3.4
L_CanDSxClose − Deactivation of index mapping
3−5
L
LenzeCanDSxDrv.lib EN 1.2
3.4
L_CanDSxClose − Deactivation of index mapping
Function
This function is used to deactivate the mapping table and the redirection of indeces.
·
For deactivation, the transfer parameter bClose must be set to TRUE.
·
After this function has been executed, the indeces accessed via the system bus interface will
no longer be redirected to the corresponding codes of the mapping table.
Declaration
BOOL
L_CanDSxClose (bClose);
Transfer parameters
Data type
Information/possible settings
bClose
Bool
Deactivation of index redirections according to the mapping table.
TRUE The CanDSx driver is deactivated in the operating system.
Return value
Data type
Value/meaning
Bool
Status
TRUE The CanDSx driver has been deactivated in the operating system.
FALSE The CanDSx driver has not been deactivated in the operating system.
·
Remedy: Call the function with transfer parameter bClose = TRUE.
Note!
If the function L_CanDSxClose is called while code read or write requests 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 bCloseCanDSxDriver AND NOT bClose THEN
bClose :=
TRUE;
dwReturnClose :=
L_CanDSxClose(bClose:= TRUE);
END_IF