Fre ( Returns The Size Of The Unused Area Of Memory In Bytes ) - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
FRE
Function
• Returns the size of the unused area of memory in bytes.
FRE ( <numeric expression> )
Syntax
FRE ( <character string expression> )
numeric expression
character string expression
PRINT FRE(A)
Examples
PRINT FRE("TEST")
• The FRE function returns the number of bytes of the unused area in the BASIC program
Description
area when <numeric expression> is specified.
The unused area is the area that is not used as the program, area for processing the
character string, or as the variable area.
The value of <numeric expression> is a dummy and has no meaning.
• The size of the unused character string processing area is returned in bytes when
<character string expression> is specified.
The value of <character string expression> is a dummy and has no meaning.
• The value returned from the FRE function is not the unused area of the entire memory that
is used by multitask processing, but the unused area of the task number area where the
FRE function is executed.
• For the memory map, see the User's Manual of each communication module used.
Program Example
10 ' Displays the size of the unused memory area
20 PRINT "Task No. area-->";ZBAS
30 PRINT "Unused area=";FRE(0);"byte"
50 END
RUN
Task No. area--> 1
Unused area= 4601 bytes
OK
11 - 74
FREe
• • • •
• • • •
• • • •
• • • •
REMARK
See the CLEAR and ERASE instructions.
Specify an numeric constant or numeric value
variable as a dummy.
Specify a character constant or character variable as
a dummy.
Displays the number of bytes that can be used by
the BASIC program.
Displays the number of bytes of the unused
character string processing area.
:
' Displays the task No. area
:
' Displays the size of the unused area
MELSEC-Q
11 - 74

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents