Пример #1
0
 public void Init(PduSizeParameter.PduSize pduSize, Tsap sourceTsap, Tsap destinationTsap)
 {
     Length = (byte)(Size - 1);
     ConnectionRequest.Init();
     PduSizeParameter.Init(pduSize);
     SourceTsapParameter.Init(ParameterCode.SourceTsap, sourceTsap);
     DestinationTsapParameter.Init(ParameterCode.DestinationTsap, destinationTsap);
 }
Пример #2
0
 public S7Plc(string host, Tsap sourceTsap, Tsap destinationTsap)
 {
     Host            = host;
     SourceTsap      = sourceTsap;
     DestinationTsap = destinationTsap;
 }
Пример #3
0
 public S7Connection(string host, Tsap sourceTsap, Tsap destinationTsap)
 {
     Sally7Connection = new Sally7.S7Connection(host, sourceTsap, destinationTsap);
 }
Пример #4
0
 public static int BuildConnectRequest(Span <byte> buffer, Tsap sourceTsap, Tsap destinationTsap)
 {
     ref var message = ref buffer.Struct <ConnectionRequestMessage>(4);