Run-time Errors & Trips

Navigation:  Unidrive M600-M702 Onboard Programming Reference >

Run-time Errors & Trips

Previous pageReturn to chapter overviewNext page

 

The drive will sometimes raise an error (trip) during execution of a user program, e.g. if the program attempts to write a value to a read-only parameter.

 

The drive may trip for a number of reasons that are not directly related to the execution of the user program, e.g. due to a power supply overload. This section only describes errors which are directly related to the user program operation on the drive.

 

If the drive detects an error in the user program it will initiate a User Prog Image trip. The sub-trip number for the User Prog Image trip details the reason for the error, as shown in the table below.

 

 

Sub-trip Number

Reason for trip

1

Divide by zero. The program has attempted to divide a number by 0.

2

Undefined trip

3

The program attempted fast parameter access set-up with non-existent parameter. A parameter in the fast access list does not exist on the drive.

4

The program attempted to access a non-existent parameter.

5

The program attempted to write to a read-only parameter.

6

The program attempted an over-range write. An attempt has been made to write a value to a parameter and the value is outside the limits allowed for the parameter. For the ranges of drive parameters, please consult the Unidrive M User Guide.

7

The program attempted to read from a write-only parameter. Currently there are no write-only parameters in Unidrive M so this trip should never occur.

30

The user program image has failed because either its CRC is incorrect, or there are less than 6 bytes in the user program image or the user program image header version is less than 5.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

31

The user program image requires more RAM for heap and stack than can be provided by the drive.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

32

The user program image requires an OS function call that is higher than the maximum allowed.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

33

The ID code within the user program image is not valid.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

34

The user program image has been changed for an image with a different user program number.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

40

The timed task has not completed in time and has been suspended.

 

Onboard User Program: Enable (11.047) is reset to zero when the trip is occurs.

41

Undefined function called, i.e. a function in the host system vector table that has not been assigned.

 

Onboard User Program: Enable (11.047) is reset to zero when the trip is occurs.

52

Customisable menu table CRC check has failed.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

53

Customisable menu table has changed.

 

This trip will occur when the drive powers-up or the user programmed image is programmed. The user program tasks will not run.

80

The user program image is not compatible with the control board.

 

Initiated from within the user program code.

81

The user program image is not compatible with the control board serial number.

 

Initiated from within the user program code.

100

The user program has detected and prevented an attempted pointer access outside of the IEC task’s heap area.

101

The user program has detected and prevented a misaligned pointer usage.

102

The user program has detected an array bounds violation and prevented its access.

103

The user program has attempted to convert a data type to or from an unknown data type, has failed and has shut itself down.

104

The user program has attempted to use an unknown user service function.

200

User program has invoked a “divide” service with a denominator of zero. (Note that this is raised by the downloaded image and has therefore been given a distinct error code despite being the same fundamental problem as sub-trip 1 above.)

 

 

 

 

See Also

 

Accessing Parameters