TW 方法

描述
返回 WAIT 条件和 WAIT 定时器间隔的状态。

语法
Function TW () As Boolean

返回值
如果发生超时,则返回 True,否则返回 False。

参阅
WaitMem 方法, WaitSw 方法

TW 示例
VB 例:

Const PartPresent = 1  
m_spel.WaitSw(PartPresent, True, 5)  
If m_spel.TW() Then  
    MsgBox "Part present time out occurred"  
End If  

C# 例:

const int PartPresent = 1;  
m_spel.WaitSw(PartPresent, True, 5);  
if (m_spel.TW())  
    MessageBox.Show("Part present time out occurred");