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 ??
Codesys Revpi connect analog Output
Re: Codesys Revpi connect analog Output
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.
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
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
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