G'day,
easy peasy with the M340. In Unity, double click the processor in the configuration tab in the structural view on the left of the unity window. this opens up a couple tabs on the right for the processor.
in the configuration tab, on the right is a section for memory management. Select the radio button next to "Mixed Topological & State Ram". then define how many registers you want for each. If you're interfacing this PLC to some other modbus device, I'd suggest using 0x and 4x registers only for the mapping table.
Now to actually build your table, all you do is create variables (either an array, DDT or even single variables and give them an address. For example, to create 3 words at addresses 400001, 400002 and 400003 you simple create 3 variables and set the addresses to %MW0, %MW1, %MW2.
Unity uses IEC style addresses, which are offset by 1 compared to traditional modbus addresses. %MW for 4x holding registers, %M for 0x coils.
Hope that helps. what will be reading / writing to this map? If it's one of the "NZ made" RTUs like a Qtech XL4 or Abbey Systems RTU then there are a few other tricks to use. PM me if this is what you're doing.