beautypg.com

Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 83

background image

BASIC PROGRAMMING GUIDE

C-2

This example produces an expected error:

?le-100/le28
ERROR: ARITH. UNDERFLOW
READY

This example produces an incorrect exponent:

>?le-100/.9e28

1.1111111 E-0

ARITH. OVERFLOW

The result of an arithmetic operation exceeds the upper limit of BASIC-52 floating-point numbers. BASIC-52's
largest floating-point number is ± .99999999E+127. An operation such as 1E100*1E28 causes an ARITH.
OVERFLOW error.

ARRAY SIZE

An array was accessed that is outside the dimension boundaries defined by a DIM instruction. For example:

DIM A(100)
PRINT A(102)

ERROR:

ARRAY SIZE

READY

BAD ARGUMENT

The argument of an operator is out of limits. For example, A=REGREAD(300) generates a BAD ARGUMENT
error since the value assigned by the REGREAD operator is limited.

BAD SYNTAX

An invalid command, instruction, or operator or have attempted to use a reserved key word as part of a variable
was entered. This is a generic "I don't know what this is" responce by a computer.

C-STACK

More control stack memory was used than it has available. The control stack has of 158 byte of memory. A FOR-
NEXT loop uses 17 bytes, and DO-UNTIL, DO-WHILE, and GOSUB each use three bytes. This means you
limited to nine FOR-NEXT loops. Executing a return before a GOSUB, or a WHILE or UNTIL before a DO
instruction, or a NEXT before a FOR also generates a C-STACK error.

CAN'T CONTINUE

A program was edited after stopping.

DIVIDE BY ZERO

A number was divided by zero or a statement such as TAN(PI/2).