82
•
Those commands which require ending are indicated in the glossary of script commands
later on in this document.
13.1.3 Text strings
Strings are sequences of characters between quotes. The
SEND
command sends a string through
the serial port. E.g.
SEND “ATZ”
This sends the characters
A
,
T
and
Z
, a modem initialisation string. You can insert control
characters in a string by putting them in angled brackets, e.g.
SEND “guest<013>”
sends a carriage return character after the text “
guest
”. Control character codes can also be entered
in hexadecimal form, prefixed with a $ sign. E.g.
SEND “bye<$1B>”
Puts the control character code 27 (the ‘Esc’ control) at the end of the
SEND
string.
13.1.4 Filenames and folders
When receiving a file using the XModem protocol or ASCII, you must specify a name for the file
to have on the MC 218. To do this, either
•
Simply state the filename, eg.
DOWNLOAD “LetterIV”,“XModem”
This will place the downloaded file in the Documents folder. Or,
•
Specify the full “path name”, including the folder and disk, e.g.
DOWNLOAD “C:\Documents\Letters\LetterIV”,“XModem”
Use this method to download files directly to a memory disk, e.g.
DOWNLOAD “D:\Publications\Frontcover”,“XModem”
Note: Make sure the name you give to the file you are downloading is not the same as that of
another file within the same directory, or you may overwrite the existing files.
When receiving files using the YModem (batch) protocol, the sending machine transmits the
filename, so there is no need to specify one. Simply use a “blank text” (i.e. no characters between
the quote marks) string in the command, e.g.
DOWNLOAD “”,“YModem (batch)”
The file will be saved in the Documents folder.
13.1.5 Names
Comms can store information you use frequently, such as passwords or telephone numbers, as
“names” in a file. You can then insert a name in a
SEND
or
SENDWAIT
command which
Comms
will substitute with the stored information.
13.2 To store information as a name
Select
‘Set up names’
on the
‘Names’
menu in the Terminal emulation screen, and tap
‘Add’
.
Enter the name, e.g. “pass”, then enter the value, e.g. a password.
•
The text represented by the name can be up to 64 characters long.
•
Names can be up to sixteen characters long, and must start with a letter.
Once you have created a set of names, save them using the
‘Save names as’
command on the
‘Names’
menu. You can then use
‘Load names’
to retrieve the specific set of names that you need
at any one time. In general, you should only need to use one names file, even if it contains more
names than you will ever use at one time.