Ref. IS.MDUINO.58+
Rev. 0: 30-08-2019
34
A Zone Features: Communications & RTC & uSD
10
10.1
RS-232
The Arduino Mega function code to access the RS-232 port in the M-Duino is Serial2 (pins 16
and 17 of the Arduino Mega).
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.
Function
Arduino Pin
DI
14
RO
15
RE
11
DE
46
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.
I2C communication is configured by switches, so the switches must be configured in order to
enable the I2C communication.
Switch
ON
OFF
D ZONE
SCL/I2.6
I2.6
SCL
SDA/I2.5
I2.5
SDA
Summary of Contents for M-DUINO PLC ARDUINO ETHERNET 58
Page 2: ...Ref IS MDUINO 58 Rev 0 30 08 2019 1...
Page 3: ...Ref IS MDUINO 58 Rev 0 30 08 2019 2 Ethernet PLC MDuino 58 PLUS User Guide Revised August 2019...
Page 43: ...Ref IS MDUINO 58 Rev 0 30 08 2019 42 Typical Connections 13...
Page 44: ...Ref IS MDUINO 58 Rev 0 30 08 2019 43...
Page 45: ...Ref IS MDUINO 58 Rev 0 30 08 2019 44...
Page 46: ...Ref IS MDUINO 58 Rev 0 30 08 2019 45...