CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Dec 11, 2017 10:13 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Use two spi devices
PostPosted: Sat Aug 12, 2017 10:51 pm 
Offline

Joined: Mon Apr 03, 2017 10:47 am
Posts: 6
Hi.

I want to use two SPI devices on a raspberry pi 3 and Codesys V3.5 SP11.

So i connected a MCP23S17 to SPI with CE0 and a mcp3008 to SPI with CE1.
How do i add them in Codesys?
I added two SPI Masters, one with spidev0.0 and one with spidev0.1.
0.0 for the MCP23S17 with CE0 and 0.1 for the MCP3008 with CE1.

With this config, nothing worked.
If i use the MCP3008 with 0.0, i can read the analog values, but have no connection to the MCP23S17.

How can i use both SPI connections in Codesys? Only the one on CE0 works...

Thanks.


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

All times are UTC+01:00


Who is online

Users browsing this forum: A. Akkerman 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