Class CX7028<TModule1, TModule3, TModule5, TModule7>
Represents a CX7028 onboard IO terminal of a CX7000 device with four slots for IO modules.
public class CX7028<TModule1, TModule3, TModule5, TModule7> : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, ITerminal where TModule1 : OnboardIOModule, new() where TModule3 : OnboardIOModule, new() where TModule5 : OnboardIOModule, new() where TModule7 : OnboardIOModule, new()
Type Parameters
TModule1
Type of module 1 (slot 'InOut[1..2]'). Type must be DIO2x.
TModule3
Type of module 3 (slot 'InOut[3..4]'). Type must be DIO2x.
TModule5
Type of module 5 (slot 'In[5..6]'). Type must be DI2x.
TModule7
Type of module 7 (slot 'In[6..8]'). Type must be DI2x.
- Inheritance
-
PropertyChangedBaseCX7028<TModule1, TModule3, TModule5, TModule7>
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Examples
This example shows how to set up CX7000 onboard IOs:
Tip
The CX7000 can also be used as bus coupler. Therefore follow the steps on Getting Started With TwinCat 3 and Getting Started With C#.
The Loehnert.Lisrt.IO.Beckhoff library reads data directly from the onboard IO device, so the ADS server of the device must be enabled.
Check Enable ADS Server and Create symbols.
Use the port later in your LisRT module configuration.
Note
It is not necessary to link a variable of the onboard IOs with a task.
Remarks
Insert an 'Onboard I/O Device' for a CX7000 device with a 'CX7028' terminal in your TwinCat 3 IO tree by scanning or adding it manually.
Constructors
CX7028()
Initializes a new instance of the CX7028<TModule1, TModule3, TModule5, TModule7> class.
public CX7028()
Exceptions
- NotSupportedException
Thrown when
TModule1
is not of type DIO2x,TModule3
is not DIO2x,TModule5
is not DI2x, orTModule7
is not DI2x.
Properties
AdsVariables
Gets the ADS variables.
public AdsVariableContainer AdsVariables { get; }
Property Value
Module1
Gets the onboard module 1 (slot 'InOut[1..2]').
public TModule1 Module1 { get; }
Property Value
- TModule1
Module3
Gets the onboard module 3 (slot 'InOut[3..4]').
public TModule3 Module3 { get; }
Property Value
- TModule3
Module5
Gets the onboard module 5 (slot 'InOut[5..6]').
public TModule5 Module5 { get; }
Property Value
- TModule5
Module7
Gets the onboard module 7 (slot 'InOut[7..8]').
public TModule7 Module7 { get; }
Property Value
- TModule7
Modules
Gets the ILisrtModules from the OnboardIOModules.
public IEnumerable<ILisrtModule> Modules { get; }
Property Value
Name
Gets or sets the name.
public string Name { get; set; }