2 l_32bittransferdint, L_32bittransferdint, Function library lenze32bittransferdrv.lib – Lenze DDS v1.1 User Manual
Page 10: Functions

2.2
L_32BitTransferDINT
Function library Lenze32BitTransferDrv.lib
Functions
2−2
L
Lenze32BitTransferDrv.lib EN 1.1
2.2
L_32BitTransferDINT
Function
This function is used to copy the value of variables of type double integer" (32 bits) data−consistently
to other variables of type double integer".
·
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_32BitTransferDINT (pdnSource, pdnDestination);
Transfer parameters
Data type
Info/possible settings
pdnSource
Pointer to
double integer
Address of the variable of type "double integer" to be copied
pdnDestination
Pointer to
double integer
Address of the destination variable of type "double integer"
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 dnSource
is copied to the variable dnDestination.
·
Calling the function in FBD:
L_32BitTransferDINT
pdnSource
pdnDestination
ADR
ADR
dnSource
dnDestination
·
Calling the function in ST:
pdnSource := ADR(dnSource);
pdnDestination := ADR(dnDestination);
bTransfer := L_32BitTransferDINT(pdnSource,
pdnDestination);