3 l_32bittransferdword, L_32bittransferdword, Function library lenze32bittransferdrv.lib – Lenze DDS v1.1 User Manual
Page 11: Functions

Function library Lenze32BitTransferDrv.lib
Functions
2.3
L_32BitTransferDWORD
2−3
L
Lenze32BitTransferDrv.lib EN 1.1
2.3
L_32BitTransferDWORD
Function
This function is used to copy the value of variables of type double word" (32 bits) data−consistently
to other variables of type double word".
·
The function can be called in the main program PLC_PRG or in a user task.
·
When the function is started, the tasks are inhibited to ensure a data−consistent copying
process.
·
After copying has been completed, the blocked tasks will be automatically released.
·
Task events coming in during copying will be processed as soon as the function has been
executed. This ensures that no start signals are lost.
Declaration
BOOL L_32BitTransferDWORD (pdwSource, pdwDestination);
Transfer parameters
Data type
Info/possible settings
pdwSource
Pointer to
double word
Address of the variable of type "double word" to be copied
pdwDestination
Pointer to
double word
Address of the destination variable of type "double word"
Return value
Data type
Value/meaning
Bool
Status
TRUE Data transfer has been completed.
Examples
In the following examples, tasks are blocked during copying and the value of the variable dwSource
is copied to the variable dwDestination.
·
Calling the function in FBD:
L_32BitTransferDWORD
pdwSource
pdwDestination
ADR
ADR
dwSource
dwDestination
·
Calling the function in ST:
pdwSource := ADR(dwSource);
pdwDestination := ADR(dwDestination);
bTransfer := L_32BitTransferDWORD(pdwSource,
pdwDestination);