Skip to main content

How do I control the IO lines through the Web Admin interface?

The BB-400 contains 8 ports that are individually selectable as inputs or outputs, located on the green and yellow terminals. It is possible to control the IO lines via the Web Admin interface and this FAQ will discuss the different configurations available and their details. For more information regarding the DIO lines please refer to the DIO lines FAQ.

Web admin page

After logging into the BB-400 cockpit page, the IO status can be found by clicking on the IO status page on the sidebar:

BB-400 cockpit web interface with IO page selected in the sidebar, showing DIO 0 status with LED, output, and input indicators

IO Status

The top of the page shows the current IO status of the device:

BB-400 IO Status panel showing all 8 DIO lines (dio0-dio7) with green LEDs on, outputs open, and inputs high

It is possible to adjust the outputs by changing the clickable outputs option to on:

BB-400 IO Status panel with clickable outputs toggled ON, output switches now interactive and highlighted

Clicking on the output will change the configuration to on or off, e.g. turning all of the outputs off:

BB-400 IO Status with all 8 outputs closed (on), all LEDs off, inputs low, tooltip showing Output 3 is closed

or changing some of the outputs to on and some to off:

BB-400 IO Status with mixed outputs: DIO 0-4 open with green LEDs and inputs high, DIO 5-7 closed with LEDs off

LEDs

There are 8 LEDs on the front of the BB-400, each corresponding to a DIO line, as shown by the image below:

BB-400 front panel DIO STATUS section with 8 LEDs labelled 0-7, all illuminated green

The LEDs will respond to the webpage change in IO status.

How the NPN/PNP jumper affects the LEDs

The status of the DIO lines can be adjusted between NPN/PNP mode, and the jumper that controls this can be found inside the BB-400, highlighted below:

BB-400 internal diagram highlighting the NPN/PNP jumper location on the PCB between the Ethernet and DIO terminals

Remember to allow your device to fully power down before adjusting the jumper.

NPN mode

When in NPN mode the inputs are pulled up to +5V and the table below represents the different configurations for the output and input, and how this affects the status of the LED.

OutputInputLED
OpenLowOff
OpenHighOn
ClosedLowOff
ClosedHighOff

The table shows that the only situation in which an LED is on, is if the output is open and the input is high:

BB-400 web admin DIO 0 status in NPN mode: LED green, output open, input high with tooltip confirming state

PNP mode

When in PNP mode the inputs are pulled down to ground. This means that regardless of the output status, as the inputs are not high, the LEDs do not switch on:

BB-400 IO Status in PNP mode: all 8 LEDs off, all outputs open, all inputs pulled low

BB-400 IO Status in PNP mode with outputs adjusted: DIO 0-3 closed, DIO 4-7 open, all LEDs remain off

Configuring IO Lines

The next section of the webpage, "Config IO Lines", deals with configuring the IO lines and is described in further detail below:

BB-400 Config IO Lines page showing DIO 0-7 with columns for Line, Label, Mode (all Not Set), and Debounce settings

Counter Update Direction

The counter update direction can be set so the signal transition is either:

  • falling edge, moves from high to low
  • rising edge, moves from low to high

Counter Mode

The counter can be set to either 16 bit (65335 count) or 32 bit (4.2 billion count) mode. The counter values persist over power-off periods.

Line

The line column represents the hardware configuration of the IO lines. On the BB-400 the IO lines can be found on the green or the yellow terminal blocks. The green pins correspond to DIO 0 - DIO 3, and the yellow pins correspond to DIO 4 - DIO 7.

It should be noted that pin 1 on both terminal blocks is the -V line, and should always be connected if either terminal is used with a DIO line.

Label

Here, the name of each IO line can be changed if required. Please note the webpage will not allow you to enter any invalid characters, such as, but not limited to: "*(^%"!@$".

Mode

There are 4 options for the mode: input, output, unused and not set.

BB-400 Config IO Lines with mode dropdowns highlighted: DIO 0 set to Input, DIO 1 to Unused, DIO 2 to Output, DIO 3-4 to Not SetWhen the IO status is changed to an input or a output, the line behaves in that mode only. Changing a single or multiple line(s) to unused means the line cannot be adjusted in any way and remains not in use.

It is also possible to set a line to the "not set" option, in this mode the status of the IO line can change between an input or an output.

Debounce

It is possible to set a debounce value, that is the time the digital signal can't be registered, with a maximum value of 4000 ms.

The debounce value cannot be adjusted if a IO line's mode has been changed to either 'Output' or 'Unused'.