Custom sketch libraries / build tools

TLDR; does anyone have a workaround to use the IEC 61131-3 laguages in the PLC IDE, and link custom libraries in the sketch.

Dear community,

Recently I have started to work with the Opta and explore using the PLC IDE.
It seems quite neat to be able to work with conventional IEC 61131-3 PLC programming languages, and have a shared memory with the classic Arduino sketch.

In any case, I want to use some functionality from the ArduinoCore-mbed (GitHub - arduino/ArduinoCore-mbed).

Following the steps from the README to get it to work with the Arduino IDE are straightforward and result in a nice build solution inside the Arduino IDE.

However, when I use the Arduino PLC IDE, I am not sure how I should include this library;
where is the scratchbook of the PLC IDE, of how should I include these libraries.

I have read that only publicly listed libraries can be included at this moment, but that seems - very - limiting in terms of usability of the PLC IDE.

If it is not possible to include the libraries, is there some way I can use a precompiled binary (from the 'regular' IDE) and link that somehow to the PLC program?

Has anyone found a workaround for this or a build process (either with or without PLC IDE) that allows IEC 61131-3 languages and the sketch with custom libraries?

Best regards,

Chanel

Hi,

You can implement custom libraries by inserting them in the folder: C:\Users\XXX\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\

XXX, has to be named with your user name installed on your OS.

Kind regards,

1 Like