Unless ready made code for that specific bar code scanner is available, the only sensible thing at this point is to find the specs of the scanner, more specifically the communication protocol and start from there.
If all you have ever done is turn relays on and off in PLC code, with or without some delays here and there, then you may be in for a bumpy ride. You can learn a lot along the way.