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 Tue Dec 11, 2018 11:57 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sun Jun 18, 2017 8:13 pm 
Offline

Joined: Wed Jun 14, 2017 4:05 pm
Posts: 1
Hey Guys,
I want to control the MCP23017 Port Expander via Codesys on the Raspberry Pi. But I don't really know how to relize it.

Is there somebody, who did this or any similar projects before?

For me it's necessary to know, how to work with any I2C Devices in Codesys (MCP23017 is not yet supported from Horter & Kalb)

Please give me an short instruction. Thanks!

Antworten auf Deutsch und Englisch sind okay.

Datasheet MCP23017
http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf


Top
   
PostPosted: Mon Jun 19, 2017 8:50 pm 
Offline

Joined: Tue Apr 05, 2016 12:36 pm
Posts: 16
I'm in the same situation.... :cry:


Top
   
PostPosted: Tue Jun 20, 2017 4:58 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3010
HI;
did you check the forum section:
'CODESYS V3 Raspberry Pi share your devices & libraries & applications'
or use the forum search.

Guess you will find a ready to use library and devicedescription:
viewtopic.php?f=23&t=5872&p=10868#p11014
BR
Edwin


Top
   
PostPosted: Sun Nov 26, 2017 1:30 pm 
Offline

Joined: Fri Feb 03, 2017 8:31 pm
Posts: 1
Where can we find instruction how to make i2c slave device driver? Exist any template?


Top
   
PostPosted: Wed Nov 29, 2017 2:24 pm 
Offline

Joined: Mon Dec 13, 2010 3:02 pm
Posts: 44
Hi,

no template this far, but I hope that we have that in the future. But I can recommend you to have a look into the existing driver libraries. Those are provided in source, in the hope that they are usefull.

Everyone seriously interested in driver development on the Pi is welcome to leave me a PM.

BR,
Ingo

Gesendet von meinem LG-H870 mit Tapatalk


Top
   
PostPosted: Wed Jan 24, 2018 3:57 am 
Offline

Joined: Wed Sep 13, 2017 6:59 pm
Posts: 7
I'm not sure how to pm but Ingo Hornberger, can you send me a message? I'd like to create a driver for the raspberry pi.


Top
   
PostPosted: Thu Jan 25, 2018 7:49 pm 
Offline

Joined: Mon Dec 13, 2010 3:02 pm
Posts: 44
Hi!
Currently I only have some draft documentation for SPI. If you have some time left, I can provide you the first I2C draft as soon as it is available (via E-Mail).
If not, I can try to assist you in the creation of your specific driver.

Just let me know what you prefer.

BR,
Ingo

Gesendet von meinem LG-H870 mit Tapatalk


Top
   
PostPosted: Mon Feb 05, 2018 3:06 am 
Offline

Joined: Wed Sep 13, 2017 6:59 pm
Posts: 7
Hey Ingo, you can email me and I can go from there for the time being. my email is simple, its my username here then gmail. Thanks for your help. I found a bit of documentation in the manual that I think would get me by, through lots of trial and error.

On another note, my Raspberry Pi Zero just fried, I will need to get another board, do i have any luck getting the license on the new board that you or anyone here knows of?


Top
   
PostPosted: Mon Apr 09, 2018 11:06 pm 
Offline

Joined: Fri Apr 06, 2018 4:20 am
Posts: 1
Ingo Hornberger wrote:
Hi!
Currently I only have some draft documentation for SPI. If you have some time left, I can provide you the first I2C draft as soon as it is available (via E-Mail).
If not, I can try to assist you in the creation of your specific driver.


Ingo

I would like to create a driver for a INA226 device, would you be able to give me some quick guidance on how I create the library? I have seemed to figure out how to Add
an existing Library, but how would I go about actually creating a new one?


Top
   
PostPosted: Fri Jun 01, 2018 10:36 pm 
Offline

Joined: Wed Sep 13, 2017 6:59 pm
Posts: 7
kriskizlyk,

Have you gotten anywhere with this?


Top
   
PostPosted: Fri Jul 20, 2018 8:24 am 
Offline

Joined: Wed Jul 18, 2018 10:18 am
Posts: 1
Hi Forum,

I have the same problem. I bought the new Pixtend V2. Old I²C examples doesn't run properly in the new Codesys Software. I can't see the source code, only when fail. A double click on the error opens the code. The librarys gets many errors.

Why is the source hidden? Some of us need only a small example for I²C-Bus i.e. step by step create a device.

Anyone confirm whit the new Pixtend V2?


Top
   
PostPosted: Sat Jul 21, 2018 8:32 pm 
Offline
User avatar

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 56
@ Ingo Hornberger;

I am very interested in the draft documentation. Would you be so kind an please contact me to send this documentation?


Aliazzz

_________________
https://github.com/Aliazzzz


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

All times are UTC+01:00


Who is online

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