![Advantech ADAM-6217 User Manual Download Page 192](http://html1.mh-extra.com/html/advantech/adam-6217/adam-6217_user-manual_2856832192.webp)
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
Summary of Contents for ADAM-6217
Page 1: ...User Manual ADAM 6200 Series Intelligent Ethernet I O Module...
Page 7: ...Chapter 1 1 Product Overview...
Page 16: ...ADAM 6200 User Manual 10 1 8 Product Label...
Page 18: ...ADAM 6200 User Manual 12...
Page 19: ...Chapter 2 2 Product Specifications...
Page 22: ...ADAM 6200 User Manual 16 2 2 2 Pin Assignment 2 2 3 Switch Setting...
Page 26: ...ADAM 6200 User Manual 20 Isolated Digital Output ADAM 6250...
Page 28: ...ADAM 6200 User Manual 22 ADAM 6251 ADAM 6256...
Page 32: ...ADAM 6200 User Manual 26 Isolated Relay Output 2 5 2 Pin Assignment ADAM 6260...
Page 33: ...27 ADAM 6200 User Manual Chapter 2 Product Specifications ADAM 6266 2 5 3 Switch Setting...
Page 34: ...ADAM 6200 User Manual 28...
Page 35: ...Chapter 3 3 Hardware Installation...
Page 36: ...ADAM 6200 User Manual 30 3 1 Interface Introduction...
Page 42: ...ADAM 6200 User Manual 36...
Page 43: ...Chapter 4 4 System Configuration...
Page 109: ...103 ADAM 6200 User Manual Chapter 4 System Configuration Rule 1 Rule 2...
Page 128: ...ADAM 6200 User Manual 122...
Page 129: ...Appendix A A I O Modbus Mapping Table...
Page 149: ...143 ADAM 6200 User Manual Appendix A I O Modbus Mapping Table...
Page 150: ...ADAM 6200 User Manual 144...
Page 151: ...Appendix B B ADAM 6200 ASCII Commands...
Page 185: ...Appendix C C REST for ADAM 6200...