Browse Source

增加接口支持

master
sige 1 year ago
parent
commit
db9a5ce5e4
  1. 92
      src/src/main/resources/device.yml

92
src/src/main/resources/device.yml

@ -7,7 +7,7 @@ connection :
mode : binary # text | hex | binary mode : binary # text | hex | binary
commandLogEnable : true commandLogEnable : true
# class : com.my.graphiteDigesterBg.diframe.connection.DiConWebsocket # class : com.my.graphiteDigesterBg.diframe.connection.DiConWebsocket
# uri : ws://127.0.0.1:8899/device
# uri : ws://192.168.8.10:19005
# mode : hex # mode : hex
# callTimeout : 3000 # callTimeout : 3000
# device actuators # device actuators
@ -407,24 +407,86 @@ actuators :
index : 0 index : 0
channel : 0 channel : 0
- name : 加热器 - 0
key : HeatingPlateSlotHeater_0
type : Heater
implement : HeaterTokyGteModbusRtuOverTcp
host : 192.168.8.10
port : 20000
slaveId : 4 # 第三个,编号3
ioKey : HeatPlateSlotHeater0
- name : 加热器 - 1
key : HeatingPlateSlotHeater_1
type : Heater
implement : HeaterTokyGteModbusRtuOverTcp
host : 192.168.8.10
port : 20000
slaveId : 3 # 第二个,编号2
ioKey : HeatPlateSlotHeater1
- name : 加热器 - 2
key : HeatingPlateSlotHeater_2
type : Heater
implement : HeaterTokyGteModbusRtuOverTcp
host : 192.168.8.10
port : 20000
slaveId : 2 # 第一个,编号1
ioKey : HeatPlateSlotHeater2
- name : 加热器 - 3
key : HeatingPlateSlotHeater_3
type : Heater
implement : HeaterTokyGteModbusRtuOverTcp
host : 192.168.8.10
port : 20000
slaveId : 6 # 第五个,编号5
ioKey : HeatPlateSlotHeater3
- name : 加热器 - 4
key : HeatingPlateSlotHeater_4
type : Heater
implement : HeaterTokyGteModbusRtuOverTcp
host : 192.168.8.10
port : 20000
slaveId : 5 # 第四个,编号4
ioKey : HeatPlateSlotHeater4
- name : 冷凝塔
key : LcLtcCondenser
type : LcLtcCondenser
host: 192.168.8.10
port: 20000
slaveId: 1
ioKey: Condenser
# device io # device io
io : io :
- {key: "AcidLiquidLevelSensor0", mid: 70, index: 0, type : "output"}
- {key: "AcidLiquidLevelSensor1", mid: 70, index: 1, type : "output"}
- {key: "AcidLiquidLevelSensor2", mid: 70, index: 2, type : "output"}
- {key: "AcidLiquidLevelSensor3", mid: 70, index: 3, type : "output"}
- {key: "AcidLiquidLevelSensor4", mid: 70, index: 4, type : "output"}
- {key: "AcidLiquidLevelSensor5", mid: 70, index: 5, type : "output"}
- {key: "AcidLiquidLevelSensor6", mid: 70, index: 6, type : "output"}
- {key: "AcidLiquidLevelSensor7", mid: 70, index: 7, type : "output"}
- {key: "HeatPlateSlotHeater0", mid: 70, index: 2, type : "input"}
- {key: "Condenser", mid: 70, index: 5, type : "input"}
- {key: "AcidLiquidLevelSensor0", mid: 230, index: 0, type : "output"}
- {key: "AcidLiquidLevelSensor1", mid: 230, index: 1, type : "output"}
- {key: "AcidLiquidLevelSensor2", mid: 230, index: 2, type : "output"}
- {key: "AcidLiquidLevelSensor3", mid: 230, index: 3, type : "output"}
- {key: "AcidLiquidLevelSensor4", mid: 230, index: 4, type : "output"}
- {key: "AcidLiquidLevelSensor5", mid: 230, index: 5, type : "output"}
- {key: "AcidLiquidLevelSensor6", mid: 230, index: 6, type : "output"}
- {key: "AcidLiquidLevelSensor7", mid: 230, index: 7, type : "output"}
- {key: "HeatPlateSlotHeater0", mid: 230, index: 2, type : "input"}
- {key: "HeatPlateSlotHeater1", mid: 230, index: 1, type : "input"}
- {key: "HeatPlateSlotHeater2", mid: 230, index: 0, type : "input"}
- {key: "HeatPlateSlotHeater3", mid: 230, index: 4, type : "input"}
- {key: "HeatPlateSlotHeater4", mid: 230, index: 3, type : "input"}
- {key: "LightGreen", mid: 230, index: 16,type : "input"}
- {key: "LightRed", mid: 230, index: 17,type : "input"}
- {key: "LightYellow", mid: 230, index: 18,type : "input"}
- {key: "Buzzer", mid: 230, index: 7,type : "input"}
- {key: "Fan", mid: 230, index: 6,type : "input"}
- {key: "Condenser", mid: 230, index: 5, type : "input"}
# device registers # device registers
registers : registers :
# 加热盘 Slot 温度 # 加热盘 Slot 温度
- {key: "HeatingPlateSlotTemperature0", mid: 80, index: 201, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature1", mid: 80, index: 200, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature2", mid: 80, index: 202, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature3", mid: 80, index: 203, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature0", mid: 80, index: 202, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature1", mid: 80, index: 203, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature2", mid: 80, index: 201, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature3", mid: 80, index: 200, defaultValue: 0}
- {key: "HeatingPlateSlotTemperature4", mid: 80, index: 204, defaultValue: 0} - {key: "HeatingPlateSlotTemperature4", mid: 80, index: 204, defaultValue: 0}
Loading…
Cancel
Save