User Manual

ADAM-6000 Series User Manual 288
D.2.2.2 GET /analoginput/(all|{id})/range
Request The content-type will be ‘application/x-www-form-urlencoded’.
{id} : is the AI channel ID starting from 0
Examples:
Use the following URI to get the AI-0 range information.
http://10.0.0.1/analoginput/0/range
Use the following URI to get the all AI range information.
http://10.0.0.1/analoginput/all/range
Response The content-type will be ‘text/xml’
If result is OK, the content will look like below
<?xml version="1.0" ?>
<ADAM-6017 status=”OK”>
<AI>
<ID>0</ID>
<RANGE>7</RANGE>
<NAME>4~20 mA</NAME>
<MAX>20</MAX>
<MIN>4</MIN>
<UNIT>mA</UNIT>
</AI>
</ADAM-6017>
If result is failed , the content will look like below
<?xml version="1.0" ?>
<ADAM-6017 status=”{error}”>
</ADAM-6017>
{error} : The error message.
Remarks If the {id} is out of range, the response will return HTTP status
code 501 (Not implemented)