Lenze DDS v2.3 Manual de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 340
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 339 340

Comentarios a estos manuales

Sin comentarios