ADAM-6200 User Manual
186
C.2.4
Digital Output
C.2.4.1
GET /digitaloutput/(all|{id})/value
C.2.4.2
POST /digitaloutput/all/value
Request
The
content
‐
type
will
be
‘application/x
‐
www
‐
form
‐
urlencoded’
.
{
id
}
:
is
the
DO
channel
ID
starting
from
0
Examples:
Use
the
following
URI
to
get
the
DO
‐
0
value.
http://10.0.0.1/digitaloutput/0/value
Use
the
following
URI
to
get
the
all
DO
values.
http://10.0.0.1/digitaloutput/all/value
Response
The content-type will be ‘text/xml’
If
result
is
OK,
the
content
will
look
like
below
<?xml version="1.0" ?>
<ADAM-6250 status=”OK”>
<DO>
<ID>0</ID>
<VALUE>1</VALUE>
</DO>
</ADAM-6250>
If
result
is
failed
,
the
content
will
look
like
below
<?xml version="1.0" ?>
<ADAM
‐
6250
status=”
{
error
}
”>
</ADAM-6250>
{
error}
:
The
error
message.
Remarks
If
the
{id
}
is
out
of
range,
the
response
will
return
HTTP
status
code
501
(Not
implemented)
Request
The
content
‐
type
will
be
‘application/x
‐
www
‐
form
‐
urlencoded’
.
Examples:
Use
the
following
URI
to
set
the
DO
value(s).
http://10.0.0.1/digitaloutput/all/value
The
coming
data
with
the
request
will
be
{name}={value}
pair(s).
{
name}
:
The
name
of
the
channel,
for
example
DO0.
{
value}
:
The
value
to
be
set
to
the
indicated
channel.
For
example,
if
the
request
is
going
to
set
channel
0,
1,
2
to
value
1,
then
the
name
‐
value
pairs
will
look
like
below:
DO0=1&DO1=1&DO2=1
Response
The content-type will be ‘text/xml’
The
content
will
look
like
below
<?xml version="1.0" ?>
<ADAM
‐
6250
status=”
{
status
}
”>
</ADAM-6250>
{
status}
:
The
result.
If
succeed,
the
result
will
be
‘OK’;
otherwise,
the
result
will
be
the
error
message.
Remarks
Содержание ADAM-6217
Страница 1: ...User Manual ADAM 6200 Series Intelligent Ethernet I O Module...
Страница 7: ...Chapter 1 1 Product Overview...
Страница 16: ...ADAM 6200 User Manual 10 1 8 Product Label...
Страница 18: ...ADAM 6200 User Manual 12...
Страница 19: ...Chapter 2 2 Product Specifications...
Страница 22: ...ADAM 6200 User Manual 16 2 2 2 Pin Assignment 2 2 3 Switch Setting...
Страница 26: ...ADAM 6200 User Manual 20 Isolated Digital Output ADAM 6250...
Страница 27: ...21 ADAM 6200 User Manual Chapter 2 Product Specifications ADAM 6256 2 4 2 Pin Assignment ADAM 6250...
Страница 28: ...ADAM 6200 User Manual 22 ADAM 6251 ADAM 6256...
Страница 29: ...23 ADAM 6200 User Manual Chapter 2 Product Specifications 2 4 3 Switch Setting ADAM 6250 ADAM 6251...
Страница 32: ...ADAM 6200 User Manual 26 Isolated Relay Output 2 5 2 Pin Assignment ADAM 6260...
Страница 33: ...27 ADAM 6200 User Manual Chapter 2 Product Specifications ADAM 6266 2 5 3 Switch Setting...
Страница 34: ...ADAM 6200 User Manual 28...
Страница 35: ...Chapter 3 3 Hardware Installation...
Страница 36: ...ADAM 6200 User Manual 30 3 1 Interface Introduction...
Страница 42: ...ADAM 6200 User Manual 36...
Страница 43: ...Chapter 4 4 System Configuration...
Страница 109: ...103 ADAM 6200 User Manual Chapter 4 System Configuration Rule 1 Rule 2...
Страница 128: ...ADAM 6200 User Manual 122...
Страница 129: ...Appendix A A I O Modbus Mapping Table...
Страница 149: ...143 ADAM 6200 User Manual Appendix A I O Modbus Mapping Table...
Страница 150: ...ADAM 6200 User Manual 144...
Страница 151: ...Appendix B B ADAM 6200 ASCII Commands...
Страница 185: ...Appendix C C REST for ADAM 6200...