Dynamic Axioline bus configuration, RS Uni Module and Solarworx functions blocks

Dear Community,
I’m using an Axioline RS Uni module to perform Modbus RTU, with the help of Solarworx function blocks.
The basic code structure is this:
SXbsc_SiAxRsUni20_1(…,
arrProcessDataIn := moduleProcessDataIn, // array of 20 bytes
arrProcessDataOut := moduleProcessDataOut, // array of 20 bytes
udtSerialIf := serialData);

SXbsc_MbMstCom_1(…,
udtSerialIf := serialData);

This works, however: I want to switch to dynamic configuration of the Axioline bus, which means, I no longer have moduleProcessDataIn / moduleProcessDataOut. Instead, I have two 512 byte arrays. The process data for the RS Uni is found at some index (which I know) inside these arrays.
How do I use this array together with SXbsc_SiAxRsUni20_1? Will it work if I simply copy from / to temporary arrays before and after calling the function block? I don’t think it will…

Best regards,
Daniel

That should work, to declare local arrays of the correct size and copy the data between those arrays and the corresponding process data bytes in the 512 byte array.

Dear Martin,
thank you for your answer. This simple solution does indeed work!
Best regards,
Daniel