Event/Alien2XML definition

From PlcWiki

Revision as of 07:23, 10 May 2011 by David (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Device events have prefix workplace.device.<name>.event. while alien2xml node definitions have prefix node.

Example (alien2xml):

node.product = .*
node.product.item.regex = {headend}(.*?){part}
node.product.item = [[:]]
node.product.header.regex = "{head}(.*?){headend}"
node.product.header = <node:header=[[:]]>
node.product.part.list_member = "{part}(.*?){partend}"
node.product.part = [[:]]

node.header = .*
node.header.title = [[:]]


The first condition for node (or event) to be created is this:

node.<node_name> = <regex>

If the input (alien input or raw device input) doesn't match the regex, any other definition rules are ignored and an empty XML element node_name (or no event) is generated.

Personal tools