s7

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package s7 implements the Siemens S7 protocol driver for CoreC. Supports S7-200, S7-300, S7-400, S7-1200, and S7-1500 PLCs.

Index

Constants

View Source
const TypeName = "s7"

TypeName is the protocol type identifier for the S7 driver.

Variables

This section is empty.

Functions

func NewS7Driver

func NewS7Driver(config core.DriverConfig) (core.Driver, error)

NewS7Driver creates a new S7 driver from configuration.

Types

type S7Driver

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

S7Driver implements core.Driver for Siemens S7 PLC communication.

func (*S7Driver) Capabilities

func (d *S7Driver) Capabilities() core.DriverCapabilities

func (*S7Driver) Init

func (d *S7Driver) Init(ctx context.Context, config core.DriverConfig) error

func (*S7Driver) Name

func (d *S7Driver) Name() string

func (*S7Driver) Read

func (d *S7Driver) Read(ctx context.Context, tags []string) ([]core.TagValue, error)

func (*S7Driver) Restart

func (d *S7Driver) Restart(ctx context.Context, config core.DriverConfig) error

func (*S7Driver) Start

func (d *S7Driver) Start(ctx context.Context) error

func (*S7Driver) Status

func (d *S7Driver) Status() core.DriverStatus

func (*S7Driver) Stop

func (d *S7Driver) Stop() error

func (*S7Driver) Subscribe

func (d *S7Driver) Subscribe(ctx context.Context, tags []string) (<-chan core.DataPoint, error)

func (*S7Driver) Type

func (d *S7Driver) Type() string

func (*S7Driver) Write

func (d *S7Driver) Write(ctx context.Context, commands []core.WriteCommand) ([]core.WriteResult, error)

Jump to

Keyboard shortcuts

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