Basically with the TURN value you define if an axis value is >= 0 or not. In your example, the issue is that the workpiece is quite in front of your robot and you are assigning the same TURN to all positions. So you define with the TURN value, that A1 is >=0. So now if the robot would move to -5, with a defined TURN value it would move to 355 instead.
So you either need to provide different turn values, or you just move your workpiece, so that all positions are on one “side” of the robot, thus circumventing the problem.
Also, I would strongly recommend to enable the smooth robot simulation as well as movement interpolation, as it makes spotting problems much easier!