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

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

Advertisement

2.3.6 32 channels DI modules

2.3.6.1 DI_32

Description:
This function is used to obtain 32-bit input data from a digital input module.
The 0~31 bits of input data correspond to the 0~31 channels of digital input
module respectively.
Syntax:
unsigned long DI_32(int
Parameter:
slot :
[Input] the slot number where the I/O module is plugged into.
Return Value:
Input data
Example:
int
slot=1;
unsigned long
data;
data=DI_32(slot);
//The I-8040x card plugged is in slot 1 of PAC and has inputs in channels 0 and 1.
//Returned value: data=0xfffffffC
Remark:
This function can be applied on module: i8040x.
http://www.icpdas.com
++
[C
]
slot)
MP-8x43 Function Reference V 1.0
35 

Advertisement

Table of Contents
loading

Table of Contents