Vai al contenuto

Run-Time Checks

These options allow the user to enable specific controls made at execution time. Run-Time Checks-image_0
  • Run-time check of array bounds: if this option is checked some check code is added to verify that array indexes are not out of bounds during run-time. This option can be set depending on target device.
  • Run-time check of pointers: this combo allows you to choose if and when the pointer will be tested for their validity before their use.
  • Selecting NONE, the check will never be done.
  • Selecting ONLY IF NOT NULL, the check will verify that the pointer value is not NULL; if it is NULL, it will return value zero but will not stop the running application. So the PLC execution will never be interrupted due to a NULL pointer, but you’ll never get an error notification.
  • Selecting FULL, the check will verify that the pointer value is not NULL and that the pointed address is within a validity range (this last control requires the user-defined function checkptr on target; if it is not defined, only the first control is executed). If one of this two controls fail, the PLC execution is interrupted and an error message is raised.
  • Run-time check of division by zero: if this option is checked some check code is added to verify that divisions by zero are not performed on arrays during run-time. This option can be set depending on target device.
  • Run-time check of interfaces: if this option is checked,allows a references validity check within a method call. This option can be set depending on target device (Object Ori- ented supported)
  • Run-time check of references: if this option is checked, allows a references validity check; if a reference is dereferenced to null, a runtime error is generated.