Temperature Measurement & MODBUS Integration #17
|
@ -107,18 +107,18 @@ func (d *daemon) modbusUpdate() error {
|
||||||
// KFA1-KFA8
|
// KFA1-KFA8
|
||||||
var relayState [8]bool
|
var relayState [8]bool
|
||||||
|
|
||||||
// -KFA1 Roughing Pump
|
// -KFA1 Roughing Pump (normally closed contact)
|
||||||
relayState[0] = d.daemonState.rpOn
|
relayState[0] = !d.daemonState.rpOn
|
||||||
// -KFA2 Diffusion Pump
|
// -KFA2 Diffusion Pump
|
||||||
relayState[1] = d.daemonState.dpOn
|
relayState[1] = d.daemonState.dpOn
|
||||||
// -KFA4 Button Vent
|
// -KFA4 Button Vent
|
||||||
relayState[3] = d.daemonState.vent.output
|
relayState[3] = d.daemonState.vent.output
|
||||||
// -KFA5 Button Pump-Down
|
// -KFA5 Button Pump-Down
|
||||||
relayState[4] = d.daemonState.pumpdown.output
|
relayState[4] = d.daemonState.pumpdown.output
|
||||||
// -KFA6 Fake-Pirani Rough
|
// -KFA6 Fake-Pirani Rough (normally closed contact)
|
||||||
relayState[5] = d.aboveRough.output
|
relayState[5] = !d.aboveRough.output
|
||||||
// -KFA7 Fake-Pirani High
|
// -KFA7 Fake-Pirani High (normally closed contact)
|
||||||
relayState[6] = d.aboveHigh.output
|
relayState[6] = !d.aboveHigh.output
|
||||||
|
|
||||||
// The KEC1 module uses a non-standard MODBUS interface
|
// The KEC1 module uses a non-standard MODBUS interface
|
||||||
// instead of coils
|
// instead of coils
|
||||||
|
|
Loading…
Reference in a new issue