Lua script

<< Click to Display Table of Contents >>

Navigation:  Function block library > Custom >

Lua script

Previous pageReturn to chapter overviewNext page

custom_lua

With Lua scripts it is easily possible to do almost any calculations whose realization is impossible or very complex by using the available function blocks. The script is entered in the function block dialog. To increase performance, the script (if it is error free) is compiled to fast interpretable byte code at the beginning of the execution.

Every Lua script function block can have 0 to 20 inputs and 1 to 20 outputs. All inputs and outputs use single precision floating point numbers as data type.

The documentation of the language Lua is available at http://www.lua.org/manual/5.1/.

More complex tasks which would exceed the capabilities or the performance of Lua can be realized in C++ as new function blocks.