EasyManuals Logo
Home>Advantech>Control Unit>ADAM-6256

Advantech ADAM-6256 User Manual

Advantech ADAM-6256
192 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #192 background imageLoading...
Page #192 background image
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
Thecontenttypewillbeapplication/xwwwformurlencoded’.
{id}:istheDOchannelIDstartingfrom0
Examples:
UsethefollowingURItogettheDO0value.
http://10.0.0.1/digitaloutput/0/value
UsethefollowingURItogettheallDOvalues.
http://10.0.0.1/digitaloutput/all/value
Response
The content-type will be ‘text/xml’
IfresultisOK,thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM-6250 status=”OK”>
<DO>
<ID>0</ID>
<VALUE>1</VALUE>
</DO>
</ADAM-6250>
Ifresultisfailed,thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM6250status=”{error}”>
</ADAM-6250>
{error}:Theerrormessage.
Remarks
Ifthe{id}isoutofrange,theresponsewillreturnHTTPstatuscode501(Not
implemented)
Request
Thecontenttypewillbe‘application/xwwwformurlencoded’.
Examples:
UsethefollowingURItosettheDOvalue(s).
http://10.0.0.1/digitaloutput/all/value
Thecomingdatawiththerequestwillbe{name}={value}pair(s).
{name}:Thenameofthechannel,forexampleDO0.
{value}:Thevaluetobesettotheindicatedchannel.
Forexample,
iftherequestisgoingtosetchannel0,1,2tovalue1,
thenthenamevaluepairswilllooklikebelow:
DO0=1&DO1=1&DO2=1
Response
The content-type will be ‘text/xml’
Thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM6250status=”{status}”>
</ADAM-6250>
{status}:Theresult.Ifsucceed,theresultwillbe‘OK’;otherwise,the
resultwillbe
theerrormessage.
Remarks

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Advantech ADAM-6256 and is the answer not in the manual?

Advantech ADAM-6256 Specifications

General IconGeneral
BrandAdvantech
ModelADAM-6256
CategoryControl Unit
LanguageEnglish

Related product manuals