PLC Program For Omron Encoder Interfacing With Omron PLC

PLC Program for Reading Encoder Pulses :-
Now we will see how to do the PLC Programming for reading the PV values of encoder.
Well there is one instruction PRV in omron PLC which is used to read the high speed counter input values , we have to write that instruction accordingly. In the PRV Instruction we have to specify the Port i.e at which Port we are connecting the encoder , #0010 for port 1 , #0011 for port 2 , #0012 for port 3 and so on , also we have to specify in the control word as #0 i.e we are reading the value . Also we can reset the encoder PV by setting the System bit , all the things are clearly depicted in PLC Program.You can download it from below.

Download.