You can provide your own toolbar in the CODESYS user interface with up to 32 icons for calling script files. For this you need an ICO file where the icon is stored, and a PY file where the Python script to be called is stored.
In the installation directory or in the program files directory under CODESYS, you create a subdirectory named Script Commands. In that directory, you create the config.json configuration file. Specify the call information outline for each icon in the file.
Here you can configure a maximum of 16 icons. You can also store the ICO and PY files
in the same directory.
Location
-
<CODESYS installation directory>\CODESYS\Script Commands -
Users\<username>\AppData\Local\CODESYS\Script Commands
Example
Default installation on Windows 10
C:\Program Files (x86)\CODESYS 3.5.14.0\CODESYS\Script Commands\ C:\Users\r.smith\AppData\Local\CODESYS\Script Commands
If you store a config.json file with different call information at each of the storage locations, then you can
configure up to 32 different icons.
-
Configuration file
-
Creating script calls for a toolbar button