Channels Di Modules; Di_16 - ICP DAS USA MP-8 43 Series Function Reference

Hide thumbs Also See for MP-8 43 Series:
Table of Contents

Advertisement

2.3.5 16 channels DI modules

2.3.5.1 DI_16

Description:
This function is used to obtain 16-bit input data from a digital input module.
The 0 ~15 bits of input data correspond to the 0~15 channels of digital module's
input respectively.
Syntax:
unsigned int DI_16(int
Parameter:
slot :
[Input] the slot number where the I/O module is plugged into.
Return Value:
Input data
Example:
int
slot=1;
unsigned int
data;
data=DI_16(slot);
//The I-8053x card is plugged in slot 1 of PAC and has inputs in //channel 0 and 1.
//Returned value: data=0xfffC
Remark:
This function can be applied on modules: i8051x, i8053x, i8042x.
http://www.icpdas.com
++
[C
]
slot)
MP-8x43 Function Reference V 1.0
33 

Advertisement

Table of Contents
loading

Table of Contents