Difference between revisions of "Valve"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "water and gas supplying valve type executor ===Example of description in XML=== <syntaxhighlight lang="xml" line> <item type="valve" addr="314:7" name="Valve" leak-sensors="3...")
 
Line 9: Line 9:
  
 
===Additional parameters===
 
===Additional parameters===
{class="wikitable"
+
{|class="wikitable"
 
|-
 
|-
 
!Name!!type and variety!!description!!default value
 
!Name!!type and variety!!description!!default value
Line 15: Line 15:
 
|leak-sensors||list||list of leakage sensors connected with this valve
 
|leak-sensors||list||list of leakage sensors connected with this valve
 
|}
 
|}
 +
 
===Device status (1 byte)===
 
===Device status (1 byte)===
 
{class="wikitable"
 
{class="wikitable"

Revision as of 13:01, 19 August 2021

water and gas supplying valve type executor

Example of description in XML

1<item type="valve" addr="314:7" name="Valve" leak-sensors="314:3;304:10;302:10">
2    <linked addr="314:1"/>  // valve control button (optionally)
3</item>

Additional parameters

Name type and variety description default value
leak-sensors list list of leakage sensors connected with this valve

Device status (1 byte)

{class="wikitable" |- !Byte number!!description |- |0||Device status.
0 – valve is off (water supply)
1 – valve is on (water supply is stopped) |}

Possible variants of setting the status

{class="wikitable" |- !byte!!description |- |0||0 – to turn off the valve (water supply)
1 – to turn on the valve (to stop water supply)
0xFF – Change the status for the opposite one |}