Serial Ascii to Modbus TCP

I am trying to convert serial ascii (bar code scanner) to modbus tcp (Schnieder M340 PLC) I am having trouble with adressing. Is it possible to point the data to a scecific memory word location in the PLC? for example 30001 being %MW0?