This should be easy to fix, by printing your signals in a plot or a log. You can then see what the problem is. The Zorro manual has a chapter about troubleshooting and finding bugs.