Call your vendor. He supposed to know how to set an operation properly. If you don't have one I would suggest to find somebody. This is to much programming has to be done and its obvious you have no idea what to do.