ADLINK HSL-AI16AO2-M-VV/-AV User Manual

Page 110

Advertising
background image

HSL Function Library

97

*in_data: The input data of slave modules.

X

For HSL_D_read_input: The data of channel 0 is

assigned to bit 0, the data of channel 1 is assigned to bit 1,
and so on.

X

For HSL_D_read_channel_input: The value is the digi-

tal input data of the specified channel.

X

oFor HSL_D_all_slave_index: An unsigned short array

pointer. You must create an unsigned short array containing
63 cells. The cell index corresponds to the slave index. For
example, cell index 0 corresponds to the module with slave
index 1. The cell index 2 corresponds to the module with
slave index 2, and so on. The last cell index 62 corresponds
to the module with slave index 63.

channel: Specifies the channel of the discrete I/O module that

wants to perform this function. The valid values are enumerated
below.

X

HSL-R8DI16: 0 to 15

X

HSL-DI16DO16: 0 to 15

X

HSL-DI32: 0 to 31

X

HSL-DO32: 0 to 31

*out_data_in_ram: The output data stored in RAM. The data of

channel 0 is assigned to bit 0; the data of channel 1 is assigned to
bit 1 and so on.

input_logic: Sets the input logic to the specified module.
output_logic: Sets the output logic to the specified module.

Type: Types of hardward interrupt occurrence timing value (1 to

3).

bitsOfCheck: Renews data bits (16 bits).

Cell index of array

(Unsigned short)

Corresponding

slave index

0

1

1

2

…...

……

62

63

Advertising