Basic
In this chapter will be shown how to create basic logic.
#
AndLet's create simple And logic for network "FertigmeldungReset".
On start we take existing GeoDb(data block) for our station and create set of simple contacts. After definition we connect it together (The way we expect). In end we return contact which should be connected to Network Rail.
tip
The contact class requires a symbol with the data type "Bool" in the constructor.
#
OrIn this sample we just make simple Or (Merge) from two symbols (oRob, A16_SAK) connected directly to PowerRail.
warning
To create merge is required at least two symbols.
#
Extension#
AndIn library exist many extension helper class. To our purpose in this sample we create And logic from "KER" symbols. "db.K10_Hifu" - is container for "help" marker which will be created when is more than "maxLogicPartsInChainCount" in chain. Follow logic will create something like it.
#
Basic Logic ElementBelow are basic supported bit logic element.
C# Logic Element |
---|
OpenContact |
CloseContact |
- |
Jump |
Not |
- |
NTrig |
PTrig |
- |
Coil |
NegatedCoil |
SCoil |
RCoil |
- |
SR |