183 ADAM-6200 User Manual
Appendix C REST for ADAM-6200
C.2.2.3 GET /analogoutput/(all|{id})/range
Request
Thecontent‐typewillbe‘application/x‐www‐form‐urlencoded’.
{id}:istheAOchannelIDstartingfrom0
Examples:
UsethefollowingURItogettheAO‐0rangeinformation.
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" ?>
<ADAM‐6224status=”{error}”>
</ADAM-6224>
{error}:Theerrormessage.
Remarks
Ifthe{id}isoutofrange,theresponsewill returnHTTPstatuscode501
(Notimplemented)