Skip to content

2 Digital Inputs + 1 Power Relay + 2 Temperature Module

This module has its own microcontroller

The 2DI+1PR+2T module (datasheet) can manage digital inputs and thermometers in two different ways: Poll mode and Event mode.

Digital inputs can be read individually or jointly. Also all inputs in the module can be used as a pulse counters once the input change the status and recover the previous one. All pulse counters can be restored to 0.

This module only supports two different types of temperature sensors, which are PT100 and PT1000.

Thermometers take special values when an anomaly is detected. Those are:

  • -200.99 is sent when unplugged thermometer.
  • ±299.99 is sent when wrongly configured thermometer (only in event mode).

Information about how to program this node using Node-RED can be found here. Otherwise, if you want to develop your own applications using the multilanguage API, please check here for more information.

Working mode configuration

Polling

In polling mode, the parameters are being measured continously. The measurement rate will be defined in the configuration node.

Important

2PR only can operate in Poll mode.

Event

In event mode, the parameters are measured depending on the event configured. Three types of event can be configured:

  • Time interval: A specific time interval must be defined. The module will notify when the defined time will be accomplished.
  • Input value change: A specific digital input value must be defined. The module will notify when the digital input value matches the one defined in the configuration.
  • Pulse count change: A specific pulse counter value must be defined. The module will notify when the pulse counter value matches the one defined in the configuration.
  • Value threshold: A specifictemperature value must be defined. The module will notify when the temperature value is bigger than the one defined in the configuration.
  • Value within range: A specific range must be defined. The module will notify when the temperature value is in the range defined in the configuration.
  • Value out of range: A specific range must be defined. The module will notify when the temperature value is out of the range defined in the configuration.

Functionalities

This module has 7 main functionalities, which are:

  • Configure module parameters. In this case, you must define the working mode, the pulse width for each relay and also the pulse filter milliseconds for each input.
  • Get and set input status for one or all digital inputs. It will be possible to see if a digital input is activated (1) or deactivated (0).
  • Get pulse counter for one or all digital inputs. The pulse counter of each input is incremented once its status change and is restored again.
  • Reset pulse counters for one or all digital inputs. It sets all or the selected pulse counter to 0 value.
  • Activate or deactivate the relay.
  • Get the current relay status.
  • Get the input value for one or all temperature inputs.