PRESCRIBE Command Reference
258
RWRF W — [Read/Write Resource File] Write data
to external device (macro)
Format
RWRF W, medium, "MCR", macro-type, macro-ID or macro-name, file-
name;
Parameters
medium:
0 = hard disk
A = memory card
macro-type:
"PRE" prescribe macro
"PCL" PCL macro
macro-ID or macro-name:
macro-ID for PCL macro (0 to 32767)
macro-name for prescribe macro (ASCII text string up to 4 bytes)
file-name
file-name:
ASCII text string up to 15 bytes
Automatically set by the system if omitted.
Function
The RWRF W command writes data to an external device such as the hard disk.
The number of writable files, which is not limited, depends on the capacity of the
external media. If the device runs out of free space during saving, the remaining data will
be discarded.
Duplicating a file name causes the system to rename the specified one and save data
(without overwriting data).
Example:
Write and register prescribe macro "TEST".
!R! RWEF W,0 , "MCR" , "PRE" , "TEST" , "test_macro";[Macro
Data]WRED; EXIT;
Write and register the PCL macro (macro ID: 1111).
!R! RWEF W,0 , "MCR" , "PCL" , "1111" , "test_macro";[Macro
Data]WRED; EXIT;