ID 40014

Pointer to platform specific HLI section is 0.

Description

When the HLI interface is activated by an instance of the FB MCV_HliInterface, global pointer variables are initialised. The implemented FBs can then access the various HLI areas. To ensure the pointers are valid they are checked.

The check detects that the global pointer variable gpPform is invalid because its value is 0.

Response

Class

-

FB MCV_HliInterface sets his “Error” output to TRUE, waits a fixed amount of cycles and tries again to communicate via the HLI with the motion controller.

Occurs the error at output “Error“ of an utility FB the calculation of that FB is interrupted immediately and output “Error“ is set to TRUE.

Solution

Class

-

If the error occurs at an instance of the FB MCV_HliInterface, check whether the PLC application overwrites the variable gpPform with the value 0 after a valid pointer already existed.

 

For all other FBs, you have to check if they are calculated before a FB of type MCV_HliInterface, signals the successful connection to the HLI by setting its output “Initialized” to TRUE.

The FBs than have to be moved to an area of the PLC application, where they are calculated only if connection to the HLI is established successful.

Error type

-