AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.34.2 VM.ERR
General Information
Type R/W
Description Indicates what caused the most recent Runtime Error.
Units TBD
Range TBD
Default
Value
TBD
Data Type Integer
Fieldbus Index/Subindex Is 64 bit? Attributes Signed? Object Start Version
Modbus 1162 No 32 bit No M_01-05-11-000
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
1 Division by zero in arithmetic
2 Stack is full
3-5 (not used)
6 Out of Memory
7-10 (not used)
11 Attempt to use Feature not available in this firmware
12 Internal firmware error
13 Invalid Parameter ID Number
14 Attempt to write to a Read-Only Variable
15 DSP Read Error
16 DSP Write Error
17 DSP Command Error
18-21 (not used)
22 No interrupt handler defined
23 (not used)
24 PACLAN Transmit Error
25 PACLAN Response Timeout
26 PACLAN Response Error
27 Interrupt error
28 Maximum String Length Exceeded
29 String Overflow
479 Kollmorgenâ„¢ | March 30, 2012