Download ISO-LD - ICP DAS
Transcript
A-2-11 LD_ReadDi Description: Read in the digital value from the 8 channels of isolated DI. Bit_0=channel_0, bit_1= channel_1,…., bit_7= channel_7. Only 8 channels isolated DI→only 8 bits are enough. This function will return the current state of DIs. The working mode of DI introduced in Sec.A-2-7 will not take effect on this function. Syntax: WORD LD_ReadDi(WORD *wDi); Parameter: *wDi: address of wDi Return: ActiveError: this board must call LD_CheckBoard first TimeOut: check board timeout (maybe base address or hardware error) ActiveError: OK A-2-12 LD_ReadLatchDi Description: Read the latch states of 8 channels isolated DI. Bit_0=channel_0, bit_1=channel_1,…., bit_7= channel_7. Only 8 channels isolated DI→only 8 bits are enough. This function will return the current state of DIs. The working mode of DI introduced in Sec.A-2-7 will take effect on this function. Syntax: WORD LD_ReadLatchDi(WORD *wDi); Parameter: *wDi: address of wDi Return: ActiveError: this board must call LD_CheckBoard first ISO-LD User’s Manual (Ver :2.4 02/12/04) -----55