I think your problem may be in the position variable size.
Here are a couple examples.
http://www.picbasic.co.uk/forum/showthread.php?t=10692
http://www.picbasic.co.uk/forum/show...t=14149&page=1
And a nice tutorial
http://www.picbasic.co.uk/forum/showthread.php?t=544