GetIODef メソッド

解説
入力, 出力の定義情報、またはメモリーI/Oビット, バイト, 文字を取得します。

書式
Sub GetIODef(Type As SpelIOLabelTypes, Index As Integer, ByRef Label as String, ByRef Description As String)

パラメーター

  • Type
    下に示すようにI/Oタイプを指定 InputBit = 1 InputByte = 2 InputWord = 3 OutputBit = 4 OutputByte = 5 OutputWord = 6 MemoryBit = 7 MemoryByte = 8 MemoryWord = 9 InputReal = 10 OutputReal = 11
  • Index
    ビット番号、あるいはポート番号を指定
  • Label
    ラベルを返す
  • Description
    記述を返す

戻り値
LabelやDescriptionパラメーター

コメント
カレントプロジェクトのすべてのI/Oで使用されているI/OGetIODefを取得します。

参照
SetIODef メソッド

GetIODef使用例
VB 例:

Dim label As String  
Dim desc As String    
m_spel.GetIODef(SpelIOLabelTypes.InputBit, 0, label, desc)  

C# 例:

string label, desc;  
  
m_spel.GetIODef(SpelIOLabelTypes.InputBit, 0, out label, out desc);