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_8Description:Obtains 8-bit input data from a digital input module. The 0~7 bits of input datacorrespond to the 0~7 channels of digital input modules respectively.Syntax:unsigned char DI_8(int slot)[ C ]Parameter:slot :[Input] the slot number where the I/O module is plugged into.Return Value:Input dataExample:int slot=1;unsigned char data;data=DI_8(slot);// The I-8058W card is plugged in slot 1 of LinPAC-8000 and has inputs in channel 0and 1.// Returned value: data=0xfCRemark:There are two kind of Input type:Input Type On State Off State Modules1 LED On, Readback as 1 LED Off, Readback as 0 I-8058W2 LED On, Readback as 0 LED Off, Readback as 1 I-8048W, I-8052WLinPAC-8x4x SDK:71

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

Saved successfully!

Ooh no, something went wrong!