Di_16_Bw - 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.2 DI_16_BW

Description:
Obtains channel input data from a 16-channel digital input series module.
The Input Value is "true" or "false".
Syntax:
BOOL DI_16_BW(int
Parameter:
slot :
[Input] the slot number where the I/O module is plugged into.
channel :
[Input] the digital output channel No.(0~15)
Return Value:
Input data
Example:
int
slot=1;
int
channel=3;
BOOL
data;
data=DI_16_BW(slot, channel);
//The I-8051x card is plugged in slot 1 of PAC and has inputs in channel 3.
//Returned value: data=true
Remark:
This function can be applied on modules: i8051x, i8053x, i8042x.
http://www.icpdas.com
++
[C
slot,
int
channel)
MP-8x43 Function Reference V 1.0
]
34 

Advertisement

Table of Contents
loading

Table of Contents