VM.ERR

Description

Runtime errors are caused by the program running on the AKD BASIC trying to do something that is not allowed. For example, runtime errors occur when you attempt to write a value that is too high or too low to a particular variable. We try to catch as many errors as possible when the program is compiled, but some errors are only detected when the program is running.

Determine the particular problem causing Runtime Error (F4 Fault) by looking at the value of the VM.ERR variable. Use the Variables Window to find the value of VM.ERR.

The table below shows what each value of VM.ERR means.

Value of VM.ERR Error Caused by:
801 Divide by zero.
802 Stack overflow.
803 Insufficient memory.
804 No interrupt handler defined.
805 Interrupt error.
806 Max string length exceeded.
807 String overflow.
808 Array out of bounds
809 Feature not supported.
810 Internal firmware/hardware error.
812 Parameter not supported.
813 Parameter access error.
814 Data not found.
815 Data invalid.
816 Data too high.
817 Data too low.
818 Param type out of range.
819 Data not divisible by 2.
820 Invalid position modulo setting.
821 Cannot read from command.
823 Enable Drive first.
824 DRV.OPMODE must be 2 (position).
825 DRV.CMDSOURCE must be 5 (program).
826 Cannot execute during a move.
827 Writing to read-only parameter.
828 Disable Drive first.

General Information

Type

R/W

Units

None

Range

0 to 1000

Default Value

0

Data Type

Integer

Variants Supported

This parameter is only supported on AKD BASIC drives.

Fieldbus Information

Fieldbus

Index/Subindex

Is 64 bit? Attributes Signed?

Object Start Version

Modbus

1162

No 32 bit No

M_01-05-11-000