Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TYPE_REGISTER = 0 TYPE_COIL = 1 TYPE_DISCRETE = 2 TYPE_HOLDING = 3 )
View Source
var ModbusConfigSpec = service.NewConfigSpec(). Summary("Creates an Modbus output"). Field(service.NewStringField("endpoint").Description("Address to connect")). Field(service.NewStringListField("subscriptions").Description("List of nodes like DB,group etc")). Field(service.NewIntField("timeout").Description("The timeout duration in seconds for connection attempts and read requests.").Default(10)). Field(service.NewIntField("slaveid").Description("SlaveID")). Field(service.NewBoolField("subscribeEnabled").Description("Set to true to subscribe").Default(true))
View Source
var ModbusTriggerConfigSpec = service.NewConfigSpec(). Summary("Creates an Modbus output"). Field(service.NewStringField("endpoint").Description("Address to connect")). Field(service.NewStringListField("subscriptions").Description("List of AB addresses Address formats include direct area access")). Field(service.NewStringListField("tsubscriptions").Description("List of AB trigger node IDs.")). Field(service.NewIntField("timeout").Description("The timeout duration in seconds for connection attempts and read requests.").Default(10)). Field(service.NewIntField("slaveid").Description("SlaveID")). Field(service.NewBoolField("subscribeEnabled").Description("Set to true to subscribe").Default(true))
Functions ¶
func ParseSubscriptionDef ¶
func ParseSubscriptionDef(subscription []string) []subscriptionDef
func ParseTSubscription ¶
func ParseTSubscription(tSubscriptions []string) []tSubscriptionsDef
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.