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); }
public S7Plc(string host, Tsap sourceTsap, Tsap destinationTsap) { Host = host; SourceTsap = sourceTsap; DestinationTsap = destinationTsap; }
public S7Connection(string host, Tsap sourceTsap, Tsap destinationTsap) { Sally7Connection = new Sally7.S7Connection(host, sourceTsap, destinationTsap); }
public static int BuildConnectRequest(Span <byte> buffer, Tsap sourceTsap, Tsap destinationTsap) { ref var message = ref buffer.Struct <ConnectionRequestMessage>(4);