5 l_candsxclose - deactivating the index mapping, 5 l_candsxclose − deactivating the index mapping, System bus (can) for lenze plc devices – Lenze DDS System bus CAN for PLC User Manual

Page 162: Lenzecandsxdrv.lib function library

Advertising
background image

11.5

L_CanDSxClose − deactivating the index mapping

System bus (CAN) for Lenze PLC devices

LenzeCanDSxDrv.lib function library

11−6

L

PLC−Systembus EN 2.0

11.5

L_CanDSxClose − deactivating the index mapping

Function

By means of this function the mapping table and therefore the diversion of indexes is deactivated
again.

·

For the deactivation the transfer parameter bClose has to be set to TRUE.

·

After carrying out this function, index accesses via the system bus interface according to the
mapping table are not diverted to other codes anymore.

Declaration

BOOL

L_CanDSxClose (bClose);

Transfer parameters

Data type

Information/possible settings

bClose

Bool

Deactivating the index diversions according to the mapping table.

TRUE The CanDSx driver in the operating system is deactivated.

Return value

Data type

Value/meaning

Bool

Status

TRUE The CanDSx driver in the operating system has been deactivated.

FALSE The CanDSx driver in the operating system has not been deactivated.

·

Remedy: function call via transfer parameter bClose = TRUE.

Note!

If the function L_CanDSxCloseis called up while write or read requests for codes are still active, they
are possibly disturbed!

Therefore all actions with a 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

Advertising