Browsed by
Category: Ethernet PLC (M-Duino)

Ethernet PLC (M-Duino) blog information

Ethernet test on M-Duinos PLUS version

Ethernet test on M-Duinos PLUS version

In this post it is showed how to test Ethernet communication on M-Duino PLUS version.  It’s necessary to install Arduino Ethernet2 library. See more infromation about Ethernet library functions on Arduino Reference. Connecting an M-Duino to a router through Ethernet and uploading the test sketch, the M-Duino is able to complete the test.   Next is showed the code:

RS-232 Test on M-Duino PLUS

RS-232 Test on M-Duino PLUS

In this post it is showed how to test the RS-232 M-Duino PLUS version. Connecting an M-Duino with other equipment through RS-232. On the code is showed that you must send a 0xA5 thought RS-232 to complete this test. Next is showed the code: ///////////////////////////////////////////////////////////////////////////// void setup() { Serial.begin(9600L); Serial.println(“mduino-plus test RS-232 started”); Serial2.begin(9600L); } ///////////////////////////////////////////////////////////////////////////// void loop() { while (Serial2.available()) { Serial2.read(); } Serial2.write(0xa5); delay(50); if (Serial2.read() == 0xa5) { Serial.println(“RS232 (Serial2) OK”); } else { Serial.println(“RS232 (Serial2) FAIL”);…

Read More Read More

M-DUINO RELAY

M-DUINO RELAY

The M-DUINO RELAY is a PLC based on Open Source Hardware including Arduino Mega board. It has a 16MHz crystal oscillator and a micro USB connection.   Power This PLC can be powered at 12 – 24Vdc   Memory The M-DUINO RELAY has 256KB (8KB used for the bootloader). It also have 8KB of SRAM and 4KB of EEPROM (Wich can be read and written with the EEPROM library) all from the Arduino Mega. 

M-DUINO 19R I/O PINOUT

M-DUINO 19R I/O PINOUT

M-DUINO 19R I/OS PLC has a diferents types of Inputs and Outputs. It has 19 input/output signals: 6 Inputs, of which: 4 can be used as Analog/Digital Input 0-10Vdc, 10bits,(using Pins A0, A1, A2, A3).  2 are Digital Input which can work as a Interrupt Input also. (using Pins 2 and 3). 11 Outputs, of which: 8 are Relay Output (Using Pins  22, 23, 24, 25, 37, 38, 39, 40). 3 are Analog Output 0-10Vdc (Using Pins 4, 5, 6), 8bits. All of them can also work as Digital Output and PWM output. IMPORTANT: To…

Read More Read More

M-DUINO 38R I/OS PINOUT

M-DUINO 38R I/OS PINOUT

M-DUINO 38R I/OS PLC has a diferents types of Inputs and Outputs. It has 34 input/output signals: 12 Inputs, of which: 8 can be used as Analog/Digital Input 0-10Vdc, 10bits,(using Pins A0, A1, A2, A3, A6, A7, A8 , A9).  4 are Digital Input which can work as a Interrupt Input also. (using Pins 2, 3, 19, 18). 22 Outputs, of which: 16 are Relay Output (Using Pins  22, 23, 24, 25, 27, 28, 29, 30, 37, 38, 39, 40, 42, 43, 44, 45). 6 are Analog Output 0-10Vdc…

Read More Read More

M-DUINO 57R I/OS PINOUT

M-DUINO 57R I/OS PINOUT

M-DUINO 57R I/OS PLC has a diferents types of Inputs and Outputs. It has 49 input/output signals: 18 Inputs, of which: 12 can be used as Analog/Digital Input 0-10Vdc, 10bits,(using Pins A0, A1, A2, A3, A6, A7, A8 , A9, A12, A13, A14, A15).  6 are Digital Input which can work as a Interrupt Input also. (using Pins 2, 3, 19, 18, 20, 21). 31 Outputs, of which: 23 are Relay Output (Using Pins  22, 23, 24, 25, 27, 28, 29, 30, 32, 33, 34, 35 37,…

Read More Read More

M-DUINO 58 I/O PINOUT

M-DUINO 58 I/O PINOUT

M-DUINO 58 I/OS PLC has a diferents types of Inputs and Outputs. It has 58 input/output signals, 36 Inputs, of which: 16 can be used as Analog Input 0-10Vdc, 10bits,(using Pins from A0 to A15). All of them can also be used as Digital Inputs. 6 are Digital Input which can work as a Interrupt Input also. (using Pins 2, 3, 18, 19, 20, 21). 14 are Digital Input (using Pins from  22 to 35). 22 Outputs, of which: 14 are Digital Output (Using Pins from 36 to 49). 8 are Analog Output 0-10Vdc…

Read More Read More

M-DUINO 42 I/O PINOUT

M-DUINO 42 I/O PINOUT

M-DUINO 42 I/OS PLC has a diferents types of Inputs and Outputs. It has 42 input/output signals, 26 Inputs, of which: 12 can be used as Analog Input 0-10Vdc, 10bits,(using Pins from A0 to A11). All of them can also be used as Digital Inputs. 4 are Digital Input which can work as a Interrupt Input also. (using Pins 2, 3, 18, 19). 10 are Digital Input (using Pins from  22 to 31). 16 Outputs, of which: 10 are Digital Output (Using Pins from 36 to 45). 6 are Analog Output 0-10Vdc (Using Pins…

Read More Read More

How to connect PLC to power supply

How to connect PLC to power supply

MDuino Family PLC are 12-24Vdc supplied. IMPORTANT: The polarity IS NOT REVERSAL! Ensure that the live and GND connector of the power supply match the PLC. Ensure that the power supply mains output is not higher than 24Vdc. Suggested power suppliers See also: M-DUINO CONFIGURATION SWITCH, TYPICAL CONNECTIONS FOR M-DUINO RELAY OR M-DUINO DIGITAL/ANALOG, TYPICAL CONNECTIONS FOR M-DUINO RELAY OR M-DUINO DIGITAL/ANALOG, M-DUINO MECHANICAL, M-DUINO RELAY, M-DUINO ANALOG/DIGITAL, ARDBOX ANALOG, ARDBOX RELAY