in the ExtensionAPI library [...] ExternalFunction in Python. After CODESYS [...] _external_function.py in the following directory: C:\\Users\\<user>\\CODESYS