Lenze DDS Function library MemDrv Manuel d'utilisateur Page 19

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 34
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 18
Function library LenzeMemDrv.lib
Functions for RAM memory access
4.3 L_MemCopyToRam
4−5
L
LenzeMemDrv.lib EN 1.1
Return value: Integer
Value Meaning
0 Copy job has been successfully transferred to the operating system.
−10 Copy job has not been transferred to the operating system since the transfer parameters are faulty:
wLength = 0.
−20 Copy job has not been transferred to the operating system since the transfer parameters are faulty:
pbyData does not point to the PLC memory area.
−30 Copy job has not been transferred to the operating system since the transfer parameters are faulty:
The values for wLength and wOffset do not fit together.
−40 Copy job has not been transferred to the operating system since the copy driver is still processing the previous memory
management function.
−50 Copy job has not been transferred to the operating system since the memory is presently accessed
(e. g. via codes).
−60 Copy job has not been transferred to the operating system since the transfer parameters are faulty:
byRamBlockNr is invalid.
−80 Function is not supported by the operating system.
Example
Calling the function in ST:
(* copy to RAM if last copy action (L_MemCopyToRam) *)
(* is finished *)
nMemState := L_MemGetStateDriver(byVoid := 0);
bDriverBusy := INT_TO_BOOL(nMemState AND 16#0001);
IF bDriverBusy = FALSE THEN
nReturn := L_MemCopyToRam(pbyData := ADR(g_abyDataBuffer),
wLength := 256,
byRamBlockNr := 2,
wOffset := 512);
END_IF
(* check return value of CopyToRam function *)
Vue de la page 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 33 34

Commentaires sur ces manuels

Pas de commentaire