Sense方法

描述
指定輸入條件,符合條件時會停止目標位置上方的機器人,以完成進行中的Jump。

語法
Sub Sense (Condition As String) As Boolean

參數

  • Condition
    指定I/O條件。有關詳細資訊,請參閱SPEL+語言參考的「Sense」。

另請參閱
Jump方法, JS方法

Sense範例
VB 例:

With m_spel  
    .Sense("Sw(1) = On")  
    .Jump("P1 SENSE")  
    stoppedOnSense = .JS()  
End With  

C# 例:

m_spel.Sense("Sw(1) = On");  
m_spel.Jump("P1 SENSE");  
stoppedOnSense = m_spel.JS();