Code Monkey home page Code Monkey logo

sharp7.monitor's Introduction

Sharp7Monitor

Ever needed a simple console program to read some variables from a Siemens S7 PLC?

alt text

Sharp7Monitor is a .NET Console program written in C# that connects to a Siemens S7 PLC (Programmable Logic Controller) and reads specified variables. It displays the variable values in a table format directly in your console. The content of these variables is automatically updated.

Usage

  • Download the zip file for your plattform from releases:

  • Extract the s7mon.exe, resp. s7mon binary.

    The binaries are self contained - no installation of .Net Runtime is required.

  • Run the following command:

    .\s7mon.exe <IP_Address> <Variable1> <Variable2> ... <VariableN>

    Replace <IP_Address> with the IP address of your Siemens S7 PLC, and list the desired variables (e.g., DB2050.Byte1, DB2050.Int6, etc.).

    You can find a description of the variable format on the Sharp7.Rx readme.

    If the connection cannot be established, try setting CPU and Rack with the --cpu and --rack parameters.

  • The program will establish a connection to the PLC and continuously display the values of the specified variables in a table format.

    Press Ctrl + C to exit.

Command

s7mon.exe <IP address> [variables] [OPTIONS]

Arguments

<IP address>    IP address of S7
[variables]     Variables to read from S7, like Db200.Int4.
                For format description see https://github.com/evopro-ag/Sharp7Reactive

Options

                     DEFAULT
    -h, --help                  Prints help information
    -c, --cpu        0          CPU MPI address of S7 instance.
                                See https://github.com/fbarresi/Sharp7/wiki/Connection#rack-and-slot.

    -r, --rack       0          Rack number of S7 instance.
                                See https://github.com/fbarresi/Sharp7/wiki/Connection#rack-and-slot.

Example Invocation

.\s7mon.exe 10.30.110.62 DB2050.Byte1 DB2050.Byte2.4 DB2050.Int6 DB2050.Real34 DB2050.String50.20

Configure Cpu and Rack

Use --cpu and --rack parameters to specity the S7 instance to connect to. The required values depend on the S7 you are using and it's configuration. You can find more information in the Sharp 7 docs.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

On the shoulders of giants

This project is based on great libraries:

sharp7.monitor's People

Contributors

peter-b- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.