CAI_Support
Senior Member
Could you please try single shot mode, then add 8mS delay before read.
klaatu said:ok, on standby here, sorta. this has been on 2.2.2 board so far, 2.3.8 boards aren't here yet.
been away a few days, you still don't have the ADC, I'm still lacking some terminals strips and other hardware to get the wc32 enclosure mounted on the panel, and a few slow things from China, so nothing wired yet there, probably not until mid week ... heading back into the wild for awhileklaatu said:As far as the address, both cai support and the datasheet say that grounding the addr pin will make it 0x48, and that's where I started. hex 48 is 1001000, adding the low zer0 bit for the write makes it 10010000 = 0x90
START
I2CWRITE 1 0 144
I2CWRITE 0 0 1
I2CWRITE 0 0 192
I2CWRITE 0 1 131
I2CWRITE 1 0 144
I2CWRITE 0 1 0
I2CWRITE 1 0 145
I2CREAD 0 0 VAR1
I2CREAD 0 1 VAR2
END
lolCAI_Support said:Test with this PLC code with 2.2.2 board and 3.02.20 firmware
This sounds like things not being as good as they could beCAI_Support said:seems when have channel 0 pin connected to ground, it will read 65536. When connects to 5V, it reads a smaller number. In addition, the floating channel 1, 2, 3 seemingly have influence of the reading from channel 0.