As long as your bar code reader has an RS232 port and can output data in CR terminated ASCII format it is a piece of cake to read it into the PLC's RS232 port using the
A$ = INPUT$(1)
command. Once the data is read into PLC, you have at your disposal all the commands needed to extract the data or convert into numbers.