From df833cc3acae978893eb633051d858bac3afc776 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Mon, 21 Aug 2023 16:12:28 +0100 Subject: [PATCH] Update README.md --- README.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a22833..a326c31 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ ![License](https://img.shields.io/github/license/ChrisPulman/S7PlcRx.svg) [![Build](https://github.com/ChrisPulman/S7PlcRx/actions/workflows/BuildOnly.yml/badge.svg)](https://github.com/ChrisPulman/S7PlcRx/actions/workflows/BuildOnly.yml) ![Nuget](https://img.shields.io/nuget/dt/S7PlcRx?color=pink&style=plastic) [![NuGet](https://img.shields.io/nuget/v/S7PlcRx.svg?style=plastic)](https://www.nuget.org/packages/S7PlcRx) +![Alt](https://repobeats.axiom.co/api/embed/48a23aed3690ef69ed277b96f2154062dd436af2.svg "Repobeats analytics image") +

- S7PlcRx + S7PlcRx

@@ -64,3 +66,34 @@ plc?.GetTag("Tag0")?.SetTagPollIng(true); ```csharp plc.Value("Tag0", 1.0); ``` + +#### Read PLC CPU Info +```csharp +var cpuInfo = await plc.CpuInfo(); +``` + +This returns a `CpuInfo` string Array with the following values: +AS Name, Module Name, Copyright, Serial Number, Module Type Name, Order Code, Version. + +#### Supported Data Types + +- Bool +- Byte +- Int +- DInt +- Real +- LReal +- String +- Word +- DWord + +Further types will be added in the future. + +#### Supported PLCs + +- Logo-0BA8 +- S7-200 +- S7-300 +- S7-400 +- S7-1200 +- S7-1500