Peter-B- / Sharp7.Monitor

Console program to monitor variables on a S7 Plc over network
MIT License
18 stars 2 forks source link
monitoring-tool plc s7 siemens siemens-plc siemens-s7

# 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

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: