Forum Controladores/PLC

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

MDuino 42+ Ethernet and SPI

Avatar
Ang Thean Ping

I am new to MDuino products and am trying to use the Modbus TCP (ethernet) with SPI to communicate with slave device. from the Mduino 42+ manual 9.4. It say "As the Ethernet protocol uses the SPI to communicate with Arduino board, both behavior cannot happen at the same time as the Ethernet would not work" Is that mean that I can only use either Ethernet or SPI but not both at the same time? is there a way to configure or program the Arduino so I can use both? if yes, is there a example of guide on how to do it? Thanks!

Avatar
Descartar
1 Respuesta
0
<div> <h5 class="o_wforum_bio_popover_name mb-0"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div> <span itemprop="name">Albert Prieto</span> <span><img src=https://www.industrialshields.com/es_ES/forum/forum-controladores-plc-17/question/"/web/image/res.country/68/image/España?unique=a14a800%22 class="img img-fluid country_flag" alt="España"/></span> </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> </div> </address> </h5> <span class="o_wforum_bio_popover_info"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Albert Prieto</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <div class="css_editable_mode_hidden"> <div class="mb-2"> <br/> </div> <b class="mt-4"><i class="fa fa-diamond text-secondary"></i> 1000000029</b> <div style="display: inline-block"> <b>|</b> <span class="fa fa-trophy badge-gold ml-2" role="img" aria-label="Gold badge" title="Gold badge"></span> 0 <span class="fa fa-trophy badge-silver ml-2" role="img" aria-label="Silver badge" title="Silver badge"></span> 0 <span class="fa fa-trophy badge-bronze ml-2" role="img" aria-label="Bronze badge" title="Bronze badge"></span> 0 </div> <div class="mt-2"> <div class="o_forum_tooltip_line"> <span>asd</span><span>, </span><span>España</span> </div> </div> </div> </div> </address> </span> <div class="o_wforum_bio_popover_bio"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Albert Prieto</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Albert Prieto
Best Answer

Hi, you can see an example using for example SPI port using Ethernet and µSD socket which also uses SPI. 

See an example on the link below:

https://www.industrialshields.com/es_ES/technical-features-industrial-m-duino-plc-arduino-ethernet-42-ios-analog-digital-plus#special

As you can see it is necessary to choose another CS pin for the new SPI device. There are at least 2 pins (Pin2 and Pin3) on the MDuino but you can also use other pins from the MDuino communication board.

you can check the Arduino Ethernet PLCs on the product page.



Avatar
Descartar