13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• DI_8_BW、DI_16_ BW、DI_32_ BWDescription:This function is used to Readback assigned single channel status (ON / OFF) from aDigital Input module.Syntax:int DI_8_BW(int slot, int bit)int DI_16_BW (int slot, int bit)int DI_32_BW (int slot, int bit)[ C ]Parameter:slot :bit :[Input] the slot number where the I/O module is plugged into.[Input] channel of module.Return Value:NoneExample:int slot=1, bit=0;Open_Slot(slot);printf("DI channel %d = %d\n", bit, DI_32_BW(slot, bit));Close_Slot(slot);// The I-8040W module is plugged in slot 1 of LinPAC-8000 and return channel 0// status. ( 0:ON;1:OFF ).Remark:These functions can be applied on modules:DI 8 channel:I-8048W, I-8052W and I-8058W.DI 16 channel:I-8051W and I-8053WDI 32 channel:I-8040WLinPAC-8x4x SDK:80

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!