Command |
SETUP(RS4) |
|
|
Description |
Setup the protocol for the
RS485 communication |
|
|
Syntax/Parameters |
setup(RS4){...} |
|
|
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(s). 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=8196; //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=8196; //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), software XON XOFF (S).
duplex=F; //set Full Duplex (F) or Half Duplex (H). Half
duplex uses connector CN1 pins 1 and 8. |
|
|
Example |
setup(RS4)
{
set="96NC"; //quick set up combination "48, 96, 192, 384, 768,
1150 with parity N, O, E and Command option".
}
setup(RS4)
{
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(s). See
below
procDel=Y; //remove or keep the termination character(s) before
processing
rxb=8196; //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=8196; //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), software XON XOFF (S).
duplex=F; //set Full Duplex (F) or Half Duplex (H). Half
duplex uses connector CN1 pins 1 and 8.
} |
|
|
|