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

Page 30

Advertising
background image

BASIC PROGRAMMING GUIDE

2-21

FREE

Syntax:

FREE

Function:

Returns the bytes of available in program RAM

Mode:

Command, run

Use:

PRINT FREE

DESCRIPTION

FREE returns how many bytes of RAM are available to the program and Basic variables. It does not return
the amount of expanded RAM in 128K or 512K RAM systems. The amount of free memory is determined by
the following formula:

FREE = MTOP - LEN - system memory

"system memory" on cards with two serial ports is 1791. Add 512 bytes for any additional serial ports on a
card.

RELATED

LEN

ERROR

BAD SYNTAX Attempt to assign a value to FREE

Advertising