3D printing with Grasshopper

Hi, I currently facing a problem is that my ABB robot TCP (Tool Center Point) is not perpendicular with the my print path when encounter curve path, have any ideas to create plane perpendicular to the curve in grasshopper? Below the sketch of what I wish the robot move like. Thanks!