Command SETUP(RS2)
 
Description Setup the protocol for the RS232 communication
 
Syntax/Parameters setup(RS2){...}
 
Options    set="96NC";          //quick set up combination "48, 96, 192, 384, 768,  1150 with parity N, O, E and Command option".

  
baud=38450;     //num = 110 to 6,250,000. Any value can be set to allow trimming for deviating clocks i.e. 38450
   data=6;            //num = 5, 6, 7, 8
   stop=15;          //num = 1, 15, 2  - note 15 is 1.5 bits
   parity=N;         //first letter of Odd, Even, None, Mark, Space
  
rxi=Y;              //set receive interface as active (Y), a command processing source (C) or disable (N). Default = N
   proc=“;”;         //process on receive termination character. See below
   procDel=Y;       //remove or keep the termination character(s) before processing
   procNum=5;     //interrupt on n bytes received as alternative to proc and procDel. 
   rxb=8246;        //set size of receive buffer in bytes. Default = 8192 bytes maximum = 256K bytes.
   txi=Y;               //set transmit interface as active (Y), to echo command processing (E) or disable (N)
   txb=8350;         //set size of transmit buffer in bytes. Default = 8192 bytes
   encode=s;         //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd for raw data.
   flow=N;             //none (N), hardware RTS/CTS or DTR/DSR (H), software XON XOFF (S).
 
Example setup(RS2)
{
   set="96NC";          //quick set up combination "48, 96, 192, 384, 768,  1150 with parity N, O, E and Command option".
}

setup(RS2)
{

baud=38450;     //num = 110 to 6,250,000. Any value can be set to allow trimming for deviating clocks i.e. 38450
data=6;            //num = 5, 6, 7, 8
stop=15;          //num = 1, 15, 2  - note 15 is 1.5 bits
parity=N;         //first letter of Odd, Even, None, Mark, Space
rxi=Y;              //set receive interface as active (Y), a command processing source (C) or disable (N). Default = N
proc=“;”;         //process on receive termination character. See below
procDel=Y;       //remove or keep the termination character(s) before processing
rxb=8246;        //set size of receive buffer in bytes. Default = 8192 bytes maximum = 256K bytes.
txi=Y;               //set transmit interface as active (Y), to echo command processing (E) or disable (N)
txb=8350;         //set size of transmit buffer in bytes. Default = 8192 bytes
encode=s;         //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd for raw data.
flow=N;             //none (N), hardware RTS/CTS or DTR/DSR (H), software XON XOFF (S).
}