The function block implements the interface IF_CollisionGroup.
Access: PUBLIC
Return type: UDINT
Input |
Data type |
Description |
---|---|---|
i_ifCollisionObject |
Collision object to add to the group. |
Output |
Data type |
Description |
---|---|---|
q_xError |
BOOL |
The output is set to TRUE if an error has been detected during the execution. |
q_etResult |
POU-specific output on the diagnostic; q_xError = FALSE -> Status message; q_xError = TRUE -> Diagnostic message. |
|
q_sResultMsg |
STRING(80) |
Event-triggered message that gives additional information on the diagnostic state. |
The returned value is the index of the collision object added to the list. It can be used to refer to the object through the property raifCollisionObjects.
q_xError |
q_etResult |
Enumeration value |
Description |
---|---|---|---|
FALSE |
0 |
Success |
|
TRUE |
31 |
The maximum number of collision group objects has been reached. |
|
TRUE |
11 |
The provided interface is invalid (null). |
|
TRUE |
16 |
The provided collision object type is invalid. |
Enumeration name: |
MaxNumberOfCollisionGroupObjectsReached |
Enumeration value: |
31 |
Description: |
The maximum number of collision group objects has been reached. |
Issue |
Cause |
Solution |
---|---|---|
Could not add a collision object to the group. |
The number of stored collision objects udiNumberOfCollisionObject is equal to Gc_udiMaxNumberOfCollisionGroupObjects. |
Verify if udiNumberOfCollisionObject < Gc_udiMaxNumberOfCollisionGroupObjects before trying to add a collision object to the group. |
Enumeration name: |
InterfaceInvalid |
Enumeration value: |
11 |
Description: |
The provided interface is invalid (null). |
Issue |
Cause |
Solution |
---|---|---|
Could not add a collision object to the group. |
i_ifCollisionObject contains an invalid interface |
Make sure that i_ifCollisionObject is not null. |
Enumeration name: |
CollisionObjectTypeInvalid |
Enumeration value: |
16 |
Description: |
The provided collision object type is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Could not add a collision object to the group. |
i_ifCollisionObject.etType contains a not supported object type. |
Make sure that i_ifCollisionObject.etType has one of the following types:
|