Merge pull request #395 from mycroes/s7-200-cr

Change S7 200 remote TSAP to 10.01
This commit is contained in:
Michael Croes
2021-06-06 22:45:53 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ namespace S7.Net.UnitTest
[TestMethod]
public void Test_ConnectionRequest_S7_200()
{
CollectionAssert.AreEqual(MakeConnectionRequest(16, 0, 16, 0),
CollectionAssert.AreEqual(MakeConnectionRequest(16, 0, 16, 1),
ConnectionRequest.GetCOTPConnectionRequest(TsapPair.GetDefaultTsapPair(CpuType.S7200, 0, 0)));
}

View File

@@ -68,7 +68,7 @@ namespace S7.Net.Protocol
switch (cpuType)
{
case CpuType.S7200:
return new TsapPair(new Tsap(0x10, 0x00), new Tsap(0x10, 0x00));
return new TsapPair(new Tsap(0x10, 0x00), new Tsap(0x10, 0x01));
case CpuType.Logo0BA8:
// The actual values are probably on a per-project basis
return new TsapPair(new Tsap(0x01, 0x00), new Tsap(0x01, 0x02));