
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
86
A memory card can be controlled by the conversational/auxiliary macro
function of the macro executor for Series 16i/18i/21i.
With this function, file input/output, macro variable input/output, and the
like can be executed by a simple macro.
To use this function, set the parameter of extension functions (parameter
EXT1 (No. 9002#7)) to 1 at time of compilation.
G330 –––> Memory card open
G331 –––> Memory card close
G335 –––> Byte read
G336 –––> Data write
G337 –––> Macro variable input
G338 –––> Macro variable output
G339 –––> Directory information control
Whether the specified control code is correctly executed can be checked
by an end code.
After executing any code of G330 to G339, check the end code.
#8539 –––> End code (read only)
The memory card close command (G331) always terminates normally.
If channel 4 is selected, a memory card is opened in accordance with a
specified control method and conditions and becomes ready for use.
G330 Pp (Ll or Ff) ;
(a) (b) (c)
(a) Address P specifies the control method to be selected.
P14: Memory card read control (file found by name or number)
P24: Memory card write control (file found by name)
P34: Directory information control (See Section 2.7.)
(b) In the read mode, address L specifies the head variable number of
the variable string containing the name of the file to be found. In
the write mode, address L specifies the head variable number of
the variable string containing the name of the file to be created.
(c) Address F specifies the number of the file to be found in the read
mode.
6.5
MEMORY CARD
CONTROL BY
MACRO EXECUTOR
6.5.1
Outline
6.5.2
Using the Function
6.5.2.1
Opening a Memory Card
(G330)