public Fins(PlcProtocolType protocol, byte network, byte unit, byte node, int timeout, int localHostEthIndex, IXCom comm) : this(protocol, network, unit, node, comm) { _timeout = timeout; this.localHostEthIndex = localHostEthIndex; SrcNode = NetPoint.LocalHostPoint[localHostEthIndex].IPAddress.GetAddressBytes()[3]; Header = new FinsHeader(ProtType, SrcNetwork, SrcUnit, SrcNode, DstNetwork, DstUnit, DstNode); }
public Fins(PlcProtocolType pt, byte network, byte unit, byte node, IXCom comm) : this(pt, comm) { DstNetwork = network; SrcNetwork = network; DstNode = node; SrcNode = NetPoint.LocalHostPoint[0].IPAddress.GetAddressBytes()[3]; DstUnit = unit; DstUnit = unit; Header = new FinsHeader(ProtType, SrcNetwork, SrcUnit, SrcNode, DstNetwork, DstUnit, DstNode); }
public Fins(PlcProtocolType pt, IXCom comm) : this(comm) { ProtType = pt; switch(pt) { case PlcProtocolType.FinsUDP: FrameIndexBase = 0; break; default: break; } Header = new FinsHeader(ProtType, SrcNetwork, SrcUnit, SrcNode, DstNetwork, DstUnit, DstNode); }
public Fins(IXCom comm) : base(comm) { SID = 0; Header = new FinsHeader(ProtType, SrcNetwork, SrcUnit, SrcNode, DstNetwork, DstUnit, DstNode); }