Creating Custom Kinematics

IMPORTANT:

The open source tool wkhtmltopdf is required to generate the documentation for the kinematics from the comments in the function block. However, this component is no longer included in the setup of CODESYS version 3.5 SP15 and higher.

You can download the DLL from https://wkhtmltopdf.org/downloads.html. Create a directory named DocScripting\3.5.xx.x\bin in the installation directory of CODESYS and save the file wkhtmltox.dll there.

Caution: Since wkhtmltox.dll no longer supports images by default in Version 0.12.6 and higher, you have to use Version 0.12.5 or lower.

IMPORTANT:

When an instance of a kinematic transformation of an axis group is used, the inputs of the instance must not be changed anymore.

To change the parameterization of the kinematic transformation, you have to use the configuration if possible, or create multiple instances.

When you create custom kinematics, you have to observe the following:

All inverse transformations have an input of type CONFIGDATA that contains a byte array with information about the configuration of the kinematics. The forward transformations have a corresponding output. Kinematics with a configuration have to implement the ISMKinematicWithConfigurations interface. These kinematics each include a function block that has to implement the ISMConfigurationData interface (function for the serialization of the configuration data). The name of this function block has to be the same name as kinematics plus the postfix _config. You can use this FB for modifying the configuration in the application (by means of the function block SMC_SetKinConfiguration block). However, kinematics should not hold any instance of the corresponding FB.

TIP:

For step-by-step instructions, see the sample projects which have also been installed.