13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• DI_16Description:This function is used to obtain 16-bit input data from a digital input module. The 0 ~15bits of input data correspond to the 0~15 channels of digital module’s input respectively.Syntax:unsigned int DI_16(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 int data;data=DI_16(slot);// The I-8053W card is plugged in slot 1 of LinPAC-8000 and has inputs in channel 0and 1.// Returned value: data=0xfffCRemark: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-8046W2 LED On, Readback as 0 LED Off, Readback as 1I-8051W, I-8053W,I-8053PWLinPAC-8x4x SDK:72

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

Saved successfully!

Ooh no, something went wrong!