Introduction

<< Click to Display Table of Contents >>

Navigation:  Multi-Protocol MasterOPC Server > Lua 5.1 Reference Manual > Introduction >

Introduction

The MasterOPC series  (Modbus Universal MasterOPC and Multi-Protocol MasterOPC) provides an ability to write a script in the built-in script language. Using scripts, you can solve such tasks as following ones:

Processing of input data (for example, transformation of "raw" values to real ones).

Execution of queries to various devices via the Modbus protocol or via an arbitrary protocol.

Reading of archives from devices (creation of OPC HDA servers).

Lua is an extension programming language designed to support general procedural programming with data description facilities. It also offers good support for object-oriented programming, functional programming, and data-driven programming. Lua is intended to be used as a powerful, light-weight scripting language for any program that needs one. Lua is implemented as a library, written in clean C (that is, in the common subset of ANSI C and C++).

In this help section, Lua is described in context of its usage in MasterOPC, therefore some functions are not considered (e.g. free threading and modules). A full description is available at the language site:

http://www.lua.org/docs.html