Esempio n. 1
0
        public override void Init()
        {
            base.Init();

            StartJamodSlave(program);

            MasterTcp = new TcpClient(TcpHost.ToString(), Port);
            Master    = ModbusIpMaster.CreateIp(MasterTcp);
        }
Esempio n. 2
0
        public NModbusTcpMasterJamodTcpSlaveFixture()
        {
            string program = $"TcpSlave {Port}";

            StartJamodSlave(program);

            MasterTcp = new TcpClient(TcpHost.ToString(), Port);
            Master    = ModbusIpMaster.CreateIp(MasterTcp);
        }
Esempio n. 3
0
    public NModbusTcpMasterNModbusTcpSlaveFixture()
    {
        SlaveTcp = new TcpListener(TcpHost, Port);
        SlaveTcp.Start();
        Slave = ModbusTcpSlave.CreateTcp(SlaveAddress, SlaveTcp);
        StartSlave();

        MasterTcp = new TcpClient(TcpHost.ToString(), Port);
        Master    = ModbusIpMaster.CreateIp(MasterTcp);
    }
Esempio n. 4
0
        public override void Init()
        {
            base.Init();

            SlaveTcp = new TcpListener(TcpHost, Port);
            SlaveTcp.Start();
            Slave = ModbusTcpSlave.CreateTcp(SlaveAddress, SlaveTcp);
            StartSlave();

            MasterTcp = new TcpClient(TcpHost.ToString(), Port);
            Master    = ModbusIpMaster.CreateIp(MasterTcp);
        }