Struct S7Selector
This structure holds information to select a data source on SIEMENS S7 PLCs.
Namespace: TeleScope.Connectors.Plc.Siemens
Assembly: TeleScope.Connectors.Plc.Siemens.dll
Syntax
public struct S7Selector
Constructors
| Improve this Doc View SourceS7Selector(Int32, Int32)
Creates an instance of the selector with the given parameters. The property Number will be zero.
Declaration
public S7Selector(int datablock, int bitOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | datablock | The datablock to be selected. |
System.Int32 | bitOffset | The bit offset to be selected. |
S7Selector(Int32, Int32, Int32)
Creates an instance of the selector with the given parameters.
Declaration
public S7Selector(int datablock, int bitOffset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | datablock | The datablock to be selected. |
System.Int32 | bitOffset | The bit offset to be selected. |
System.Int32 | count | The count of a single bit index or the number of characters. |
Properties
| Improve this Doc View SourceBitOffset
Gets or sets the bit offset within the datablock.
Declaration
public int BitOffset { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Datablock
Gets or sets the selected datablock.
Declaration
public int Datablock { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Number
Gets or sets the number or index of a single bit or the number of characters to be read.
Declaration
public int Number { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Overrides the ToString to present the properties.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The combined string with property values. |