Adds readme and configures Modbus RTU

This commit is contained in:
Patrick McDonagh
2018-03-21 11:21:03 -05:00
parent 88480b315e
commit 08eb2613a0
6 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<modbusServer Version="2.0">
<modbusRegister name="COILS">
<mapping variable="alarm_Hi" parent="Micro820" dataType="Bool" address="000001">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="alarm_Lo" parent="Micro820" dataType="Bool" address="000002">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
</modbusRegister>
<modbusRegister name="HOLDING_REGISTERS">
<mapping variable="val_Level" parent="Micro820" dataType="Real" address="40001">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
<mapping variable="cfg_LowAlarm" parent="Micro820" dataType="Real" address="40003">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
<mapping variable="cfg_HighAlarm" parent="Micro820" dataType="Real" address="40005">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
</modbusRegister>
</modbusServer>

Binary file not shown.

Binary file not shown.

51
README.md Normal file
View File

@@ -0,0 +1,51 @@
# Pioneer Level Sensor
A platform for monitoring Pond Levels
## Configuration
### Default Ethernet Setings
- IP Address: 192.168.1.81
- Subnet Mask: 255.255.255.0
- Gateway: 192.168.1.1
### Sensor Configuration
The default configuration scales the level output to 34.6 Ft (10 m). In order to scale the level output to 16.4042 Ft (5 m), provide an input signal on Digital Input 1.
## Ouputs
The system provides 1 output.
| Channel | Description |
| ------- | ----------------------- |
| 0 | Alarm Output (Hi or Lo) |
## Modbus Mapping
The serial port (D+ / D-) is configured to communicate over Modbus RTU with the following parameters:
- Baud Rate: 19200
- Parity: None
- Data Bits: 8
- Stop Bits: 1
### Coils
| Coil # | Tag | Description |
| ------ | -------- | -------------------- |
| 1 | alarm_Hi | High Alarm is Active |
| 2 | alarm_Lo | Low Alarm is Active |
### Holding Registers
| Register # | Tag | Description |
| ---------- | ------------- | ----------------------- |
| 1 - 2 | val_Level | Level measurement in Ft |
| 3 - 4 | cfg_LowAlarm | Low Alarm Limit in Ft |
| 5 - 6 | cfg_HighAlarm | High Alarm Limit in Ft |
## Contributors
- [Patrick McDonagh](https://github.com/patrickjmcd) - Owner