
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 198 -
6.6.2 Functions
Memory card open G330
- Format
G330 Pp Ll ;
P
= 14 : Memory card read control (Specify a file name.)
= 24 : Memory card write control (Specify a file name.)
= 34 : File control based on memory card
L : In the read mode, specify the start variable number of
the variable string where a file name to be found is
stored. In the write mode, specify the start variable
number of the variable string where the name of a file
to be created is stored.
- Explanation
By specifying channel 4, open and make usable the memory card
according to the control method and condition.
Example
G330 P24 L100 ;
IF [#8539 NE 0] GOTO900 ;
Open processing completed
N900 Error processing
- Memory card read control
The read control mode can be set by setting P=14 when the memory
card is opened.
When address L is specified in the read control mode, a specified file
on the memory card is found and the file data is read.
(1) Search by file name
When the start variable number of the variable string where a desired
file name is stored is specified with address L, a search based on the
file name can be made.
Specify a file name in a string of 12 variables (file name (8
characters) + period + extension (3 characters)) by using decimal
ASCII codes, and specify the start variable number with address L.
Example
To search for the beginning of the file ”ABC.DAT”,
set 65 (A), 66 (B), 67 (C), 46 (.), 68 (D), 65 (A), 84
(T), 32, ..., 32 (space) in 12 common variables
#100 to #111.
G330 P14 L100 ;