NRC_PosReachable(NRC_Position target,NRC_SyncPosition syncTarget,bool &result)
Determine whether the point is reachable
This function can judge whether the body point target and the external axis point syncTarget exceed the limit, and the result is returned by "result". If the value of "result" is "true", it means that the point is reachable, and if the value is "false", it means that it is not reachable
Type
int=>Determine whether the point is reachable
Return value | Description |
---|---|
true | Reachable |
false | Unreachable |
Parameter Option
Parameter | Type | Description |
---|---|---|
target | NRC_Position | NRC_Position |
syncTarget | NRC_SyncPosition | NRC_SyncPosition |
result | bool | bool |
Sample code
bool result;
NRC_Position target2 = { NRC_MCS, 320,0,580,3.14159,0,0};
NRC_SyncPosition synctarget2 = {NRC_ACS,0.5,1,1.5,2,2.5};
NRC_PosReachable( target2,syncTarget2,result);