GetIODef Method
Description
Gets the definition information for an input, output, or memory I/O bit, byte, or word.
Syntax
Sub GetIODef(Type As SpelIOLabelTypes, Index As Integer, ByRef Label as String, ByRef Description As String)
Parameters
- Type
Specifies the I/O type as shown below: InputBit = 1 InputByte = 2 InputWord = 3 OutputBit = 4 OutputByte = 5 OutputWord = 6 MemoryBit = 7 MemoryByte = 8 MemoryWord = 9 InputReal = 10 OutputReal = 11 - Index
Specifies the bit or port number. - Label
Returns the label. - Description
Returns the description.
Return Value
The values are returned in the Label and Description parameters.
Remarks
Use GetIODef to get the labels and descriptions used for all I/O in the current project.
See Also
SetIODef Method
GetIODef Example
VB Example:
Dim label As String
Dim desc As String
m_spel.GetIODef(SpelIOLabelTypes.InputBit, 0, label, desc)
C# Example:
string label, desc;
m_spel.GetIODef(SpelIOLabelTypes.InputBit, 0, out label, out desc);