示例#1
0
 public Communicator(DPbusFactory BusFactory, int baudRate, Parity parity, int dataBits, StopBits stopBits, string COMorIP = "", int port = 0, int lenSndBuffer = 32, int lenRecBuffer = 32)
 {
     _target = BusFactory.CreateDev485(baudRate, parity, dataBits, stopBits, COMorIP, port, lenSndBuffer, lenRecBuffer);
 }
示例#2
0
 public DPOrnoWE515(DPbusFactory BusFactory, byte address, int baudRate,  Parity parity, int dataBits, StopBits stopBits, string COMorIP="", int port=0,int lenSndBuffer=32,int lenRecBuffer=32 )
 {
     lenAuroraCmd=8;
        targetAddress=address;
        myDev = BusFactory.CreateDev485(baudRate,parity, dataBits ,stopBits, COMorIP, port, lenSndBuffer, lenRecBuffer);
 }