AnthonyLH Posted October 10, 2016 Share Posted October 10, 2016 Dear all, Is there a way to know if a forward() kinematic fonction was called in purspose to move axes (pmatch) or just to read positions (&1p, pread, GetCoordPos) ? I would like to react differently depending on the caller. Thank you. Link to comment Share on other sites More sharing options...
curtwilson Posted October 10, 2016 Share Posted October 10, 2016 In your forward kinematic subroutine, use the conditional if (Ldata.Status & $40) This will be true if called from a motion program to execute the pmatch function. It will be false if called from an axis query command. Please see the examples in the User's Manual on Coordinate Systems for examples of how this is used. Link to comment Share on other sites More sharing options...
AnthonyLH Posted October 11, 2016 Author Share Posted October 11, 2016 Thank you Curt! Link to comment Share on other sites More sharing options...
Recommended Posts