-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.xml
executable file
·88 lines (88 loc) · 8.4 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<module category="Datenaustausch" context="hs_modbusTCP_reader14184" id="14184" name="hs_modbusTCP_reader" sinternal_name="hs_modbusTCP_reader" external_name="ModbusTCP Reader (14184)" version="1.3">
<inputs>
<input type="number" const_name="switch" init_value="0">Interval timer switch - on (1) / off (0)</input>
<input type="number" const_name="fetch_interval" init_value="10">Interval in seconds (default: 10 secs)</input>
<input type="number" const_name="man_trigger" init_value="0">Manual fetch trigger - by 1</input>
<input type="string" const_name="modbus_slave_ip" init_value="127.0.0.1">IP of modbus server</input>
<input type="number" const_name="port" init_value="502">Modbus TCP Port (default: 502)</input>
<input type="number" const_name="slave-id" init_value="1">Modbus slave id</input>
<input type="string" const_name="options" init_value="">Special options if needed, sep. by colon. Options see docu.</input>
<input type="number" const_name="modbus_wordorder" init_value="0">Word order: 0: LittleEndian (Modbus default); 1: BigEndian</input>
<input type="number" const_name="modbus_byteorder" init_value="1">Byte order: 0: LittleEndian; 1: BigEndian (Modbus default)</input>
<input type="number" const_name="reg_offset" init_value="0">Register offset: Shifts all registers. Default 0, often -1</input>
<input type="number" const_name="enable_debug" init_value="0">Enable debug section</input>
<!-- 1. register -->
<input type="number" const_name="register1" init_value="-1">Reg1: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg1_regtyp" init_value="3">Reg1: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg1_datatype" init_value="uint16">Reg1: Data type of register</input>
<input type="number" const_name="reg1_multi-len" init_value="1">Reg1: num: Multiplier - string: length / characters</input>
<!-- 2. register -->
<input type="number" const_name="register2" init_value="-1">Reg2: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg2_regtyp" init_value="3">Reg2: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg2_datatype" init_value="uint16">Reg2: Data type of register</input>
<input type="number" const_name="reg2_multi-len" init_value="1">Reg2: num: Multiplier - string: length / characters</input>
<!-- 3. register -->
<input type="number" const_name="register3" init_value="-1">Reg3: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg3_regtyp" init_value="3">Reg3: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg3_datatype" init_value="uint16">Reg3: Data type of register</input>
<input type="number" const_name="reg3_multi-len" init_value="1">Reg3: num: Multiplier - string: length / characters</input>
<!-- 4. register -->
<input type="number" const_name="register4" init_value="-1">Reg4: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg4_regtyp" init_value="3">Reg4: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg4_datatype" init_value="uint16">Reg4: Data type of register</input>
<input type="number" const_name="reg4_multi-len" init_value="1">Reg4: num: Multiplier - string: length / characters</input>
<!-- 5. register -->
<input type="number" const_name="register5" init_value="-1">Reg5: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg5_regtyp" init_value="3">Reg5: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg5_datatype" init_value="uint16">Reg5: Data type of register</input>
<input type="number" const_name="reg5_multi-len" init_value="1">Reg5: num: Multiplier - string: length / characters</input>
<!-- 6. register -->
<input type="number" const_name="register6" init_value="-1">Reg6: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg6_regtyp" init_value="3">Reg6: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg6_datatype" init_value="uint16">Reg6: Data type of register</input>
<input type="number" const_name="reg6_multi-len" init_value="1">Reg6: num: Multiplier - string: length / characters</input>
<!-- 7. register -->
<input type="number" const_name="register7" init_value="-1">Reg7: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg7_regtyp" init_value="3">Reg7: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg7_datatype" init_value="uint16">Reg7: Data type of register</input>
<input type="number" const_name="reg7_multi-len" init_value="1">Reg7: num: Multiplier - string: length / characters</input>
<!-- 8. register -->
<input type="number" const_name="register8" init_value="-1">Reg8: register address in dec (-1: disabled)</input>
<input type="number" const_name="reg8_regtyp" init_value="3">Reg8: Type: 1=Coil, 2=Discrete, 3=Holding, 4=Input</input>
<input type="string" const_name="reg8_datatype" init_value="uint16">Reg8: Data type of register</input>
<input type="number" const_name="reg8_multi-len" init_value="1">Reg8: num: Multiplier - string: length / characters</input>
</inputs>
<outputs>
<output type="number" const_name="fetch_ok" init_value="-1">Fires an 1 if the fetch was successful - for chaining</output>
<output type="number" const_name="reg1_val_num" init_value="-1">Reg1 numeric (only num values)</output>
<output type="string" const_name="reg1_val_str" init_value="-1">Reg1 string</output>
<output type="number" const_name="reg2_val_num" init_value="-1">Reg2 numeric (only num values)</output>
<output type="string" const_name="reg2_val_str" init_value="-1">Reg2 string</output>
<output type="number" const_name="reg3_val_num" init_value="-1">Reg3 numeric (only num values)</output>
<output type="string" const_name="reg3_val_str" init_value="-1">Reg3 string</output>
<output type="number" const_name="reg4_val_num" init_value="-1">Reg4 numeric (only num values)</output>
<output type="string" const_name="reg4_val_str" init_value="-1">Reg4 string</output>
<output type="number" const_name="reg5_val_num" init_value="-1">Reg5 numeric (only num values)</output>
<output type="string" const_name="reg5_val_str" init_value="-1">Reg5 string</output>
<output type="number" const_name="reg6_val_num" init_value="-1">Reg6 numeric (only num values)</output>
<output type="string" const_name="reg6_val_str" init_value="-1">Reg6 string</output>
<output type="number" const_name="reg7_val_num" init_value="-1">Reg7 numeric (only num values)</output>
<output type="string" const_name="reg7_val_str" init_value="-1">Reg7 string</output>
<output type="number" const_name="reg8_val_num" init_value="-1">Reg8 numeric (only num values)</output>
<output type="string" const_name="reg8_val_str" init_value="-1">Reg8 string</output>
</outputs>
<remanent_variables>
</remanent_variables>
<imports>
<import>hsl20_4_timer</import>
<import>lib/pymodbus</import>
<import>lib/serial</import>
<import>lib/six</import>
</imports>
</module>
</modules>
<logging type="None" ip="" port="" />
</config>