Quantcast
Channel: ethernet – Industrial Shields
Viewing all articles
Browse latest Browse all 7

Ethernet Arduino PLC. How to connect M-duino PLC to Ethernet

$
0
0

Importat!! This is an old post. ENC28J60 is not used anymore since 2015. You have to install our boards to use Ethernet communication. 

 

M-duino PLC is using an ENC28J60 chip in order to connect to Ethernet. You can choose two libraries in order to connect all M-duino family products

  1. UIPEthernet: you can find in Gitub. It uses the same functions as the Official Arduino Ethernet Shield.
  2. EtherCard: You can find this documentation and libraries in the Jeelabs website. You need to import all libraries:
 Sketch / Import Library / Add Library.

And then restart Arduino IDE. It’s important to take into account:

/////
static byte mymac[] = {0xFF,...,0xFF}; // Valor de la MAC del ethernet.

if (ether.begin(sizeof Ethernet::buffer, mymac, 53) == 0)
    Serial.println("Failed to access Ethernet controller");
////

Viewing all articles
Browse latest Browse all 7

Trending Articles