<< Click to Display Table of Contents >> Navigation: Multi-Protocol MasterOPC Server > Lua 5.1 Reference Manual > Function library > Function library |
A set of MasterOPC libraries delivered includes standard Lua libraries, several libraries of communication with server API (the libraries server and modbus), and libraries that expand basic functional (the libraries bit and time).
Standard Lua libraries contain frequently used functions, which are developed directly via C API. Some such functions provide language services (for instance, type or getmetatable); others provide access to "external" services (for instance. input/output); some other functions could be developed in Lua, but very important or have a critical execution time, and therefore deserve development in C (for instance, table.sort ).
Today Lua of MasterOPC is supplied with the following libraries:
Basic library, which includes the coroutine sub-library
String manipulation
Table manipulation
Mathematical functions (sin, log, etc.)
Input and output
Operating system facilities
In addition, the following InSAT libraries are added:
•The library Server - operations with server elements (tags, nodes, devices, etc. )
•The library Modbus - execution of Modbus queries
•The library Bit - bit operations
•The library Time - time manipulation
•The library Others - other system functions
In addition, the tree contains the Constants section; that section contains such main constants of OPC server as OPC quality constants, paths to folders of Lua modules, etc.