Forum Controllers/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

Ethernet shield was not found

Avatar
HA TRINH

Hello everyone,

I am working on an Arduino-based 10 IOs PLC. IDE was installed according to the user guide. However, when I tried an example for 10 IOs PLC Family: Ethernet->WebServer, the serial console returned:

"Ethernet shield was not found.  Sorry, can't run without hardware. :(" 

Is that faulty hardware? Anyone can help?

Thank you very much,

Ha


Update: 

Never mind. The PLC needs an external power supply for the shield to work.

Avatar
Discard
5 Answers
0
Avatar
Le Huy Anh
Best Answer

Hello,

You can try these examples that use WIFI so that you don't need an Ethernet Shield. 

https://randomnerdtutorials.com/esp32-web-server-arduino-ide/

https://randomnerdtutorials.com/esp32-websocket-server-arduino/


Hope it helps.

Marcos Huy Le



Avatar
Discard
0
Avatar
HA TRINH
Best Answer

Thank you for your reply. I do have another issue with the example code ModbusTCPSlave from your GitHub. It throws a lot of errors regarding the timers at compilation. Perhaps, the example was not revised to support 10 IOs PLC Family?

Here are the errors:

Arduino: 1.8.6 (Windows 10), Board: "10 IOS PLC Family, 10 IOS PLC"


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp: In function 'void startPulses(int, uint32_t, uint8_t)':

C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:49:8: error: 'TIMER0A' was not declared in this scope

   case TIMER0A:

        ^~~~~~~


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:49:8: note: suggested alternative: 'TIMERA0'

   case TIMER0A:

        ^~~~~~~

        TIMERA0


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:50:4: error: 'TCCR0A' was not declared in this scope

    TCCR0A |= 0b01000010;

    ^~~~~~


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:50:4: note: suggested alternative: 'TCA0'

    TCCR0A |= 0b01000010;

    ^~~~~~

    TCA0


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:51:4: error: 'TCCR0B' was not declared in this scope

    TCCR0B |= 0b10000000 | tccr;

    ^~~~~~


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:51:4: note: suggested alternative: 'TCA0'

    TCCR0B |= 0b10000000 | tccr;

    ^~~~~~

    TCA0


C:\Users\HATVS\Documents\Arduino\libraries\arduino-Tools40-master\src\Pulses.cpp:52:4: error: 'OCR0A' was not declared in this scope

    OCR0A = cmp;

    ^~~~~

..............

Has anyone successfully compiled the code for 10 IOS PLC?


Thank you,

Ha


2 Comments
Avatar
Discard
Avatar
Marti Guillem Cura
-

We are currently working on solving this problem. Make sure that the 10 IOs PLC family of the "Industrial Shields megaAVR Boards" has been selected and not the "Industrial Shields ES32 modules", as it can be misleading . Meanwhile, you can contact us at [email protected] in order to get a fast solution!

Avatar
HA TRINH
-

Sure, there is only one option in Arduino IDE: "10 IOs PLC family" under the "Industrial Shields megaAVR Boards".

0
Best Answer

Hello,

In order to work properly with our devices it is required to power the PLC with an external 12/24 Vdc power supply.

Thanks a lot for the feedback provided. If you have any other question do not hesitate in contacting us at support!

Avatar
Discard