Are you using your own script? Some kind and awesome gentleman posted an add on for setting zeros in one of the forums here. X, Y, and Z. It's great. No need to write your own. If that's the one you're using, I can assure you that the fault is not with the program he wrote, because that thing works awesome for me.
As for camworks, I have no idea. But if you want input from someone, a screenshot of the code is probably the best way to achieve that goal.