Lenze DDS v2.3 Manuel d'utilisateur Page 15

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 340
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 14
Drive PLC Developer Studio
Introduction
2-3
l DDS EN 2.3
Function CheckBounds
Tip!
Definition of a function with the name CheckBounds in your project will automatically check
whether the boundaries have been exceeded on access to an array in your project! (refer example
below).
Also refer the Checkbound library (Checkbound.lib).
The function name is defined and must not be changed.
The following program example to test the CheckBounds function corrects access outside defined
array boundaries.
The function CheckBounds ensures that the value TRUE is not assigned to position A[10],butto
the upper permissible range limit A[7].
Use the function CheckBounds to correct accesses outside array boundaries.
2.2.3.1 Example of a function
Example of a function in IL: Example of the function call of the function shown on the left:
IL LD 7
Fct 4,2
ST result
ST result := Fct(7, 4, 2);
FBD
Show/Hide Bookmarks
Vue de la page 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 339 340

Commentaires sur ces manuels

Pas de commentaire