device_s7

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Device Service for Siemens S7 PLC

Warning
The main branch of this repository contains work-in-progress development code for the upcoming release, and is not guaranteed to be stable or working. It is only compatible with the main branch of edgex-compose which uses the Docker images built from the main branch of this repo and other repos.

The source for the latest release can be found at Releases.

Documentation

For latest documentation please visit https://docs.edgexfoundry.org/latest/microservices/device/services/device-s7/Purpose

Overview

S7 Micro Service - device service for connecting Siemens S7(S7-200, S7-300, S7-400, S7-1200, S7-1500) devices by ISO-on-TCP to EdgeX.

  • This device service is contributed by YIQISOFT
  • The sevice has tested on S7-300, S7-400, S7-1200

Features

  • Single Read and Write
  • Multiple Read and Write
  • High performance, more 2000 items per second(depends on S7 model)
    • Use S7-Device01 sample device configuration, interval should be less than IdelTimeout
    • S7-1200 and S7-1500 preferred
    • Create multiple connections to one S7 device use different device name

Prerequisites

  • A Siemens S7 series device with network interface
  • Enable ISO-on-TCP connection on the S7 device

Build Instructions

  1. Clone the device-rest-go repo with the following command:

    git clone https://github.com/edgexfoundry/device-s7.git
    
  2. Build a docker image by using the following command:

    make docker
    
  3. Alternatively the device service can be built natively:

    make build
    

Build with NATS Messaging

Currently, the NATS Messaging capability (NATS MessageBus) is opt-in at build time. This means that the published Docker images do not include the NATS messaging capability.

The following make commands will build the local binary or local Docker image with NATS messaging capability included.

make build-nats
make docker-nats

Packaging

This component is packaged as docker images.

Please refer to the Dockerfile and Docker Compose Builder scripts.

Reference

License

Apache-2.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "to be replaced by makefile"

Global version for device-sdk-go

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
This package provides a simple example of a S7 device service.
This package provides a simple example of a S7 device service.
internal
driver
This package provides an example implementation of S7 interface.
This package provides an example implementation of S7 interface.

Jump to

Keyboard shortcuts

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