SetIODef Method
Description
Sets the I/O label and description for an input, output, or memory I/O bit, byte, or word.
Syntax
Sub SetIODef (Type As SpelLabelTypes, Index As Integer, Label As String, 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
Specifies a new label. - Description
Specifies a new comment.
Remarks
Use SetIODef to define the label and description for any I/O point.
See Also
GetIODef Method
SetIODef Example
VB Example:
Dim label, desc As String
label = "StartCycle"
desc = "Starts the robot cycle"
m_spel.SetIODef(SpelLabelTypes.InputBit, 0, label, desc)
C# Example:
string label, desc;
label = "StartCycle";
desc = "Starts the robot cycle";
m_spel.SetIODef(SpelLabelTypes.InputBit, 0, label, desc);