Could you just insert in absolute value command when collecting y value data to fix the issue?
so where ever you calculate y in you code instead of the following...
y = "code";
y = abs("code");
Custom Parts Machining... Feel Free to Contact
"All that is necessary for evil to succeed is for good men to do nothing"
God Bless America