guodong
Hello, I would like to create a custom function block that includes connecting to WIFI (using the function block to connect to WIFI). What should I do, which files should I call, or how to modify them in<my_custom_library. h>. I can now write a framework for custom function blocks, but I don't know how to write C code to practice WIFI functionality,
[203128%2F8737096%2Fmceclip0]
As shown in the above figure
Reply 1 0
thiagoralves
The documentation to add new blocks to the editor is here: https://autonomylogic.com/docs/3-3-adding-new-blocks-to-openplc-editors-library/
 
This is not a straightforward task, especially if you need to add custom C code to the block. Perhaps a better alternative for you would be to use the new Arduino Sketch feature: https://openplc.discussion.community/post/new-feature-arduino-sketch-on-plc-programs-13249303?trail=15#post1338684591
Reply 0 0
guodong
Thank you for your reply. I tested using the new feature, but there seems to be an issue with the reference header file. I would like to know why
[203128%2F8747903%2Fmceclip0]
Reply 0 0
thiagoralves
You’re not using the new feature. This is an old editor. Please update your editor and try again
Reply 0 0
guodong
您没有使用新功能。这是一个老编辑器。请更新您的编辑器,然后重试
Hello, do you need to download the OpenPLC editor again from the official website to update the compiler?
Reply 0 0
richw
Yes
Reply 0 0
thiagoralves
Hello, do you need to download the OpenPLC editor again from the official website to update the compiler?
Only if you’re using a very old version of the editor where the built in updater can’t update. In general, the preferred method to update is through the file -> check for updates as that will bring code straight from GitHub into your installation.
Reply 0 0
Reply