* AXC F 2152 PLC
* AXL F RS UNI 1H
* RAD-868-IFS
* Master side:
AXC F 2152 PLC
* AXL F RS UNI 1H
* RAD-868-IFS
For my code I use the Radioline Basic 3 Library and my PLCnext version is the 2024.0.4 LTS.
I have for my Master side the following code:
The Problem is that I get an Timeout error inside the RS UNI module. Below the diagnostics code from the RS UNI master:
When looking at the documentation of the ModBus_RTU_15 it says the following: Process data timeout during the receive process between PLC and module.
I looked for hours to find the issue but can’t seem to understand what the problem is. It would really help if someone could explain which steps to take.
Kind regards,
Hello!
Have you bound RS_UNI_input/Output data to the the module itself?
Transparent mode for the MB RTU library and uni module is preferable in this case.
Also, provide RS UNI module configuration, please.
BR
I added the InputData and OutputData into these GDS ports and now that timeout error is gone. Thanks for that.
Also on the RAD-868-IFS the LEDs of Tx and Rx are turning on sequentially on both RAD-868-IFS modules. So that also seems to be working.
The problem is that I don’t know from which array I must read or write data? It seems that the OutputData and InputData array that I putted in the GDS port serial-1/~DO160 is changing values on it’s own.
Below you see what I did for the Slave side. There I only made the RSUNI_Slave without the FC functions. I added comments for FC4 at InputRegisters and FC16 at Holdingregisters where I thought the data would come.
all other data you should transfer via mb fc blocks. rs_uni input output arrays need to bind program with physical module. and does not need to be managed mannually.