Model Railroad System  2.2.1
Overall User Manaual
OpenLCB Logic node

OpenLCB Logic node

SYNOPSIS

OpenLCB_Logic [-configure] [-sampleconfiguration] [-debug] [-configuration confgile]

DESCRIPTION

This program is a daemon that implements an OpenLCB node for one or more Logic Element (much like the logic elements coded in the RR Cirkits Tower-LCC nodes).

Each logic element has two variable inputs, variable 1 and variable 2, which can be set to true or false using LCC events. There are seven (7) boolean operators: and, or, xor, and change, or change, variable 1 then variable 2, and constant true. Logic elements can be either single, or part of a group. There are two group types, mast and ladder. A mast group is always evaluated from top to bottom and terminates at the first true result which produces an action. A ladder group is evaluated from the triggered logic to the bottom and all true results result in actions. Actions consist of up to four events being produced, either right away or after a delay. The actions can be retriggerable or not.

PARAMETERS

none

OPTIONS

  • -log logfilename The name of the logfile. Defaults to OpenLCB_Logic.log
  • -configure Enter an interactive GUI configuration tool. This tool creates or edits an XML configuration file.
  • -sampleconfiguration Creates a sample configuration file that can then be hand edited (with a handy text editor like emacs or vim).
  • -configuration confgile Sets the name of the configuration (XML) file. The default is logicconf.xml.
  • -debug Turns on debug logging.

CONFIGURATION

The configuration file for this program is an XML formatted file. Please refer to the OpenLCB Daemons (Hubs and Virtual nodes) chapter of the User Manual for the details on the schema for this XML formatted file. Also note that this program contains a built-in editor for its own configuration file.

AUTHOR

Robert Heller <heller@deepsoft.com>