As I said before you really need to go on a Mazatrol programming course, because you will not work it out on your own.