Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
        }
Ejemplo 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();
        }
Ejemplo n.º 5
0
 public SlaveExtension(SlaveInfo slave)
 {
     this.Slave = slave;
 }
Ejemplo n.º 6
0
 public DigitalOut(SlaveInfo slave) : base(slave)
 {
 }