This is not an unusual sight in Japan. Many restaurant chains and small joints use these machines to save on labor costs and to streamline the ordering process.
Don’t be fooled by the look of the machine, many good affordable restaurants use those. If you are lucky they will have a fancy display with pictures. Making a choice will be easy.
If you are less lucky, everything will be written in Kanji without photos. Don’t be discouraged, I’ve often been in this situation as well. Adopting a puzzled expression on your face is a good solution. More often than not, a staff will come and help you choose with whatever English they know. Not only your getting great food but some original human interaction, perhaps with the cook himself.
As for the technicalities: simply insert some bills in the machine and push any button you like. Paper receipts will come out for each item, you should bring those to the table of your choice where a staff will come acknowledge your order. FYI beer is spelled like ビール.