Documentation

SBS IP-UD-IHV-16I80 Digital Input

SBS IP-UD-IHV-16I80 Digital Input block

Library

Simulink® Real-Time™ Library for SBS Technologies

Scaling Input to Output

Hardware Input

Block Output Data Type

Scaling

Volts

Double (Format:16 1-bit Channels)

Double:
< Threshold = 0.0

> Threshold = 1.0

uint8 (Format:Two 8-bit Channels)

uint32:
< Threshold, corresponding bit is clear

> Threshold, corresponding bit is set

Block Parameters

Carrier ID

Enter a number to uniquely identify this IP carrier board within the model.

Carrier slot

Select the slot on the carrier board into which the module IP-UD-IHV-16I80 is plugged. Different carrier boards can have different slot capacities. From the list, select A, B, C, or D.

Format

From the list, select one of the following modes:

  • 16 1-bit Channels

    Configures block to accept up to 16 1-bit channels.

  • Two 8-bit Channels

    Configures block to accept one or two 8-bit channels.

Channel vector

This value depends on the value of Format, as follows:

  • If you select the Format parameter to be 16 1–bit Channels, enter a vector of numbers between 1 and 16. For example, to use the first and third digital input channels, enter

    [1, 3]
  • If you select the Format parameter to be Two 8-bit Channels, enter a vector of numbers between 1 and 2. For example, to use the first and second digital input channels, enter

    [1, 2]

    Note:   The manufacturer numbers its lines sequentially from 1 to 24, regardless of the line's function. The input lines of this board are numbered 1 to 16. For Simulink Real-Time blocks, the channel numbers depend on the setting of the Format parameter. If you select the Format parameter to be 16 1–bit Channels (bit mode), the channel numbers range from 1 to 16. If you select the Format parameter to be Two 8-bit Channels (byte mode), the channel numbers range from 1 to 2. See the mapping table in SBS IP-UD-IHV-16I80.

Threshold

Enter a threshold value. This block reads the input as 1 if the input voltage multiplied by the operational amplifier (op amp) gain is greater than this threshold value. This block reads the input as 0 if the input voltage is less than this threshold value.

The maximum value of Threshold is 61.68 volts. It has a granularity of 15 millivolts. See the IP-UD-IHV user documentation for details.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

External Websites

Was this topic helpful?