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