Codesys Revpi connect analog Output

Topics about the Software of Revolution Pi
Post Reply
Uday_1009
Posts: 6
Joined: 01 Oct 2021, 14:23

Codesys Revpi connect analog Output

Post 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 ??
->Johannes<-

Re: Codesys Revpi connect analog Output

Post by ->Johannes<- »

Hi uday,

have you looked here yet?

Configuring Analog Inputs with CODESYS

Regards

Johannes
Uday_1009
Posts: 6
Joined: 01 Oct 2021, 14:23

Re: Codesys Revpi connect analog Output

Post 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.
->Johannes<-

Re: Codesys Revpi connect analog Output

Post 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
Post Reply