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

Advantech ADAM-6266 User Manual

Advantech ADAM-6266
192 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #188 background imageLoading...
Page #188 background image
ADAM-6200 User Manual 182
C.2.2 Analog Output
C.2.2.1 GET /analogoutput/(all|{id})/value
C.2.2.2 POST /analogoutput/all/value
Request
Thecontenttypewillbeapplication/xwwwformurlencoded’.
{id}:istheAOchannelIDstartingfrom0
Examples:
UsethefollowingURItogettheAO0value.
http://10.0.0.1/analogoutput/0/value
UsethefollowingURItogettheallAOvalues.
http://10.0.0.1/analogoutput/all/value
Response
The content-type will be ‘text/xml’
IfresultisOK,thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM-6224 status=”OK”>
<AO>
<ID>0</ID>
<VALUE>0FFF</VALUE>
</AO>
</ADAM-6224>
Ifresultisfailed,thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM6224status=”{error}”>
</ADAM-6224>
{error}:Theerrormessage.
Remarks
Ifthe{id}isoutofrange,theresponsewillreturnHTTPstatuscode501
(Notimplemented)
Request
Thecontenttypewillbeapplication/xwwwformurlencoded’.
Examples:
UsethefollowingURItosettheAOvalue(s).
http://10.0.0.1/analogoutput/all/value
Thecomingdatawiththerequestwillbe{name}={value}pair(s).
{name}:Thenameofthechannel,forexampleAO0.
{value}:Thevaluetobesettotheindicatedchannel.
Forexample,
iftherequestisgoingtosetchannel0,1,2at+‐5Voutput
rangeto0V,‐2Vand 5Vrespectively,thenthenamevaluepairswi ll
looklikebelow:
AO0=0800&AO1=04CC&AO2=0FFF
Response
The content-type will be ‘text/xml’
Thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM6224status=”{status} ”>
</ADAM-6224>
{status}:Theresult.Ifsucceed,theresult
willbe‘OK’;otherwise,the
resultwill betheerrormessage.
Remarks

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Advantech ADAM-6266 Specifications

General IconGeneral
BrandAdvantech
ModelADAM-6266
CategoryControl Unit
LanguageEnglish

Related product manuals