CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Mar 18, 2019 6:32 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: I2C Address.Bereich
PostPosted: Tue Dec 25, 2018 4:33 pm 
Offline

Joined: Sat Dec 22, 2018 5:21 pm
Posts: 5
Hallo
ich möchte einen BMP280 über die I2C Schnittstelle anschliessen.
Adr: 0x76
Mit SUDO I2CDETECT -y 1 finde ich das Gerät, ABER mit Codesys geht's nicht
Wenn ich online verbunden bin dann ist vor dem BMP280 device ein rotes Dreieck.

Was mache ich falsch?
Kann eventuell mit Codesys die Adresse nicht erreicht werden (0x76)?

Danke für die Hilfe

Guenter


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Tue Dec 25, 2018 9:09 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3194
Hi,
please check the parameter here:
BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Tue Dec 25, 2018 9:40 pm 
Offline

Joined: Sat Dec 22, 2018 5:21 pm
Posts: 5
Hi Erwin
I have checked and it looks like ok: I get the info that the BME Bus is not working

hm

Guenter


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Tue Dec 25, 2018 9:52 pm 
Offline

Joined: Sat Dec 22, 2018 5:21 pm
Posts: 5
I also have tried to read the whole I2C bus with i2c_master.read but no Response from a device
range: 0x00 up to 0xFF


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Wed Dec 26, 2018 8:08 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3194
Hi,
if you use 16#76 as address in the configuration, does the BME connector turn into a green circle in the device tree without any call from the pou's?

BR
Edwin


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Wed Dec 26, 2018 9:54 am 
Offline

Joined: Sat Dec 22, 2018 5:21 pm
Posts: 5
Hi Edwin

no green circle. I will check with a oszzi if the ports are working with the i2cmaster.read


Regards


Guenter


Top
   
 Post subject: Re: I2C Address.Bereich
PostPosted: Wed Dec 26, 2018 5:53 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3194
Hi,
did you try already this library from the forum for this device?
viewtopic.php?f=23&t=5872&p=18200#p19664`
BR
Edwin


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited