Esempio n. 1
0
 public ec_slave_info_t(SlaveInfo slaveInfo)
 {
     this.manufacturer = slaveInfo.Manufacturer;
     this.productCode  = slaveInfo.ProductCode;
     this.revision     = slaveInfo.Revision;
     this.oldCsa       = slaveInfo.OldCsa;
     this.csa          = slaveInfo.Csa;
     this.parentIndex  = 0;
 }
Esempio n. 2
0
 public SlavePdo(SlaveInfo parent, string name, ushort index, ushort osMax, bool isFixed, bool isMandatory, int syncManager)
 {
     this.Parent      = parent;
     this.Name        = name;
     this.Index       = index;
     this.OsMax       = osMax;
     this.IsFixed     = isFixed;
     this.IsMandatory = isMandatory;
     this.SyncManager = syncManager;
 }
Esempio n. 3
0
        public SlavePdo(SlaveInfo parent, string name, ushort index, ushort osMax, bool isFixed, bool isMandatory, int syncManager)
        {
            Contract.Requires(parent != null);
            Contract.Requires(syncManager >= 0);

            this.Parent      = parent;
            this.Name        = name;
            this.Index       = index;
            this.OsMax       = osMax;
            this.IsFixed     = isFixed;
            this.IsMandatory = isMandatory;
            this.SyncManager = syncManager;
        }
Esempio n. 4
0
        public DigitalIn(SlaveInfo slave)
        {
            _slavePdos    = slave.DynamicData.Pdos;
            _nofSlavePdos = _slavePdos.Count;

            if (_nofSlavePdos == 0)
            {
                throw new Exception($"No slave PDOs present.");
            }

            var channel1Pdo = _slavePdos[0];
            var variableCh1 = channel1Pdo.Variables.First();

            // get memory address of outputs
            _memoryMapping = (int *)variableCh1.DataPtr.ToPointer();
        }
Esempio n. 5
0
 public SlaveExtension(SlaveInfo slave)
 {
     this.Slave = slave;
 }
Esempio n. 6
0
 public DigitalOut(SlaveInfo slave) : base(slave)
 {
 }