
DAEnetIP3
User Manual
-
78
-
17.8.2.
Commands for digital input port (Port B)
function,
bytes 1-2
function,
byte 3
data
answer
comment
example
BV
From 0
(PortB.0)
up to 7
(PortB.7)
?
– read value
0,1
Get the value
of single PortB
digital input
line.
command
:
BV0=?;
answer:
BV0=1;
BV
G
?
– read value
00-FF
Get the whole
PortB value.
The MSB is
PortB.7. The
LSB is PortB.0
command
:
BVG=?;
answer:
BV0=FF; „all inputs
are in “1”
BM
From 0
(PortB.0)
up to 7
(PortB.7)
0-Simple reading,
1-Set output
during rising
slope,
2-Set output
during falling
slope,
?
– read value
0,1,2
Set/get the
PortB line
mode.
command
:
BM0=1; „Set
PortB.0 mode in “Set output
during rising slope”
answer:
BM0=1;
command:
BM1=?; „Get
PortB.1 mode.
answer:
BM1=0;‟ PortB.1
mode is “Simple reading”.
BP
From 0
(PortB.0)
up to 7
(PortB.7)
From 0
(PortA.0)up to
F(PortA.15),
?
– read value
0 - F
Set/get the pin
of PortA that is
attached to
this digital
input.
command
:
BP0 = F ‟attaches
DO15 (PortA.15) to DI0
(PortB.0)
answer:
BP0=F;
command:
BP0=?; „Get the
attached PortA pin to this input
answer:
BP0=A;
BR
From 0
(PortB.0)
up to 7
(PortB.7)
0
– disable
1 - enable,
?
– read value
0,1
Set/get the
Remote
control value
of this digital
input
command
:
BR0=1; „Enable
remote control for PortB.0
answer:
BR0=1;
command:
BR1=?; „Get remote
value of PortB.1
answer:
BR1=0;
BC
From 0
(PortB.0)
up to 7
(PortB.7)
Max 10 symbols
'a'-'z', 'A'-'Z', '0'-'9',
'_' and '.',
?
– read value
Descript
ion
string
Set/get the
Description
parameter.
command
:
BC1=DI1; „Set
PortB.1 Description DI1
answer:
BC1=DI1;
command:
BC7=?; „Get
PortB.7 description.
answer:
BC7=DI7;