SetIODef メソッド
解説
入力, 出力, メモリーI/Oのビット, バイト, ワードのI/Oラベルとコメントを設定します。
書式
Sub SetIODef (Type As SpelLabelTypes, Index As Integer, Label As String, 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
新しいコメントを指定
コメント
SetIODefは、各I/Oポイントのラベルやコメントを定義します。
SetIODef 使用例
VB 例:
Dim label, desc As String
label = "StartCycle"
desc = "Starts the robot cycle"
m_spel.SetIODef(SpelLabelTypes.InputBit, 0, label, desc)
C# 例:
string label, desc;
label = "StartCycle";
desc = "Starts the robot cycle";
m_spel.SetIODef(SpelLabelTypes.InputBit, 0, label, desc);