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 Sun Oct 21, 2018 7:19 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: I2C doubts
PostPosted: Tue Mar 20, 2018 1:16 pm 
Offline

Joined: Sat Dec 23, 2017 11:30 pm
Posts: 7
Hello,

I have some doubts about Raspberry PI and I2C bus.
I would like to read a specific register from Node XX, and of course, write a value to specific register.
There are some functions to read and write but...... it is not clear.

For example, I would like to read a byte from register 0x19, from node 0x04.

It is clear where I can setup node number, but register number ?????

Thanks in advance.


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


Top
   
 Post subject: Re: I2C doubts
PostPosted: Tue Mar 20, 2018 6:38 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2900
Hi,
check this example project here:

viewtopic.php?f=23&t=6247&p=19944#p19944
this should show how this could work.

BR
Edwin


Top
   
 Post subject: Re: I2C doubts
PostPosted: Tue Mar 20, 2018 10:34 pm 
Offline
User avatar

Joined: Tue Mar 20, 2018 11:27 am
Posts: 1
Thank you Edwin.

Kind regards.

_________________

John Martin
Distribuidor y soporte oficial de CODESYS en EspaƱa
Image
http://www.larraioz.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 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