CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Jul 24, 2017 7:24 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 11, 2017 9:42 am 
Offline

Joined: Tue Jun 14, 2016 11:10 am
Posts: 2
Hello,

does someone knows how to use I2C with repeated start condition?
I need to communicate with temp sensor MLX90614 which is using this protocol.

I am using Codesys 3.5 SP10 with Raspberry Runtime 3.5.10.20

Weist jemand wie kann mann I2C Schnittstelle mit s.g. repeated start condition nutzen.
Ich brauche eine Komunikation mit Tem. Sensor MLX90614 zu erstellen aber der Sensor nutzt wie besprochen I2C mit repeates start condition.

Ich nutze Codesys 3.5 SP10 mit Raspberry Runtime 3.5.10.20


Best regards
PASK


Top
   
PostPosted: Sat Apr 15, 2017 9:53 am 
Offline

Joined: Tue Jun 14, 2016 11:10 am
Posts: 2
I still did not find a solution how to set i2c in Codesys but i solved the problem in another way.

I wrote a java program with Pi4J library that is reading the sensor and then i am sending the result to RPi through MOdbus TCP.

The RPi is configured as a Modbus slave and the Java program as Modbus TCP Master.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 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