PLC Arduino Ethernet 58 I/Os Analog/Digital Plus
PLC Arduino Ethernet 58 I/Os Analog/Digital Plus
1
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
2
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Preface
This User Guide is been implemented by Boot & Work, S.L. working
under the name Industrial Shields.
Intended Audience
This User Guide is intended for the following audience:
Warnings:
Unused pins should not be connected. Ignoring the directive may damage the
controller.
Improper use of this product may severely damage the controller.
Refer to the controller’s User Guide regarding wiring considerations.
Before using this product, it is the responsibility of the user to read the product’s User
Guide and all accompanying documentation.
Maintenance must be performed by qualified personnel familiarized with the
construction, operation, and hazards involved with the control.
Maintenance should be performed with the control out of operation and
disconnected from all sources of power.
Care should be taken when servicing electrostatic sensitive components. The
manufacturer's recommendations for these components should be followed.
The M-Duino Family PLCs are Open Type Controllers. It is required that you install the
M-Duino PLC in a housing, cabinet, or electric control room. Entry to the housing,
3
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Avertissements:
Les broches non utilisées ne doivent pas être connectées. Ignorer la directive peut
endommager le contrôleur.
Une utilisation incorrecte de ce produit peut endommager gravement le contrôleur.
Reportez-vous au Guide de l’utilisateur du contrôleur pour les considérations de
câblage.
Avant d’utiliser ce produit, il incombe à l’utilisateur de lire le Guide de l’utilisateur du
produit et la documentation qui l’accompagne.
La maintenance doit être effectuée par personnel qualifié familiarisé avec la
fabrication, le fonctionnement et les dangers liés au contrôleur.
La maintenance doit être effectuée avec l’équipement hors service et déconnectée de
toutes les sources d'alimentation.
Faites attention lors de l'entretien des composants sensibles à l'électricité statique.
Les recommandations du fabricant pour ces composants doivent être suivies.
Les automates de la famille M-Duino sont des contrôleurs de type ouvert. Il est
nécessaire d'installer l'automate M-Duino dans un boîtier, une armoire ou une salle de
contrôle électrique. L'accès au boîtier, à l'armoire ou à la salle de commande
électrique doit être limité au personnel autorisé. Le non-respect de ces exigences
d'installation peut entraîner des blessures graves et/ou des dommages matériels
importants. Respectez toujours ces exigences lors de l'installation des automates de la
famille M-Duino.
En cas d'installation ou de maintenance du M-Duino, veuillez suivre les instructions
indiquées dans la section Installation et Maintenance.
Ne débranchez pas l'équipement en présence d'une atmosphère inflammable ou
combustible. La déconnexion de l'équipement en présence d'une atmosphère
inflammable ou combustible peut provoquer un incendie ou une explosion pouvant
entraîner la mort, des blessures graves et/ou des dommages matériels.
4
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Application Consideration
THE PRODUCTS CONTAINED IN THIS DOCUMENT ARE NOT SAFETY RATED.
THEY SHOULD NOT BE RELIED UPON AS A SAFETY COMPONENT OR
PROTECTIVE DEVICE FOR ENSURING SAFETY OF PERSONS, AS THEY ARE
NOT RATED OR DESSIGNED FOR SUCH PURPOSES.
Please know and observe all prohibitions of use applicable to the products.
Industrial Shields shall not be responsible for conformity with any codes, regulations or
standards that apply to the combination of products in the customer’s application or use
of the product.
The following are some examples of applications for which particular attention must be
given. This is not intended to be an exhaustive list of all possible uses of the products,
nor is it intended to imply that the uses may be suitable for the products:
Systems, machines, and equipment that could present a risk to life or property.
Nuclear energy control systems, combustion systems, railroad systems,
aviation systems, medical equipment, amusement machines, vehicles, safety
equipment, and installation subject to separate industry or government
regulations.
Outdoor use, uses involving potential chemical contamination or electrical
interference, or conditions or uses not described in this document.
At the customer’s request, INDUSTRIAL SHIELDS will provide applicable third party
certification documents identifying ratings and limitations of use that apply to the
products. This information by itself is not sufficient for a complete determination of the
suitability of the products in combination with the system, machine, end product, or
other application or use.
5
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Industrial Shields products should only be used for the cases of application foreseen in
the catalogue and the associated technical documentation. If third-party products and
components are used, they must have been recommended or approved by Industrial
Shields.
The correct and safe operation of the products requires that your transport, storage,
installation, assembly, operation and maintenance have been carried out in a correct It
must respect the permissible ambient conditions. You should also follow the indications
and warnings that appear in the associated documentation.
The product / system dealt with in this documentation should only be handled or
manipulated by qualified personnel for the task entrusted and observing what is
indicated in the documentation corresponding to it, particularly the safety instructions
and warnings included in it. Due to their training and experience, qualified personnel
are in a position to recognize risks resulting from the handling or manipulation of such
products / systems and to avoid possible hazards.
Disclaimers
Performance Data
The performance data given in this manual is provided as a guide for the user in
determining suitability and does not constitute a warranty. It may represent the result of
INDUSTRIAL SHIELDS’s test conditions, and the users most correlate it to actual
application requirements. Actual performance is subject to the INDUSTRIAL SHIELDS
Warranty and Limitations of Liability.
6
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Residual Risks
The control and drive components of an Industrial Shields PLC are approved for
industrial and commercial use in industrial line supplies. Their use in public line
supplies requires a different configuration and/or additional measures. These
components may only be operated in closed housings or in higher-level control
cabinets with protective covers that are closed, and when all of the protective devices
are used. These components may only be handled by qualified and trained technical
personnel who are knowledgeable and observe all of the safety information and
instructions on the components and in the associated technical user documentation.
When carrying out a risk assessment of a machine in accordance with the EU
Machinery Directive, the machine manufacturer must consider the following residual
risks associated with the control and drive components of a PDS.
4. Electrical, magnetic and electromagnetic fields generated in operation that can pose
a risk to people with a pacemaker, implants or metal replacement joints, etc. if they are
too close.
7
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Warranty
Industrial Shields’s exclusive warranty is that the products are free from defects in
materials and workmanship for a period of one year (or other period if specified) from
date of sale by Industrial Shields.
Limitations of Liability
INDUSTRIAL SHIELDS SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT,
OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR COMERCIAL LOSS IN
ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS
BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY.
8
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Table of Contents
1 General Description M-DUINO 58 I/Os PLUS product .............................................. 11
1.1 Zone - Nomenclature ...................................................................................................... 11
1.2 Zone Distribution............................................................................................................. 12
1.3 A Zone Features............................................................................................................... 13
1.4 Mechanical dimension .................................................................................................... 13
1.5 General Features ............................................................................................................. 14
2 Technical Specifications: ........................................................................................... 16
2.1 General Specifications: .................................................................................................... 16
2.2 Performance Specification: ............................................................................................. 16
2.3 Symbology ....................................................................................................................... 17
3 Precautions................................................................................................................ 18
3.1 Arduino Board ................................................................................................................. 18
3.2 Intended Audience .......................................................................................................... 18
3.3 General Precautions ........................................................................................................ 18
4 Software interface ..................................................................................................... 18
5 How to connect PLC Arduino to PC ........................................................................... 21
6 How to connect PLC to power supply ....................................................................... 23
7 M-Duino 58 I/Os PLUS Pinout ................................................................................... 24
7.1 A Zone connection .......................................................................................................... 24
7.2 B Zone (Analog Shield) .................................................................................................... 26
7.3 C Zone (Analog Shield) .................................................................................................... 27
7.4 D Zone (Analog Shield) .................................................................................................... 28
8 Switch Configuration ................................................................................................. 29
8.1 A Zone: Communications ................................................................................................ 29
8.2 B, C & D Zone Swithces ................................................................................................... 31
9 M-Duino Arduino I/Os 5V pins ................................................................................. 32
9.1 I2C pins – SDA/SCL .......................................................................................................... 32
9.2 Serial 0 – RX0/TX0 ........................................................................................................... 32
9.3 Serial 1 – RX1/TX1 ........................................................................................................... 33
9.4 SPI – MISO/MOSI/SCK ..................................................................................................... 33
9
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
10
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
The nomenclature to differentiate the zones is based on the Alphabet, being A the
shield from below and D the shield from above. Having a B and a C in the middle of
them.:
D ZONE
D ZONE
A ZONE
A ZONE
B ZONE
B ZONE
C ZONE
C ZONE
D ZONE
C ZONE
B ZONE
A ZONE
The inputs in the zone B are named I0.X, being X any number suitable in the
Shield. Outputs are named as Q0.X and relays as R0.X
The inputs in the zone C are named I1.X, being X any number suitable in the
Shield. Outputs are named as Q1.X and relays as R1.X
The inputs in the zone D are named I2.X, being X any number suitable in the
Shield. Outputs are named as Q2.X and relays as R2.X
11
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
The distribution of the different features that provide the M-Duino 58 I/Os PLUS is the
following one:
12
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
(1x) Ethernet
(1x) USB
(1x) I2C
(3x) TTL
(1x) RS-232
Communication (1x) HALF/FULL Duplex RS-485
Shield (1x) SPI external Port
(1x) RTC
(1x) uSD Socket
13
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
24 Vdc
Input rated voltage
Rated Power 30 W
I max. 1.5A
Size 101x119.5x119.3
Clock Speed 16MHz
Flash Memory 256KB of which 8KB used by bootloader
SRAM 8KB
EEPROM 4KB
7 to 24Vdc
I min: 2 to 12 mA
Digital Isolated Input Galvanic Isolation
(24Vcc) Rated Voltage: 24 Vdc
7 to 24Vdc
I min: 2 to 12 mA
* Interrupt isolated Galvanic Isolation
Input HS (24Vcc) Rated Voltage: 24Vdc
0 to 10Vac
I max: 20 mA
Analog Output 8bit Separated PCB ground
(0-10Vcc) Rated Voltage: 10Vac
5 to 24Vdc
I max: 70 mA
Digital Isolated Galvanic Isolation
Diode Protected for Relay Imax 24Vdc: 410 mA
Output (24Vcc) Rated Voltage: 24Vdc
220V Vdc
I max: 5A
Digital Isolated Galvanic Isolation
Output Relay Diode protected for Relay
14
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
5 to 24Vdc
I max: 70 mA
PWM Isolated Output Galvanic Isolation
Diode Protected for Relay
8bit (24Vcc) Rated Voltage: 24Vdc
15
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
2 Technical Specifications:
2.1 General Specifications:
Power supply
DC power supply 12 to 24Vdc
voltage
Operating
DC power supply 11.4 to 25.4Vdc
voltage range
Power
DC power supply 30W max.
consumption
Power supply
24Vdc
External voltage
power supply
Power supply
700Ma
output capacity
Insulation resistance 20MΩ min.at 500Vdc between the AC terminals and the protective earth terminal.
2.300 VAC at 50/60 Hz for one minute with a leakage current of 10mA max. Between all the
Dielectric strength
external AC terminals and the protective ground terminal.
16
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
2.3 Symbology
Table that includes all the symbology that is used in the serigraph of the M-Duino PLC Arduino
Ethernet 58 I/Os Analog/Digital PLUS:
17
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
3 Precautions
Read this manual before attempting to use the M-Duino PLC Arduino Ethernet 58 I/Os
Analog/Digital PLUS and follow its descriptions for reference during operation.
The M-Duino 58 I/Os PLUS PLCs include Arduino Mega Board as controller.
This manual is intended for technicians, which must have knowledge on electrical systems.
The user must operate M-Duino according to the performance specifications described in this
manual.
Before using M-Duino under different conditions from what has been specified in this manual
or integrating M-Duino to nuclear control systems, railroad systems, aviation systems, vehicles,
combustion systems, medical equipment, amusement machines, safety equipment and other
systems, machines, and equipment that may have a serious influence on lives and property if
used improperly, consult your INDUSTRIAL SHIELDS representative. Ensure that the rating and
performance characteristics of M-Duino are sufficient for the systems, machines, and
equipment, and be sure to provide the systems, machines, and equipment double safety
mechanisms. This manual provides information for programming and operating the M-Duino.
4 Software interface
Industrial Shields PLC are programmed using Arduino IDE, which is a software based on the C
language. They can also be programmed using directly C but it is much easier working with
Arduino IDE as it provides lots of libraries that helps in the programming.
Industrial Shields provides boards for programming the PLCs much easier. Basically it is no
needed to define the pins and if that pins are inputs or outputs. Everything is set up
automatically if using the boards.
In order to install Industrial Shields boards, these are the steps that must be followed.
Requirements:
Arduino IDE 1.8.0 or above (better to have always the latest version).
18
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Steps:
1. Open Arduino IDE and go to: “File -> Preferences” located in the top left corner.
http://apps.industrialshields.com/main/arduino/boards/package_industrialshields_index.json
19
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Following these steps you will be able to see now the Industrial Shields Boards:
20
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Also there are some examples of programming in File -> Examples -> M-Duino Family.
Furthermore there are some extra libraries that can be found in Industrial Shields github.
https://github.com/IndustrialShields/
NOTE:
M-Duino 58 I/Os PLUS uses USB-B cable.
21
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
22
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
- Make sure that the live and GND connector of the power supply match the PLC.
- Make sure that the power supply mains output is not higher than 24Vdc.
The standard, Part 1 of IEC 61010, sets the general safety requirements for the following types
of electrical devices and their accessories, regardless of where use of the device is intended.
The equipment must be powered from an external power source in accordance with IEC
61010-1, whose output is MBTS and is limited in power according to section 9.4 of IEC 61010-
1.
WARINING: Once the equipment is installed inside an electrical cabinet, the MTBS cables of
the equipment must be separated from the dangerous voltage cables.
23
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Base
(common unit)
A Zone
Arduino Pin
Connector
M-Duino
Function
SS: Chip Select pins. These pins can act as TTL, so they can work for the Chip Select pin of any device.
Base
(common unit)
A Zone
Arduino Pin
Connector
M-Duino
Function
24
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
*NOTE: Autoreset. Arduino mega has auto reset when using serial communication code. Set switch to OFF when using
serial communication. When uploading code to Arduino Mega set switch to ON.
25
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
B Zone
Arduino Pin
Connector
M-Duino
Function
Top Zone
Function
1
See section 8 to select suitable switch configuration for enable these connections.
26
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
C Zone
Arduino Pin
Connector
M-Duino
Function
Top Zone
Arduino Pin
Function
See section 8 to select suitable switch configuration for enable these connections.
27
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
D Zone
Arduino Pin
Connector
M-Duino
Function
I2.12 NC NC
I2.11 NC NC Analog/Digital Inputs
I2.10 69 Analog/ Digital In
I2.9 68 Analog/ Digital In
I2.8 67 Analog/ Digital In
I2.7 66 Analog/ Digital In
(-)I2.6/INT1 - GND I2.6 Interrupt Inputs (isolated)
I2.6/INT11 21 Interrupt 1 In
(-)I2.5/INT0 - GND I2.5
I2.5/INT01 20 Interrupt 0 In
(-)I2.4 NC NC
I2.4 NC NC
(-)I2.3 - GND I2.3
I2.3 35 Digital Input Digital Inputs (isolated)
(-)I2.2 - GND I2.2
I2.2 34 Digital Input
(-)I2.1 - GND I2.1
I2.1 33 Digital Input
(-)I2.0 - GND I2.0
I2.0 32 Digital Input
Top Zone
Arduino Pin
Function
See section 8 to select suitable switch configuration for enable these connections.
28
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
8 Switch Configuration
8.1 A Zone: Communications
LEFT ZONE
Switch Analog Shield
ON OFF
D ZONE
SCL/I2.6 I2.6 SCL
SDA/I2.5 I2.5 SDA
C ZONE
RX1/I1.6 I1.6 RX1
TX1/I1.5 I1.5 TX1
B ZONE
Pin 3/I0.6 I0.6 Pin 3
Pin 2/I0.5 I0.5 Pin 2
uSD & RS-485
D53(SD) Q2.0 SD
FD RS-485 HD HD FD
4. SCL/I2.6: Choosing between SCL or the input I2.6. If this switch is ON, it enables the I2.6
input and disables the SCL. If this switch is OFF, it enables SCL and disables I2.6.
3. SDA/I2.5: Choosing between SDA or the input I2.5. If this switch is ON, it enables the I2.5
input and disables the SDA. If this switch is OFF, it enables SDA and disables I2.5.
2. RX1/I1.6: Choosing between RX1 or the input I1.6. If this switch is ON, it enables the I1.6
input and disables the RX1. If this switch is OFF, it enables RX1 and disables I1.6.
1. TX1/I1.5: Choosing between TX1 or the input I1.5. If this switch is ON, it enables the I1.5
input and disables the TX1. If this switch is OFF, it enables TX1 and disables I1.5.
29
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
4. Pin 3/I0.6: Choosing between Pin 3 or the input I0.6. If this switch is ON, it enables the I0.6
input and disables the Pin 3. If this switch is OFF, it enables Pin 3 and disables I0.6.
3. Pin 2/I0.5: Choosing between Pin 2 or the input I0.5. If this switch is ON, it enables the I0.5
input and disables the Pin 2. If this switch is OFF, it enables Pin 2 and disables I0.5.
2. D53(SD): If this Switch is OFF, it enables the Chip Select of the microSD socket and disables
Q2.0. If this switch is ON, it enables the Q2.0 output. If the switch is in ON mode the microSD
can’t be used.
1. FD RS-485 HD: Choosing between FD or HF. If this switch is ON, it enables the Half Duplex
(HD) option and disables the FD. If this switch is OFF, it enables Full Duplex (FD) and disables
HD.
LEFT ZONE
SWITCH ON OFF
NC - -
NC - -
RTC SCL RTC -
RTC SDA RTC -
1. RTC SDA: This switch enables the communication to communicate with the RTC using
I2C. Having this switch in ON mode it actives this communication, whereas if it is in
OFF mode it disables the I2C to reach the RTC.
2. RTC SCL: This switch enables the communication to communicate with the RTC using
I2C. Having this switch in ON mode it actives this communication, whereas if it is in
OFF mode it disables the I2C to reach the RTC.
3. NC: Not connected. This switch is not connected to anything, it doesn’t matter if it is in
ON mode or OFF mode.
4. NC: Not connected. This switch is not connected to anything, it doesn’t matter if it is in
ON mode or OFF mode.
30
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
For the Analog Shield if a switch is set to ON, it can only act as Digital Output. If it is set to OFF
it can only act as an Analog Output.
If it is desired to use a Digital Output the pin must be set to ON and the pin that will provide
this digital output is represented with QX.X, being X any number of the tables above.
If it is desired to use an Analog Output the pin must be set to OFF and the pin that will provide
this analog output is represented with AX.X, being X any number of the tables above.
31
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
The Arduino board available pins are summarized in the table below. In order to access some
of these pins the configuration switch must be set to OFF position (see section 8) and some
extra considerations must be taken in consideration when using these pins.
A part from the switch configuration there are some special conditions depending on these 5V.
Now it is going to be shown the considerations to operate with these pins.
If it is meant to work them as a GPIO at 5V, it has to be considered that they are pull-up
inputs.
*IMPORTANT: I2.5 & I2.6 are not pull-up inputs although they are referred to the I2C pins
(switch configuration). There is a “reverse pull-up circuit “that is stablished in order to have the
same behaviour as the other inputs.
32
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
These pins are not stablished with a pull-up or a pull-down configuration. The state of these
pins is unknown. If these pins must be used, they require a pull-up or a pull-down
configuration. The Arduino board allows the pins to be set in a pull-up configuration. If not it
must be stablished an external pull-up or pull-down circuit in order to correctly work with
these pins.
These pins are not stablished with a pull-up or a pull-down configuration. The state of these
pins is unknown. If these pins must be used, they require a pull-up or a pull-down
configuration. The Arduino board allows the pins to be set in a pull-up configuration. If not it
must be stablished an external pull-up or pull-down circuit in order to correctly work with
these pins.
These pins are not stablished with a pull-up or a pull-down configuration. The state of these
pins is unknown. If these pins must be used, they require a pull-up or a pull-down
configuration. The Arduino board allows the pins to be set in a pull-up configuration. If not it
must be stablished an external pull-up or pull-down circuit in order to correctly work with
these pins.
These pins are not stablished with a pull-up or a pull-down configuration. The state of these
pins is unknown. If these pins must be used, they require a pull-up or a pull-down
configuration. The Arduino board allows the pins to be set in a pull-up configuration. If not it
must be stablished an external pull-up or pull-down circuit in order to correctly work with
these pins.
33
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
For the RS-232 communication protocol there isn’t any switch that affects it. So it does not
matter the configuration of the switches to implement a RS-232 communication.
Using the boards of Industrial Shields, there is a library that simplifies the RS-232
implementation.
10.2 RS-485
For RS485 communication protocol the defined Arduino Mega pins are showed in the chart
below.
For the RS-485 communication protocol there is only one switch that affects in this
communication. The RS-485 protocol will be always enabled, the only switch that affects is the
one called “FD rs-485 HD” (See Section 8). This switch makes the choosing between RS-485
Half Duplex or RS-485 Full Duplex (RS-422).
Using the boards of Industrial Shields, there is a library that simplifies the RS-485
implementation.
10.3 I2C
I2C communication DOES NOT REQUIRE a pull-up resistor for the M-Duino 58 I/Os PLUS. The
pull-up resistor is already implemented in the PCB.
Switch ON OFF
D ZONE
SCL/I2.6 I2.6 SCL
SDA/I2.5 I2.5 SDA
34
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
To enable I2C the switches SCL/I2.6 & SDA/I2.5 must be set to OFF mode. In this mode the
inputs are totally disabled and the I2C is now enabled.
Industrial Shields does not provide any library to implement the I2C as it can be used the
standard library of Arduino called Wire.
10.4 SPI
The M-Duino pins used for the SPI bus are summarized in the table below. For SPI bus MISO,
MOSI and CLOCK pins are common to all the connected devices to the M-Duino, conversely,
each of the connected devices will have a single and dedicated SS pin.
10.5 TTL
M-Duino has two TTL ports, RX0/TX0, RX1/TX1. TTL0 is accessed with the function Serial (pins 0
and 1 of the Arduino Mega). TTL1 is accessed with the function Serial1 (pins 18 and 19 of the
Arduino Mega).
In order to use the TTL pins the configuration of the switches have to be the following one:
If the switches RX1/I1.6(I1.1) & TX1/I1.5(I1.0) are in OFF mode, the RX1/TX1 will be enabled. In
order to use TTL3 these switches must be in OFF mode.
10.6 Ethernet
M-Duino Ethernet port controller is based on w5500 IC, which is the compatible IC compatible
with Arduino Ethernet2 Shield libraries. All Ethernet shield Arduino libraries are compatible
with the M-Duino. In the M-Duino, W5500 IC communicates to the Mega board via SPI bus (SS
Arduino Mega pin 10).
35
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
10.7 RTC
M-Duino RTC Module is based on the DS1307 Chip. This chip works with the I2C protocol
communication, so it is required to have enabled the I2C protocol.
LEFT ZONE
SWITCH ON OFF RTC SCL & RTC SDA must be set to ON mode to enable
NC - -
the I2C wires to the RTC. If they are in OFF mode, the
NC - -
Arduino won’t communicate with the RTC.
RTC SCL RTC -
RTC SDA RTC -
Switch
ON OFF I2C (SCL, SDA pins) must be enabled in order to
SCL/I2.6 I2.6 SCL communicate with the RTC. See section 11 I2C to
SDA/I2.5 I2.5 SDA enable it.
Using the boards of Industrial Shields, there is a library that simplifies the RTC implementation
called RTC.
10.8 uSD
The micro SD uses the SPI communication to interact with the Arduino Mega. The SPI protocol
is always enabled, as there are no switches that configure it. However, there is a switch that
must be placed to ON mode in order to communicate with the uSD:
D53(SD): If this Switch is OFF, it enables the Chip Select of the microSD socket and disables
Q2.0. If this switch is ON, it enables the Q2.0 output. If the switch is in ON mode the microSD
can’t be used.
The uSD socket is found in the TOP part of the communication Shields, so in the frontal part of
the PLC, it is required to open the plastic found in the frontal part and the socket is located
under the supply of the Arduino.
LEFT ZONE
Switch
ON OFF
uSD
D53(SD) Q2.0 D53(SD)
36
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Using the boards of Industrial Shields, there is a library that simplifies the uSD implementation
called SD. It is the same as the Arduino library, with the only modification of using the pin 53 to
select the Chip Select of the uSD chip.
Verify that the CPU is not actively running a process before inserting the memory card.
Inserting a memory card will cause the CPU to go to STOP mode, which could affect the
operation of an online process or machine. Unexpected operation of a process or machine
could result in death or injury to personnel and/or property damage. Before inserting a
memory card, always ensure that the CPU is offline and in a safe state.
Si vous insérez une carte mémoire, la CPU passe en mode STOP, ce qui peut affecter le
fonctionnement d'un processus ou d'une machine en ligne. Le fonctionnement inattendu d'un
processus ou d'une machine peut entraîner la mort ou des blessures corporelles et / ou des
dégâts matériels. Avant d'insérer une carte mémoire, assurez-vous toujours que la CPU est
hors ligne et en sécurité.
37
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
38
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
11.3 Ethernet
For an Ethernet communication between Industrial Shields equipment a SFTP CAT-6 Ethernet
crossover cable must be used.
39
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
PWM Waveform:
40
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
41
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
13 Typical Connections
42
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
43
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
44
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
45
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
46
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
14 Connector details:
The connector inside the PLCs that mounts on the PCB is MC 0,5/10-G-2,5 THT – 1963502
from Phoenix contact. MC0,5/10-G-2,5THT
For I/O and power supply there is a FK-MC 0,5/10-ST-2,5 - 1881406 connector from Phoenix
contact. FK-MC 0,5/10-ST-2,5
Connection details:
Height 8,1mm
Pitch 2,5mm
Dimension 22,5mm
47
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
15 Mechanical Characteristics
For optimal operation of the product, it must be located in an electrical cabinet with IK08
mechanical protection. The minimum IP protection degree required is IP56.
48
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
- The installation position should be free from the following: dust or oil smoke,
conductive dust, corrosive or flammable gas, high temperature, condensation, and
rain.
- Besides, vibration and impact also affect the PLC normal operation and shorten its
lifespan; electric shock, fire or misact also damages the product. During drilling or
wiring, prevent the metal particles or wire segments from falling into the PLC casing,
which may cause fire, fault or misact.
- After the PLC installation, clean the ventilation duct to prevent blocking, which may
cause bad ventilation, or even fire, faults or misact.
- Do not online connect, plug or unplug cables, which is apt to cause electric shock or
damage the circuit. Installation and wire connection must be firm and reliable. Poor
connection could cause misact.
- Use shielded twisted pair for the I/O of high frequency signal and analog signal to
improve system IMS.
The installation environment should be free from dust, oil smoke, conductive particle,
corrosive or flammable gases, high temperature, condensation, and rain.
Besides, vibration and impact also affect the PLC normal operation and shorten its lifespan.
It is recommended to install the PLC, together with the matching switches and contactors,
in a dedicated electric cabinet and keep the cabinet ventilated. If the location has high
ambient temperature or heat generating equipment nearby, install forced convection
devices on top or sides of the cabinet to avoid over-temperature. During drilling or wiring,
prevent the metal particles or wire segments from falling into the PLC casing, which may
cause fire, fault or misact. After the PLC installation, clean the ventilation duct to prevent
blocking, which may cause bad ventilation, or even fire, faults or misact.
The only way to disconnect the equipment from the electrical network is by removing the
connectors that feed the equipment. Once installed in the electrical cabinet it is very
important to ensure the power connectors for proper operation.
Separate the M-Duino 58 I/Os PLUS from heat, high voltaje and eletrical noise:
Always separate the devices that generate high voltage and high electrical noise from the
M-Duino 58 I/Os PLUS. When configuring the layout of the M-Duino 58 I/Os PLUS inside
your panel, consider the heat-generating devices and locate the electronic-type devices in
the cooler areas of your cabinet. Reducing the exposure to a high-temperature
environment will extend the operating life of any electronic device. Consider also the
routing of the wiring for the devices in the electric cabinet. Avoid placing low-voltage
signal wires and communications cables in the same tray with AC power wiring and
highenergy, rapidly-switched DC wiring.
49
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
Provide adequate clearance for cooling and wiring M-Duino 58 I/Os PLUS. Is designed for
natural convection cooling. For proper cooling, you must provide a clearance of at least 25
cm above and below the devices. Also, allow at least 25 cm of depth between the front of
the modules and the inside of the enclosure.
Consider the following steps to follow. A false manoeuvre could be the cause of an
accident or material damage.
Do not disassemble or modify the modules. This could lead to breakdowns or
malfunctions and could lead to injuries or fire.
- All types of radio communication devices, including mobile phones and personal
handy-phone systems (PHS), must be kept more than 25cm away from the PLC in all
directions. Failure to observe this precaution exposes malfunctions caused by excess of
temperature.
- Disconnect the external power supply of the system (on all phases) before connecting
or disconnecting a module. Failure to observe this precaution may cause faults or
malfunctions of the module.
50
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
- Tighten the screws of the terminal ports and the screws of the connectors within the
prescribed tightening torque. Insufficient tightening can lead to loose parts or wires
and cause malfunctions. Excessive tightening can damage the screws and / or the
module, with the risk of falling, short circuits and malfunctions.
- Before handling a module, dispose of the electrostatic charge accumulated by the
human body by touching a suitable conductive object. Failure to observe this
precaution may cause faults or malfunctions of the module.
Repair note:
51
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
17 Revision Table
52
Ref. IS.MDUINO.58+ Rev. 0: 30-08-2019
53