Beispiel #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public PLCRWMx()
        {
            //L系
            //_actObj = new ActLCPUTCP();// new ActQNUDECPUTCP();
            //_actObj.ActCpuType = 0xA1; //Q03UDECPU:0x90,CPU_L02CPU:0xA1,Q02:0x141,Q01:0x32

            //Q
            //_actObj = new ActAJ71E71TCP();//new ActQNUDECPUTCP();
            _actObj = new ActQJ71E71TCP(); //new ActQJ71E71UDP(); //

            //_actObj.ActCpuType = 0x141; //Q02,实际是Q01
            _actObj.ActCpuType     = 0x32; //Q01cpu
            _actObj.ActHostAddress = "192.168.1.100";
            //_actObj.ActTimeOut

            //_actObj.ActNetworkNumber = 0;
            // _actObj.ActStationNumber = 0;
            if (this.db1Len < 10)
            {
                this.db1Len = 10;
            }
            if (this.db2Len < 10)
            {
                this.db2Len = 10;
            }
            db1Vals = new Int16[this.db1Len];
            db2Vals = new Int16[this.db2Len];
        }
Beispiel #2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public PLCRWMx()
        {
            //L系
            //_actObj = new ActLCPUTCP();// new ActQNUDECPUTCP();
            //_actObj.ActCpuType = 0xA1; //Q03UDECPU:0x90,CPU_L02CPU:0xA1,Q02:0x141,Q01:0x32

            //Q
            //_actObj = new ActAJ71E71TCP();//new ActQNUDECPUTCP();
            _actObj = new ActQJ71E71TCP(); //new ActQJ71E71UDP(); //

            //_actObj.ActCpuType = 0x141; //Q02,实际是Q01
            _actObj.ActCpuType     = 0x32; //Q01cpu
            _actObj.ActHostAddress = "192.168.1.100";
            //_actObj.ActTimeOut

            //_actObj.ActNetworkNumber = 0;
            // _actObj.ActStationNumber = 0;
        }