コード例 #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;
 }
コード例 #2
0
ファイル: SlavePdo.cs プロジェクト: XzuluX/EtherCAT.NET
 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;
 }
コード例 #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;
        }
コード例 #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();
        }
コード例 #5
0
 public SlaveExtension(SlaveInfo slave)
 {
     this.Slave = slave;
 }
コード例 #6
0
 public DigitalOut(SlaveInfo slave) : base(slave)
 {
 }