<< Prev        Next >>

ID : 5103

GetCollisionStatus

Function

Returns the status of collision detection.

Syntax

GetCollisionStatus (table number)

Guaranteed Entry

Table number
Set a table number to use "1 to10." Designate integer type data.

Return Value

Returns the status of collision detection as 8 bits of integer type data.

It is displayed as "0: No collision" or "1 to 255: Collision detected."

In the following example, if "3" is returned as a return value, it is judged that collision has been detected on the 1st axis and 2nd axis.

 

Description

Returns the status of collision detection.

Attention

Example

Sub Main                                  'Start the program.                         
 TakeArm keep = 1                         'Get axis control for the arm group.
 I1 = GetCollisionStatus (1)              'Return the collision status of the table 
                                          'number 1. 
 :
 :
End Sub                                   'End of program.

ID : 5103

<< Prev        Next >>