Analog Output - Advantech ADAM-6217 User Manual

Adam-6200 series intelligent ethernet i/o module
Table of Contents

Advertisement

C.2.2

Analog Output

C.2.2.1
GET /analogoutput/(all|{id})/value
Request
Response
Remarks
C.2.2.2
POST /analogoutput/all/value
Request
Response
Remarks
ADAM-6200 User Manual
The content‐type will be 'application/x‐www‐form‐urlencoded'.
{id} : is the AO channel ID starting from 0
Examples:
Use the following URI to get the AO‐0 value.
http://10.0.0.1/analogoutput/0/value
Use the following URI to get the all AO values.
http://10.0.0.1/analogoutput/all/value
The content-type will be 'text/xml'
If result is OK, the content will look like below
<?xml version="1.0" ?>
<ADAM-6224 status="OK">
<AO>
<ID>0</ID>
<VALUE>0FFF</VALUE>
</AO>
</ADAM-6224>
If result is failed , the content will look like below
<?xml version="1.0" ?>
<ADAM‐6224 status="{error}">
</ADAM-6224>
{error} : The error message.
If the {id} is out of range, the response will return HTTP status code 501 
(Not implemented)
The content‐type will be 'application/x‐www‐form‐urlencoded'.
Examples:
Use the following URI to set the AO value(s).
http://10.0.0.1/analogoutput/all/value
The coming data with the request will be {name}={value} pair(s).
{name} : The name of the channel, for example AO0.
{value} : The value to be set to the indicated channel.
For example, if the request is going to set channel 0, 1, 2 at +‐ 5V output 
range to 0V, ‐2V and 5V respectively, then the name‐value pairs will 
look like below:
AO0=0800&AO1=04CC&AO2=0FFF
The content-type will be 'text/xml'
The content will look like below
<?xml version="1.0" ?>
<ADAM‐6224 status="{status}">
</ADAM-6224>
{status} : The result. If succeed, the result will be 'OK'; otherwise, the 
result will be the error message.
182

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-6224Adam-6260Adam-6250Adam-6266Adam-6251Adam-6256

Table of Contents