Installation guide

148 Programming Commands
RIGHT$ String Manipulation
ACTION: Returns the rightmost characters of a string.
PROGRAM SYNTAX: string1$=RIGHT$(string2$,n)
REMARKS: The n is the number of rightmost characters to return. If n is greater than
the length of the string2$ then the entire string is returned to string1$.
EXAMPLES: b$=“Hello World”
a$=RIGHT$(b$,4) 'sets a$=“orld”.
SETCOM Miscellaneous Command
ACTION: Sets the baud rate and data format for Auxiliary serial port.
PROGRAM SYNTAX: SETCOM#n, baud, parity, data, stop
REMARKS: The variable "n" signifies the port number. Presently, only the second
serial port (the Auxiliary Port) is supported, therefore only a value of 2
is valid for "n".
The baud rate can be any value up to 38,400.
parity setting:
0 no parity
1 odd parity
2 even parity
data
7 7 bit data length
8 8 bit data length
stop
1 1 stop bit
2 2 stop bits
If the inputs are outside the above setting the command will be ignored
and an error warning will be issued.
EXAMPLES: SETCOM#2,9600,0,8,1
Sets Auxiliary port to 9600 baud, no parity, 8 bit data and 1 stop bit.