Does anyone out there have any experience in using a barcode reader to populate MACRO variables on Fanuc machining centers?

We do a lot of 1-off machining and would like to have a way to quickly input the variables.