ID 40024

Pointer to channel specific external variables 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 at least one global pointer variable gpVECh[Idx] (idx = [0, gNrCh - 1]), that points to channel specific external variables is invalid because its value is 0.

Response

Class

-

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

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 gpVECh[idx] 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

-