Hi all,
in my task, I am responsible to read the position of a moving sensor that I have currently. There are 15 total positions that the sensor will move to. Variable Y02, Y03, Y04 and Y05 will determine the position of the sensor.
For example at position 2, the value for
Y02 = 0
Y03 = 1
Y04 = 0
Y05 = 0
The binary bit will be 0100. Every position has its own binary bit. How do I make program for the PLC to save that, when the binary is at 0100, it is at Position 2. Thank you in advance.
Best regards,
Umair