Interfacing of absolute encoder with MicroLogix 1500 PLC

A

Thread Starter

Arup Basu

I want to sense the angular position of 360 degree rotation of line shaft of a machine to perform number of specific functions at particular position. How can any standard absolute encoder can be interfaced with the MicroLogix series of Allen Bradley PLC, particularly MicroLogix 1500. I also request for any type of sample program for such application.
 
Its actually very simple. If for example you are using a 12 bit absolute TTL encoder, connect each data line 0-11 to the corresponding input 0-11 of a 16 point input card. Use a masked move to move the first 12 bits of the input word to a holding register, say N7:0.

MVM I:??.0 0FFFh N7:0

N7:0 now contains a number in the range of 0 to 4095 that corresponds to 360 degrees of rotation.

You could convert to degress by using the following:
SCP N7:0 0 4095 0.0 360.0 F8:0.
But it would be better to convert your angles to counts, so that if for example you wanted to do something at 90 degrees, that would be 1024 counts.
 
Top