C
C
Not directly. CODESYS is designed around PLC programming languages (LD, ST, FBD,
SFC, etc.), not C++.
However, you can extend or interact with CODESYS systems using C++ in a few
specific ways:
Modbus TCP/RTU
OPC UA
MQTT
cpp
Copiar
Editar
extern "C" int add(int a, int b) {
return a + b;
}
You can compile it into a shared library and import it in CODESYS using a function
prototype in a CODESYS Library.