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

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

Advertisement

2.3.4 8 channels DI modules

2.3.4.1 DI_8

Description:
Obtains 8-bit input data from a digital input module. The 0~7 bits of input
data correspond to the 0~7 channels of digital input modules respectively.
Syntax:
unsigned char DI_8(int
Parameter:
slot :
[Input] the slot number where the I/O module is plugged into.
Return Value:
Input data
Example:
int
slot=1;
unsigned char
data;
data=DI_8(slot);
//The I-8058x card is plugged in slot 1 of PAC and has inputs in channel 0 and 1.
//Returned value: data=0xfC
Remark:
This function can be applied on modules: i8052x, i8058x, i8054x, i8055x,
i8063x.
http://www.icpdas.com
++
[C
]
slot)
MP-8x43 Function Reference V 1.0
31 

Advertisement

Table of Contents
loading

Table of Contents