Document register types
This commit is contained in:
parent
ecc8b8ee64
commit
8f00a10203
2 changed files with 9 additions and 7 deletions
|
|
@ -2,5 +2,6 @@ issues:
|
|||
exclude:
|
||||
- "func `..Wallbe..showIO` is unused"
|
||||
- "func `..Wallbe..showIOs` is unused"
|
||||
- .regOverchargeProtect. is unused
|
||||
- .regActualCurrent. is unused
|
||||
- .regOverchargeProtect. is unused
|
||||
- .regReset. is unused
|
||||
|
|
|
|||
|
|
@ -12,12 +12,13 @@ import (
|
|||
const (
|
||||
slaveID = 255
|
||||
|
||||
regStatus = 100
|
||||
regChargeTime = 102
|
||||
regActualCurrent = 300
|
||||
regEnable = 400
|
||||
regOverchargeProtect = 409
|
||||
regMaxCurrent = 528
|
||||
regStatus = 100 // Input
|
||||
regChargeTime = 102 // Input
|
||||
regActualCurrent = 300 // Holding
|
||||
regEnable = 400 // Coil
|
||||
regOverchargeProtect = 409 // Coil
|
||||
regReset = 413 // Coil
|
||||
regMaxCurrent = 528 // Holding
|
||||
|
||||
timeout = 1 * time.Second
|
||||
protocolTimeout = 2 * time.Second
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue