TrapStop Method

Description
Returns True if the current robot was stopped by a trap during the previous motion command.

Syntax
Function TrapStop () As Boolean

Return Value
True if the robot was stopped by a trap, False if not.

See Also
EStopOn Property, ErrorOn Property

TrapStop Example
VB Example:

If m_spel.TrapStop() Then  
    MsgBox "Robot stopped by Trap"  
End If  

C# Example:

if (m_spel.TrapStop())  
    MessageBox.Show("Robot stopped by trap");