98
GOTO nopass
…
I.e. the MC 218 sends “
Anton
”, then waits for 30 seconds (60 half-
seconds) for the remote machine to send “Password:”. If “Password:” is
received, the script jumps to the ‘
pass
’ label. If “Password:” is not received,
the script moves on to the next command (‘
GOTO nopass
’). The script
only follows the
GOTO
command after “Password:” if “Password:”
isn’t
received.
S
ET
SET <variable>=<value>
Set assigns a variable or name a given value. E.g.
SET me$=“Albert”
SET c1=5
Assigns the information “
Albert
” to the name ‘
me
’ It also gives the
variable
c1
a value of 5. You can then decrement this value to control the
number of times an action is performed. E.g.
setcount:
SET c1=5 sendcr:
SEND “<13>”
c1=c1-1
IF c1=0 THEN
GOTO next
ELSE
GOTO sendcr
ENDIF
next:
…
first gives
c1
a value of 5. The script then sends a carriage return character
(“
<13>
”) and deducts 1 from the value of
c1
. If
c1
still hasn’t reached 0, it
repeats this step. Once it has sent 5 carriage returns, it will move on to the
‘
next:
’ label.
S
ETUP
SETUP
B
AUD
BAUD [rate]
P
ORT
PORT [COMM::0][IRCOMM::0]
D
ATA
DATA [5][6][7][8]
F
AIL
FAIL [DSR][DCD][PARITY]
H
ANDSHAKE
HANDSHAKE [DCD][RTSCTS][DSR][XONXOFF][NONE]
P
ARITY
PARITY [NONE][ODD][EVEN]
S
TOP
STOP [1][2]
T
IMEOUT
TIMEOUT [timeout]
E
NDSETUP
ENDSETUP
Sets any or all of the communications parameters. All of the above
parameters can be set, to any of the options within square brackets. You
can separate each of the parameters either with a colon, or by putting them
on a new line. E.g.
SETUP
BAUD=19200 : STOP 1
DATA=8
PORT=“COMM::0”
ENDSETUP