![IFM DTE8 5 Series Device Manual Download Page 57](http://html1.mh-extra.com/html/ifm/dte8-5-series/dte8-5-series_device-manual_3966188057.webp)
57
Read input I/Q of the IO channel
Service available
: DTE105, DTE605, DTE805, DTE9x5
This service is supported in the channel mode "Input" and "Output".
Method: POST
URL:
{"
code
": "request", "
cid
": 2001, "
adr
": "data/port[2]/input/iq/getdata","
reply
": "
reply text
"}
Request
element
Value
Remark
code
"request"
-
cid
<CorrID>
Correlation identifier.
Can be set from 0…32767
e.g. 2001
adr
"data/port[
N
]/input/iq/getdata"
For DTE10x :
N
= 1…4
For DTE60x, DTE80x, DTE9Xx:
N
= 2,3
e.g. 2
reply
"<string>"
Optional:
Text to be send back in the response.
If not needed, this element can be removed
from the request.
e.g. "reply text"
Response data:
{"cid":2001,"data":{"value":1},"adr":"reply text","code":200}
Response
element
Value
Remark
cid
<CorrID>
Correlation identifier.
Same as send in request
e.g. 2001
data
{"value":<state>}
State of the channel input I/Q
<0> = off (0V)
<1> = on
(24V)
e.g. 1
adr
<string>
Optional.
Text sent in element "reply" of the service
request
e.g. "
reply text"
code
<status code>
Response code of the IoT core
See chapter ->
e.g. 200