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

Page 109

Advertising
background image

96

HSL Function Library

ByVal slave_No As Integer, ByVal bitsOfCheck
As Long) As Integer

I16 HSL_D_set_int_control(I16 card_ID, I16

connect_index, I16 enable);

I16 HSL_D_wait_di_interrupt(I16 card_ID, I32

time_out_ms);

@ Argument

card_ID: Specifies the HSL master card index. Typically, the

board index sequence is assigned by the system. The index starts
from 0.

connect_index: For PCI-7851, the valid value is 0. For PCI-

7852 and PMC-7852/G, the valid value is 0 or 1.

slave_No: Specifies the slave module with slave index that wants

to perform this function. The valid value is 1 to 63.

out_data: The digital output of the discrete module

X

HSL_D_write_output: The data of channel 0 is assigned

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

X

HSL_D_write_channel_output: The value is the digital

output data of the specified channel.

*out_data: An unsigned short array pointer. You must create an

unsigned short array containing 63 cells. The cell index corre-
sponds 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.

Cell index of array

(Unsigned short)

Corresponding

slave index

0

1

1

2

…...

……

62

63

Advertising