<< Prev        Next >>

ID : 7309

GetCollisionStatus

Function

Returns the status of collision detection.

Syntax

GetCollisionStatus (table number)

Guaranteed Entry

Table number
Set the table number "1". 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.

Related Terms

SetCollisionDetection

Attention

  • When a collision is detected while the occurrence of error is set to "Do", an error occurs and the program stops. Therefore, to execute this command, the occurrence of error needs to be set to "DoNot".

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 : 7309

<< Prev        Next >>