karthik S
Hi,
I have developed UART functional blocks for sending and receiving messages with the RYLR998 module. These blocks work correctly in simulation, and the .st file is successfully generated. I have also modified the client.cpp file to run the program on the OpenPLC_runtime webserver, and it compiles and runs without issues on the webserver. However, I encounter an error when attempting to transfer the program to the PLC. I am using a Raspberry Pi Pico for this project. Is there any file in the OpenPLC_Editor that I need to modify to resolve this error?
 
[203128%2F9126287%2Fmceclip0]
Reply 0 0
thiagoralves
Yes, you need to make the same modifications to the MatIEC lib for the Arduino runtime at /editor/arduino/src/lib
Reply 0 0
karthik S
Hi
Thank you! The compile error for the .st file has been resolved after modifying the files in the Arduino runtime located at /editor/arduino/src/lib. However, I am now encountering an error in the POUS.c file, causing the build to fail. Are there any additional files I need to modify or add to fix this issue? TIA.

[203128%2F9129719%2Fmceclip0]
Reply 0 0
karthik S
I successfully compiled the program for the Pico and flashed the UF2 file to it (transfer to PLC). To resolve the POUS.c error, the newly added functional blocks library needs to be included in the iec_std_FB.h file and the standard_FB.txt file located in the OpenPLC_Editor\editor\arduino\src\lib directory.

[203128%2F9139949%2Fblobid0]
Reply 0 0
Reply