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