-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_sample.xml
56 lines (49 loc) · 1.36 KB
/
config_sample.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
<?xml version="1.0" encoding="UTF-8"?>
<modbusSimulator>
<!-- MODBUS_RTU, MODBUS_ASCII, MODBUS_TCP -->
<protocolType>MODBUS_TCP</protocolType>
<serialConnection>
<comPort>COM1</comPort>
<!-- 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 56000, 57600, 115200 -->
<baudrate>300</baudrate>
<!-- 7, 8 -->
<dataBits>8</dataBits>
<!-- 1, 2 -->
<stopBits>1</stopBits>
<!-- NONE, ODD, EVEN -->
<parity>NONE</parity>
</serialConnection>
<tcpConnection>
<port>8888</port>
</tcpConnection>
<modbusDataDefinition>
<!-- [1, 255] -->
<slaveId>0</slaveId>
<!-- 01, 02, 03, 04 -->
<functionCode>01</functionCode>
<!-- [0, 65535] -->
<address>0</address>
<!-- [1, 4096] -->
<quality>10</quality>
<!-- true, false -->
<return06Exception>false</return06Exception>
</modbusDataDefinition>
<modbusDataList>
<modbusData>
<!-- start: function code 01 and 02 config -->
<!-- true, false -->
<autoChange>false</autoChange>
<!-- on, off -->
<statusValue>off</statusValue>
<!-- end: function code 01 and 02 config -->
<!-- start: function code 03 and 04 config -->
<!-- true, false -->
<random>false</random>
<!-- true, false -->
<autoIncrement>false</autoIncrement>
<!-- [-32768, 32767] -->
<value>0</value>
<!-- end: function code 03 and 04 config -->
</modbusData>
</modbusDataList>
</modbusSimulator>