What type of feature are you teaching? Most likely the Z orientation is not what you think it is but rather points 180 degrees from where you think it does, common with planes and lines.
Quickbway to fugure it out is to go to the move screen and move in that feature along the Z axis. Does it move in the same direction as the Z axis of the tool, assuming the tool is oriented in the same general direction or opposite.
Hello Pros
I asked this before, but I am not confident I have the most effective answer. https://dof.robotiq.com/discussion/897/installation-or-feature-xyz-orientation#latest
What is the best/proper way to teach a feature point using the TCP, and then have the TCP go back to that same point when referenced in a MoveL command?
When I teach Feature_X, the TCP setting is p[0,0,0.240.0.0.0]. In the program, I then do a MoveL to a variable waypoint p[0,0,0,0,0,0] the robot arm wants to go to that point, but on the opposite side of what is was when the feature was taught. How do I teach the feature so the TCP will go to it (on the correct side) when the MoveL is executed in the program?