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 FinsHeader(PlcProtocolType pt, byte sna, byte sunit, byte snode, byte dna, byte dunit, byte dnode) : this(pt) { SNA = sna; SA1 = snode; SA2 = sunit; DNA = dna; DA1 = dnode; DA2 = dunit; }
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 PlcInfo(string name, string vendor, string module, string deviceID, int seq, string ip, int port, byte network, byte unit, byte node, PlcProtocolType pt, int timeout, int ethIndex, string comKey) : base(name, vendor, module, deviceID) { Sequence = seq; IPAddress = ip; Port = port; Network = network; Unit = unit; Node = node; ProtType = pt; Timeout = timeout; LocalHostEthIndex = ethIndex; ComKey = comKey; }
public FinsHeader(PlcProtocolType pt) : this() { ProtType = pt; }