I have done as you suggested but I get an error: "Invalid device address. Enable or disable IEC address mode in the equipment." How should I do this? It's true that I don't use Modbus addresses but memory addresses.
Later edit. I have seen the video suggested by @LeTomas and I've how he's done it.