EasyManua.ls Logo

Advantech ADAM-6256 - Page 189

Advantech ADAM-6256
192 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
183 ADAM-6200 User Manual
Appendix C REST for ADAM-6200
C.2.2.3 GET /analogoutput/(all|{id})/range
Request
Thecontenttypewillbe‘application/xwwwformurlencoded’.
{id}:istheAOchannelIDstartingfrom0
Examples:
UsethefollowingURItogettheAO0rangeinformation.
http://10.0.0.1/analogoutput/0/range
UsethefollowingURItogettheallAOrangeinformation.
http://10.0.0.1/analogoutput/all/range
Response
The content-type will be ‘text/xml’
IfresultisOK,thecontentwilllook
likebelow
<?xml version="1.0" ?>
<ADAM-6224 status=”OK”>
<AO>
<ID>0</ID>
<RANGE>7</RANGE>
<NAME>4~20mA</NAME>
<MAX>20</MAX>
<MIN>4</MIN>
<UNIT>mA</UNIT>
</AO>
</ADAM-6224>
Ifresultisfailed,thecontentwilllooklikebelow
<?xml version="1.0" ?>
<ADAM6224status=”{error}”>
</ADAM-6224>
{error}:Theerrormessage.
Remarks
Ifthe{id}isoutofrange,theresponsewill returnHTTPstatuscode501
(Notimplemented)

Table of Contents

Related product manuals