3.175
EDH0162En1040 – 06/99
MM4005
XM — Read available memory
Usage
IMM
PGM
MIP
Syntax
xxXM
Parameters
Description
xx
[int]
— Program number.
Range
xx
—
0
to
127.
Units
xx
— None.
Defaults
xx
Missing: 0.
Out of range: Error F.
Description
If
xx
= 0 or missing this command reads the amount of unused program
memory. The controller has 30720 bytes of non-volatile memory available
for permanently storing programs. This command reports the amount not
used.
If
xx
≥
1 and
xx
≤
127 this command reports the length of the program num-
ber
xx
. If the returned value is 0, the program does not exist.
NOTE
The controller is saving programs in their original format, thus using one
byte per character.
Returns
xxXMnn
nn
—
Returned value, in bytes.
Errors
S
—
Communication time-out.
Rel. Commands
LP
—
List program.
MP
—
Download EEPROM to RAM.
SM
—
Save program.
XX
—
Erase program.
Example
XM
|
Read available program memory.
XM29873
|
Controller returns 29873 bytes of available program memory.
1XM
|
Read the length of the program number #1.
1XM15
|
The length of program #1 is 15 bytes.
100XM
|
Read the length of the program number #100.
100XM0
|
The program #100 does not exist.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com