Lenze DDS v1.1 Uživatelský manuál Strana 11

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 11
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 10
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);
Zobrazit stránku 10
1 2 ... 6 7 8 9 10 11

Komentáře k této Příručce

Žádné komentáře