DAEnetIP3
User Manual
-
82
-
17.8.5.
Commands for serial port
function,
bytes 1-2
function,
byte 3
data
answer
comment
example
SA
D
From 00 up to FF
?
– read value
From 00
up to FF
Get/set
serial
port address
.
The value is
two bytes hex.
command
:
SAD=0A;
answer:
SAD=0A;
command
:
SAD=?;
answer:
SAD=1E;
SB
R
300, 600, 1200,
2400, 4800, 9600,
14400, 19200,
38400, 56000,
57600, 115200,
128000, 256000 ,
?
– read value
300,
600,
1200,
2400,
4800,
9600,
14400,
19200,
38400,
56000,
57600,
115200,
128000
or
256000
Get/set the
serial port
baudrate
.
command
:
SBR=9600;
answer:
SBR=9600;
command
:
SBR=?;
answer:
SBR=256000;
SP
T
1
– None,
2
– Even,
3
– Mark,
4
– Odd,
5
– Space,
?
– read value
1
–
None,
2
–
Even,
3
–
Mark,
4
– Odd,
5
–
Space
Get/set the
serial port
parity
.
command
:
SPT=1; „None
answer:
SPT=1;
command
:
SPT=?;
answer:
SPT=2; „ Even
ST
T
7 or 8 (data bits)
?
– read value
7,8
Get/set serial
port
data bits
.
command
:
SDB=7;
answer:
SDB=7;
command
:
SDB=?;
answer:
SDB=8;
SC
L
0
– Low during
send,
1
– High during
send,
?
– read value
1,2
Get/set
control
(direction)
line for serial
port
communicatio
n
command
:
SCL=1;
answer:
SCL=1;
command
:
SCL=?;
answer:
SCL=2;
SD
M
0
– Full duplex,
1
– Half duplex,
?
– read value
1,2
Get/set
duplex mode
for serial port
communicatio
n
command
:
SDM=1;
answer:
SDM=1;
command
:
SDM=?;
answer:
SDM=2;
S1
6
0
– disable
CRC16,
1
– enable
CTC16,
?
– read value
0,1
Get/set
CRC16
checksum for
serial port
communicatio
n
command
:
S16=1;
answer:
S16=1;
command
:
S16=?;
answer:
S16=0;
The settings will take effect after restart