示例#1
0
        public NewModuleAdam4019Plus(NewNetModules net, byte address10) : base(net, address10, ChannelCount + 1)
        {
            //Address10 = address10;

            _dataFormat = null;
            _inputRange = null;
            _baudRate   = null;

            for (byte channel = 0; channel < ChannelCount; channel++)
            {
                Channels[channel] = new NewChannelAdam4019Plus(this, channel);
            }
            Channels[8] = new NewChannelAdamCjc(this, ChannelCount);
        }
示例#2
0
        public NewModuleAdam4019Plus(NewNetModules net, string address) : base(net, address, ChannelCount + 1)
        {
            //byte? adress10 = HexToByte(address);
            //Address = (adress10 != null) ? address : null;

            _dataFormat = null;
            _inputRange = null;
            _baudRate   = null;

            for (byte channel = 0; channel < ChannelCount; channel++)
            {
                Channels[channel] = new NewChannelAdam4019Plus(this, channel);
            }
            Channels[ChannelCount] = new NewChannelAdamCjc(this, ChannelCount);
        }