Page 1 of 1

Codesys Revpi connect analog Output

Posted: 06 Oct 2021, 09:51
by Uday_1009
Hello everyone,

I am new to codesys and facing one issue regarding the analog input and output. I want to measure the voltage of the battery through analog module. I have used channel one of AIO module with voltage measurement connections. My question is that how to measure the voltage? I have selected measuring range from 0-10V through codesys interface of AIO. I have selected the address of that channel i.e %IW36 and according to my understanding it shoud give me the raw values of ADC and the formula should be (10/65536)*raw values. Is it correct? ADC is of 16 bits I guess? Is there something I am missing because It gives zero all the time. Any leads to solve this problem would be helpfull that how to analog read function through codesys ??

Re: Codesys Revpi connect analog Output

Posted: 11 Oct 2021, 12:50
by ->Johannes<-
Hi uday,

have you looked here yet?

Configuring Analog Inputs with CODESYS

Regards

Johannes

Re: Codesys Revpi connect analog Output

Posted: 13 Oct 2021, 10:22
by Uday_1009
Hi Johannes,

I looked at the configuring the analog inputs with codesys. I found the issue that one channel of AIO was not working and all others were working fine.

Re: Codesys Revpi connect analog Output

Posted: 27 Oct 2021, 12:18
by ->Johannes<-
Hi uday,

nice to hear that it generally works, but not that the one channel is defective.

Did you buy the AIO through us or through a distributor? You might be able to get your AIO replaced if the conditions are right.

Regards
Johannes