5 Digital Inputs + 2 Power Relays Module

The 5DI+2PR module (datasheet) is a module that contains 5 digital inputs and 2 power relays. The 5DI can work in two different modes: Polling and event mode, while 2PR can only operate in polling mode.

Digital inputs can be read and set individually or jointly. Also, each relay can be set to a certain value and also, we can obtain the value of a specific relay.

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.

Important Information

This module has its own microcontroller, which is able to manage and control all the module I/O.


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.


Functionalities

This module has 6 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 one, some or all relays.
  • Get the current relays status for one or all of them.