Browsed by
Tag: Mduino

Modbus TCP M-Duino

Modbus TCP M-Duino

Modbus TCP can be programmed in M-Duino PLCs. It’s required to install Industrial Shields boards. Follow this link to download our boards.  Basically, this example links holding registers 40000, 40001 and 40002 to outputs Q0.1, Q0.2 and Q0.3 of the M-Duino. In this way these 3 outputs can be operated via a Modbus TCP master. You will have to modify the IP address and network parameters according to your LAN. An illustrative and simple example to test the application is…

Read More Read More

Interrupt Inputs Ardbox / MDuino

Interrupt Inputs Ardbox / MDuino

This post shows how to use the interrup inputs that  Industrial Shields PLCs have available. For information and description on what are interrupt inputs and how these work see this link. The interrupt inputs for Industrial Shields PLCs are listed in the pinout section of the datasheet.    In this example the interrupt input I0.0  is used to caught  the pulse of an encoder (for proper connection and wiring  check this post). Every time that interrupt I00 a RISING edge, the ‘encoder’…

Read More Read More

Isolated Inputs Ardbox/M-Duino

Isolated Inputs Ardbox/M-Duino

In this post it is described how to use the galvanically isolated inputs in Idustrial Shields PLCs (Ardbox and M-Duino). As shown in the Figure below, isolated inputs always have two available connections and both of these connections need to be wired for a proper performance of the inputs. The configuration if the inputs is PNP. All isolated inputs are DIGITAL,  not ANALOG. Ix.x    –> Signal. Voltage up to 24V (-) Ix.x –> reference or COM of the input signal.   IMPORTANT:…

Read More Read More

PLC- Touchberry PI RS485/RS232

PLC- Touchberry PI RS485/RS232

In this post we are going to learn how to send data between Industrial Shields PLCs and TouchBerry PI PanelPc. In order to apply or implement the functionalities and examples described, the TouchBerry PI is assumed to include the suitable preloaded image. All PanelPC acquired as of 21-08-2015 will include the required image. For those PanelPC  acquired before 21-08-2015 the procedure to install the new compatible image will be provided via email. Touchberry  PI Touchberry PI supports TTL (5V-0V) serial communication through the D37…

Read More Read More

Write Relay Outputs Ardbox/MDuino Relay

Write Relay Outputs Ardbox/MDuino Relay

Ardbox Relay relay outputs (220V / 5A):  R1, R2, R3, R4, R5, R6, R7, R8 MDuino Relay relay outputs (220V/ 8A): R0.1, R0.2, R0.3, R0.4, R0.5, R0.6, R0.7 (MDuino 19R) R0.1, R0.2, R0.3, R0.4, R0.5, R0.6, R0.7, R0.8,  R1.1, R1.2, R1.3, R1.4, R1.5, R1.6, R1.7, R1.8 (Mduino 38R) R0.1, R0.2, R0.3, R0.4, R0.5, R0.6, R0.7, R0.8,  R1.1, R1.2, R1.3, R1.4, R1.5, R1.6, R1.7, R1.8, R2.1, R2.2, R2.3, R2.4, R2.5 (NC), R2.6, R2.7, R2.8 (Mduino 57R)   In this post we are going to learn how to define the state of the relay outputs. In this example relay output R1 (Ardbox Relay)  is switched ON (switch closed) and switched…

Read More Read More

Write Digital Outputs Ardbox/MDuino

Write Digital Outputs Ardbox/MDuino

Digital  Ouputs (0-24Vdc): Ardbox Analog: Q0.0, Q0.1, Q0.2 (Digital); Q0.3, Q0.4, Q0.5, Q0.6, Q0.7, Q0.8, Q0.9 (configurable Digital) Relay:  – M-Duino M-Duino 21: Q0.0, Q0.1, Q0.2, Q0.3, Q0.4 (Digital); Q0.5, Q0.6  Q0.7  (configurable Digital). M-Duino 42:  Q0.0, Q0.1, Q0.2, Q0.3, Q0.4, Q1.0, Q1.1, Q1.2, Q1.3, Q1.4 (Digital); Q0.5, Q0.6  Q0.7, Q1.5, Q1.6  Q1.7 (configurable Digital). M-Duino 58: Q0.0, Q0.1, Q0.2, Q0.3, Q0.4, Q1.0, Q1.1, Q1.2, Q1.3, Q1.4, Q2.0, Q2.1, Q2.2, Q2.3, Q2.4(NC) (Digital); Q0.5, Q0.6  Q0.7, Q1.5, Q1.6  Q1.7, Q2.5, Q2.6  Q2.7 (NC) (configurable Digital). M-Duino 19R: Q0.0,…

Read More Read More

Read Digital Inputs Ardbox/MDuino

Read Digital Inputs Ardbox/MDuino

Digital  Inputs (0-24Vdc): Ardbox Analog: I0.0 (Digital); I0.1, I0.2, I0.3, I0.4, I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Digital). Relay:  I0.0, I0.1, I0.2, I0.3, I0.4 (Digital); I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Digital). M-Duino M-Duino 21: I0.0, I0.1, I0.2, I0.3, I0.4, I0.5, I0.6 (Digital); I0.7, I0.8, I0.9, I0.10, I0.11, I0.12 (configurable Digital). M-Duino 42:  I0.0, I0.1, I0.2, I0.3, I0.4, I0.5, I0.6, I1.0, I1.1, I1.2, I1.3, I1.4, I1.5, I1.6 (Digital); I0.7, I0.8, I0.9, I0.10, I0.11, I0.12, I1.7, I1.8, I1.9, I1.10, I1.11, I1.12  (configurable Digital). M-Duino 58: I0.0, I0.1, I0.2, I0.3,…

Read More Read More

Read Analog Input Ardbox/MDuino

Read Analog Input Ardbox/MDuino

Analog  Inputs (0-10V / 10  bits): Ardbox Analog: I0.1, I0.2, I0.3, I0.4, I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Analog). Relay: I0.4, I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Analog). MDuino M-Duino 21:  I0.7, I0.8, I0.9, I0.10, I0.11, I0.12 (configurable Analog). M-Duino 42:  I0.7, I0.8, I0.9, I0.10, I0.11, I0.12, I1.7, I1.8, I1.9, I1.10, I1.11, I1.12  (configurable Analog). M-Duino 58: I0.7, I0.8, I0.9, I0.10, I0.11, I0.12, I1.7, I1.8, I1.9, I1.10, I1.11, I1.12, I2.7, I2.8, I2.9, I2.10, I2.11 (NC), I2.12 (NC)  (configurable Analog). M-Duino 19R: I0.2, I0.3, I0.4, I0.5 (configurable Analog). M-Duino…

Read More Read More

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

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

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 UIPEthernet: you can find in Gitub. It uses the same functions as the Official Arduino Ethernet Shield. 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…

Read More Read More