omron

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOmronFinsDriver

func NewOmronFinsDriver() driver.Driver

func ParseOmronAddress

func ParseOmronAddress(address string) error

ParseOmronAddress validates Omron FINS address format. Address Format: AREA ADDRESS[.BIT][.LEN[H][L]]

Types

type OmronFinsDriver

type OmronFinsDriver struct {
	// contains filtered or unexported fields
}

func (*OmronFinsDriver) Connect

func (d *OmronFinsDriver) Connect(ctx context.Context) error

func (*OmronFinsDriver) Disconnect

func (d *OmronFinsDriver) Disconnect() error

func (*OmronFinsDriver) GetConnectionMetrics

func (d *OmronFinsDriver) GetConnectionMetrics() (connectionSeconds int64, reconnectCount int64, localAddr string, remoteAddr string, lastDisconnectTime time.Time)

func (*OmronFinsDriver) GetMetrics

func (d *OmronFinsDriver) GetMetrics() model.ChannelMetrics

func (*OmronFinsDriver) Health

func (d *OmronFinsDriver) Health() driver.HealthStatus

func (*OmronFinsDriver) Init

func (d *OmronFinsDriver) Init(cfg model.DriverConfig) error

func (*OmronFinsDriver) ReadPoints

func (d *OmronFinsDriver) ReadPoints(ctx context.Context, points []model.Point) (map[string]model.Value, error)

func (*OmronFinsDriver) SetDeviceConfig

func (d *OmronFinsDriver) SetDeviceConfig(config map[string]any) error

func (*OmronFinsDriver) SetSlaveID

func (d *OmronFinsDriver) SetSlaveID(slaveID uint8) error

func (*OmronFinsDriver) WritePoint

func (d *OmronFinsDriver) WritePoint(ctx context.Context, p model.Point, value any) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL