6.8
Communication with module using HTTP.
NANO OUT modules can be controlled using HTTP. To read current state of the
module inputs/outputs access this address -
http://192.168.111.15/stat.php
browser.
XML file consist all of the information:
<response>
<prod_name>PE-1-0</prod_name>
<out>00000000</out>
<on>00000000</on>
<in>00000000</in>
<counter1>0</counter1>
<temp1>0.0</temp1>
</response>
Section
Description
<prod_name>PE-1-0</prod_name>
Type of module
In this case PE-1-0.
<out>00000000</out>
Output state (enabled/disabled).
In this case output inactive
<on>00000000</on>
Output state
<in>00000000</in>
In NANO-OUT always read as 0
<counter1>0</counter1>
In NANO-OUT always read as 0
<temp1>0.0</temp1>
In NANO-OUT always read as 0
Command
Description
http://nr_ip/stat.php?on=1
Enable output relay.
http://nr_ip/stat.php?off=1
Disable output relay.
http://nr_ip/stat.php?inv=1
Invert output state.
http://nr_ip/stat.php?set=0000000x
Set output.
Options x=:
1-Enable
0-Disable
n-Invert
Example:
1.Enable relay output:
http://192.168.111.15/stat.php?o
2.Invert output relay state :
http://192.168.111.15/stat.php?
3.Disable relay output:
http://192.168.111.15/stat.php?off=1
User manual NANO OUT
Page
18
of
24
Содержание Nano OUT
Страница 13: ...User manual NANO OUT Page 13 of 24...
Страница 19: ...User manual NANO OUT Page 19 of 24...
Страница 24: ...Notes...