bara_hence
Member
I have an encoder that gives its position by 9bits gray code (512 steps) is there an easy way to make a software (in ladder?) to se if the encoder is ok and doesnt miss a position..
I came up with one soloution by my own and that is to use 513memory bits and compare value in with 0-512 and then set or reset each bit and then I can se wich position it has missed if it misses one but this gives a large program and it must be a better way..
I came up with one soloution by my own and that is to use 513memory bits and compare value in with 0-512 and then set or reset each bit and then I can se wich position it has missed if it misses one but this gives a large program and it must be a better way..