Exemple #1
0
        public DiscrateOutputPointObject(ISlaveDevice device, int instances)
        {
            this.SlaveDevice = device;

            Instances = new List <DiscreteOutputPointInstance>();

            for (byte i = 0; i < instances; i++)
            {
                Instances.Add(new DiscreteOutputPointInstance(this, (byte)(i + 1)));
            }
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="device"></param>
 public IdentityObject(ISlaveDevice device)
 {
     this.SlaveDevice = device;
 }
Exemple #3
0
        //public InstanceAttribute<ushort> MACID { get { return new InstanceAttribute<ushort>(this, 1, DataType.UINT); } }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="device"></param>
        public DeviceNetObject(ISlaveDevice device)
        {
            this.SlaveDevice = device;
        }