omron

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 9 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

Helper to validate address format (used by ChannelManager via public helper or just implicitly here) Address Format: AREA ADDRESS[.BIT][.LEN[H][L]] e.g. D100, CIO1.2, W3.4, H4.15L

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

GetMetrics 返回Omron FINS驱动的详细指标

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 interface{}) error

Jump to

Keyboard shortcuts

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