2 ai/o operation, Ai/o operation – ADLINK HSL-DI16DO16-M-NN User Manual

Page 123

Advertising
background image

110

How to Program with HSL Function Library

HSL_connect_status(…):
Detect the communication status of the slave module.

HSL_D_read_input(…)

HSL_D_read_channel_input(….)

HSL_D_read_all_slave_input(….)
Functions for the digital input operation of slave modules.

HSL_D_write_output(…)

HSL_D_write_channel_output(…)

HSL_D_write_output(…)
Functions for the digital output operation of slave modules.

HSL_D_read_output(…)
Reads the output data in memory.

HSL_D_set_input_logic(…)

HSL_D_set_output_logic(…)
Functions for setting the DIO logic.

All functions may be executed in a loop to obtain the latest infor-
mation from the slave modules.

6.1.2 AI/O Operation

Inside AI/O Operation, the following function calls are provided for
user reference.

1. If the module needs to be calibrated, refer to Appendix

C.

2. To set the AI/O configuration of the slave module, use

HSL_A_set_signal_range(…)

HSL_A_set_last_channel(..).
If you want to check AI/O configuration, use

HSL_A_get_signal_range(…)

HSL_A_get_input_mode(…)

HSL_A_get_last_channel(…)

Advertising