<< Click to Display Table of Contents >> Navigation: Multi-Protocol MasterOPC Server > Plugin SCRIPT > Plugin SCRIPT |
The SCRIPT plugin is provided to program devices using the LUA script language (to see Lua 5.1. Introduction).
_________________________________________________________________________________
The plugin is added using the 'Add Protocol' command . Upon that command, the dialog opens to choose the protocol (SCRIPT) and a type of the node created (any node type can be chosen for the SCRIPT protocol – see Node Types ):
Upon the OK command, the SCRIPT node is created. A set of node parameters depends on a type of that node (see The Dialog of Node Parameters and Node Types ).
___________________________________________________________________________________
The 'Add Device' command from the context menu of the SCRIPT node is used to create the script device in the node:
To configure a device, use the dialog of device parameters .
___________________________________________________________________________________
A device can include tags or/and groups of tags. To create such objects, use respectively the 'Add Group' command or the 'Add. Protocol Tag' command :
To configure a tag, use the dialog of tag parameters .
_________________________________________________________________________________
A dialog of node/device/tag parameters contains the Script section. That section includes parameters and tools to develop LUA scripts respectively at the node/device/tag level.
The Script Editor is provided to develop a LUA script.