Removed old examples

- added instant register update if write was successful
This commit is contained in:
Felix Weiß
2023-07-06 22:20:01 +02:00
parent 616d102dea
commit d956525538
24 changed files with 135 additions and 797 deletions

View File

@@ -10,7 +10,7 @@ public class ExpectedPlcInformationData {
public int PLCPort { get; set; }
public CpuType Type { get; set; }
public PlcType Type { get; set; }
public int ProgCapacity { get; set; }

View File

@@ -1,13 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPublishable>false</IsPublishable>
<IsPackable>false</IsPackable>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View File

@@ -20,7 +20,7 @@ namespace MewtocolTests
PLCName = "FPX-H C30T",
PLCIP = "192.168.115.210",
PLCPort = 9094,
Type = CpuType.FP_Sigma_X_H_30K_60K_120K,
Type = PlcType.FPdXH_32k__C30TsP_C40T_C60TsP,
ProgCapacity = 32,
},
@@ -29,7 +29,7 @@ namespace MewtocolTests
PLCName = "FPX-H C14R",
PLCIP = "192.168.115.212",
PLCPort = 9094,
Type = CpuType.FP_Sigma_X_H_30K_60K_120K,
Type = PlcType.FPdXH_16k__C14R,
ProgCapacity = 16,
},
@@ -57,7 +57,7 @@ namespace MewtocolTests
this.output = output;
Logger.LogLevel = LogLevel.Verbose;
Logger.LogLevel = LogLevel.Critical;
Logger.OnNewLogMessage((d, l, m) => {
output.WriteLine($"Mewtocol Logger: {d} {m}");
@@ -102,8 +102,8 @@ namespace MewtocolTests
Assert.True(client.IsConnected);
Assert.Equal(client.PlcInfo.CpuInformation.Cputype, plc.Type);
Assert.Equal(client.PlcInfo.CpuInformation.ProgramCapacity, plc.ProgCapacity);
Assert.Equal(client.PlcInfo.TypeCode, plc.Type);
Assert.Equal(client.PlcInfo.ProgramCapacity, plc.ProgCapacity);
client.Disconnect();