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.

• UDIO_DO16Description:This function is used to output 0~15 bits data to a universal DIO module according tothe channel configuration. The 0~15 bits of output data are mapped onto the 0~15 outputchannels for their specific universal DIO modules respectively.Syntax:[ C ]void UDIO_DO16(int slot, unsigned short config)Parameter:slot :config :[Input] the slot number where the I/O module is plugged into.[Input] output data.Return Value:NoneExample:int slot=1;unsigned int data;unsigned short config =0x00ff;UDIO_WriteConfig_16(slot, config);scanf("%d:",&data);UDIO_DO16(slot, data);printf("DO(Ch0~Ch7) of I-8050 in Slot %d = 0x%x\n\r",slot, data);// The I-8050W is plugged in slot 1 of LinPAC-8000// WriteConfig: 0x00ff (ch 0~ch7 is DO mode and ch8~ch15 is DI mode)// Input DO value: 255// DO(Ch0~Ch7) of I-8050 in Slot 1 = 0xffRemark:This function can be applied on modules: I-8050W.LinPAC-8x4x SDK:83

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

Saved successfully!

Ooh no, something went wrong!