This section is intended to clarify terminology that will be used in the rest of the document.
TRUE and FALSE
The NFCS is at its core a computer, and it processes rules as a computer does. In the physical world, a pump may be on or a contact may be closed or a coil may be energized. Inside a computer, these states have to be represented as TRUE or FALSE values. The NFCS uses TRUE and FALSE in the following ways:
TRUE means 'on' or 'non-zero' or 'active'. The implication is that something is happening.
FALSE means 'off' or 'zero' or 'inactive'.
TRUE and FALSE are not typically used with temperatures or other values that can have a fractional part, because the results can be unexpected. A temperature of 0.001 degress will display as '0', but is actually non-zero and will be treated as TRUE.
Electrical Connection and Signal Types
The NFCS is designed to connect electrically to a variety of physical devices. Electrical connections are divided into four broad categories:
The NFCS uses all four categories. Power is straightforward, and communication is usually only the Ethernet connection. The bulk of the connections (and complexity) are the analog and discrete signals.The NFCS supports both inputs and outputs for these types of signals. They're typically used as follows:
Analog Inputs are to read temperature and other types of sensors that can measure a range of values.
Analog Outputs if present provide a signal that can be used to drive certain pumps, fans, or valves to variable speeds or positions.
Discrete Inputs are typically used to detect contact closure. Each discrete input consists of a pair of wires. If the input wires are shorted together, the input is sensed as 'TRUE'.
Discrete Outputs provide the ability to turn on or activate an external device such as a relay or an LED. A discrete output that's on provides 12 Volts.
All programming and control of the NFCS is accomplished through the use of these four electrical signal types.
For external connectors, colors are used where possible to help minimize the chances of plugging the wrong cable into the wrong connector. Each signal type has a unique color as follows:
These colors are also used in the web interface when displaying values for discrete inputs and outputs. While it's not required, using matching cables will help prevent mistakes.
Inside the controller, red is +5V, yellow is +12V, and black is ground. There are some exceptions, but this convention is used where possible.
RJ45: The NFCS uses standard RJ45 connectors for some of the I/O. These are 8 conductor connectors that are used for Ethernet cables. The male connector is easily crimped onto standard Ethernet cable with an inexpensive tool. The female connector is designed to snap into a panel (such as a wall plate) and is known as a 'keystone' connector. Electrical connection to the female connector is accomplished by pressing wires into slots in the back of the connector with another inexpensive device called a 'punchdown' tool.
RJ11 and RJ12: These are the connectors that are often used for telephone cables. They have positions for six conductors, but often only four are used. They look identical to RJ45 connectors, except that they are narrower.
A connector that uses all six conductors is called RJ12, while a connector that only uses the middle four conductors is called RJ11.