0% found this document useful (0 votes)
104 views28 pages

Mduino

The document provides information about the M-Duino family of compact PLC products based on open source Arduino hardware. It describes the general features of the M-Duino 19R, 38R, and 57R models including I/O specifications, dimensions, communication ports, and power supply connection instructions. Safety precautions are outlined for intended users who should have knowledge of electrical systems. Pinout diagrams and configuration details are provided for the different I/O types including analog, digital, and relay outputs as well as analog and digital inputs.

Uploaded by

Ronald Ron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views28 pages

Mduino

The document provides information about the M-Duino family of compact PLC products based on open source Arduino hardware. It describes the general features of the M-Duino 19R, 38R, and 57R models including I/O specifications, dimensions, communication ports, and power supply connection instructions. Safety precautions are outlined for intended users who should have knowledge of electrical systems. Pinout diagrams and configuration details are provided for the different I/O types including analog, digital, and relay outputs as well as analog and digital inputs.

Uploaded by

Ronald Ron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

M-DUINO FAMILY

M-Duino 38R User Guide:

1. Index
2. General Description M-DUINO FAMILY products ....................................................... 3
2.1. Mechanical dimensions ..................................................................................................... 4
3. Precautions.................................................................................................................. 4
3.1. Arduino Board ................................................................................................................... 4
3.2. Intended Audience ............................................................................................................ 4
3.3. General Precautions .......................................................................................................... 4
4. Specifications .............................................................................................................. 5
4.1. General Specifications: ...................................................................................................... 5
4.2. Performance Specification: ............................................................................................... 6
5. Before to connect:....................................................................................................... 7
5.1. Software interface ............................................................................................................. 7
5.2. How to connect PLC arduino to PC ................................................................................... 7
5.3. How to connect PLC to power supply ............................................................................... 8
6. M-duino 38R I/O Pinout: ........................................................................................... 10
6.1. A Zone connection .......................................................................................................... 10
6.2. A Zone top ....................................................................................................................... 11
6.3. B Zone.............................................................................................................................. 11
6.4. B Zone top ....................................................................................................................... 12
6.5. C Zone.............................................................................................................................. 12
6.6. C Zone top ....................................................................................................................... 13
7. I/O Pinout (summary pinout/ Arduino PIN): ............................................................. 14
8. Switch configuration ................................................................................................. 15
8.1 A Zone ................................................................................................................................... 15
8.2 B, C and D Zone ..................................................................................................................... 15
9. I/O technical details .................................................................................................. 16
10. Connector details .................................................................................................. 16
11. Connection type .................................................................................................... 18
11.1 Digital Inputs ................................................................................................................... 18
11.2 Analog (0-10Vdc) / Digital Inputs “configurable” ............................................................ 19
Analog configuration mode:................................................................................................ 19
Digital configuration mode: ................................................................................................ 20
11.3 Digital Outputs ................................................................................................................ 21
11.4 Analog (0-10Vdc) / PWM / Digital Outputs “configurable” ............................................ 22
Analog configuration mode:................................................................................................ 22
Digital configuration mode: ................................................................................................ 23
PWM configuration mode: .................................................................................................. 24
11.5 Relay Outputs .................................................................................................................. 25
12. Communication Pinout.......................................................................................... 26
13. Mechanical Characteristics ................................................................................... 27
14. Software Interface:................................................................................................ 28
2
Page
COMPACT PLC.

2. General Description M-DUINO


FAMILY products

A compact PLC based in Open Source Hardware technology. With different


Input/Outputs Units.

CONECTABLE PLC ARDUINO 24Vcc M-DUINO Relay

MODEL TYPE 19R I/Os 38R I/Os 57R I/Os


Input Voltage 12- 24Vdc
I max. 0,5A
Size 101x119.5x70.1 101x119.5x94.7 101x119.5x119.3
Clock Speed 16MHz
Flash Memory 32KB of wich 0,5KB used by bootlader
SRAM 2KB
EEPROM 1KB
1
I2C – Ethernet Port – USB – RS485 -- SPI –
(3x) Rx,Tx (Arduino pins)
Comunications
TOTAL Input points 6 12 18

11 22 31
TOTAL Output points
Type of signals
* Analog/Digital
Input 10bit 4 8 12
(0-10Vcc)
* Digital Input (24Vcc) 6 12 18

* Interrupt Input HS 2 4 6
(24Vcc)
* Analog Output 3 6 8
(0-10Vcc)
* Digital Output (24Vcc) 4 6 8

* PWM Output 8bit 3 6 8


(24Vcc)
* Relay Output 8 16 23
(220Vcc-8A)
Expandability I2C1 - 127 elements - Serial Port RS232/RS485
Reference IS.MDuino.19R IS.MDuino.38R IS.MDuino.57R

* By using this type of signal can no longer use Digital signal


(24Vdc)
You must read product Datasheet.
(1) IMPORTANT. Visit accessories/communication section.
3
Page

1
10k pull-up resistance required (IS.ACI2C-4.7K)

Ref. 15.07.15_M-duino38R_User_Guide
2.1. Mechanical dimensions

M-Duino 19R I/Os

M-Duino 38R I/Os

M-Duino 57R I/Os

3. Precautions
3.1. Arduino Board
All M-duino family products use Arduino MEGA Board.

3.2. Intended Audience


This manual is intended for the following personal, which must also have knowledge of
electrical systems.

3.3. General Precautions


The user must operate the product according to the performance specifications described in
the operation manuals.
4

Before using the product under conditions, which are not described in the manual or applying
Page

the product to nuclear control systems, railroad systems, aviation systems, vehicles,

Ref. 15.07.15_M-duino38R_User_Guide
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.

Make sure that the rating and performance characteristics of the product are sufficient for the
systems, machines, and equipment, and be sure to provide the systems, machines, and
equipment with double safety mechanisms.

This manual provides information for programming and operating the Unit. Be sure to read
this manual before attempting to use the Unit keep this manual close at hand for reference
during operaion.

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.

4. Specifications

4.1. General Specifications:


Item M-DUINO R19 IOs M-DUINO R38 IOs M-DUINO R57 IOs

Power supply
DC power supply 12 - 24Vdc
voltage

Operating
DC power supply 11.4 to 25.4Vdc
voltage range

Power
DC power supply 30VAC 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
Dielectric strength
the external AC terminals and the protective earth terminal.

Shock resistance 80m/s2 in the X, Y and Z direction 2 times each.

Ambient temperature (operating) 0º to 45ºC

Ambient humidity (operating) 10% to 90% (no condensation)


5
Page

Ref. 15.07.15_M-duino38R_User_Guide
Ambient environment (operating) With no corrosive gas

Ambient temperature (storage) -20º to 60ºC

Power supply holding time 2ms min.

Weight 445g max. 542g max. 850g max.

4.2. Performance Specification:


Item M-DUINO 19R IOs M-DUINO 38R IOs M-DUINO 57R IOs
Arduino Board ARDUINO MEGA 2560
Control method Stored program method
I/O control method Combination of the cyclic scan and immediate refresh processing methods.
Arduino IDE. Based on wiring (Wiring is an Open Source electronics platform composed of a
Programming language
programming language. “similar to the C”. http://arduino.cc/en/Tutorial/HomePage
Microcontroller ATmega2560
Flash Memory 256kb of wich 8 kb used by bootloader
Program capacity (SRAM) 8kb
EEPROM 4kb
Clock Speed 16MHz
Clock Speed 16MHz
6
Page

Ref. 15.07.15_M-duino38R_User_Guide
5. Before to connect:

5.1. Software interface


Arduino IDE is compatible for programming these PLCs. You must to download a start code in
www.industrialshields.com at product page in “document files” section and then It is
necessary open it with Arduino IDE.

Configuration about Arduino IDE:

5.2. How to connect PLC arduino to PC

- Connect USB port from PLC to PC.

NOTE:
M-Duino Family use USB-B cable.

- Open Arduino IDE interface:


You can install with this link:
http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe

- Select Arduino Board


NOTE:
M-Duino Family use Arduino MEGA 2560.

 IMPORTANT: For M-duino Family you need set the AUTORESET


switch to on when uploading the program to Arduino Mega 2560
(see section 6.2).
7
Page

Ref. 15.07.15_M-duino38R_User_Guide
- Select correct port.

IMPORTANT:
Verify the USB port is detected:

5.3. How to connect PLC to power supply

- MDuino Family PLC are 24Vdc supplied. IMPORTANT: The polarity IS NOT REVERSAL!
- 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.
8
Page

Ref. 15.07.15_M-duino38R_User_Guide
- Suggested power suppliers

* Not recommended for industrial applications. The


Jack connector needs to be removed and use the live
and GND connectors.
9
Page

Ref. 15.07.15_M-duino38R_User_Guide
6. M-duino 38R I/O Pinout:

D ZONE

D ZONE
A ZONE

A ZONE
B ZONE

B ZONE
C ZONE

C ZONE
D ZONE
C ZONE
B ZONE
A ZONE

6.1. A Zone connection


Base
(common unit)
A Zone

Arduino Pin
Connector
M-Duino

Function
Configuration Switch* (see section 12 for
Communications configuration.
Enabling Communications disable s some SCL 21 SCL
I/Os) SDA 20 SDA
RX0 1 RX0
TX0 0 TX0
RX1 19 RX1
TX1 18 TX1
RX2 17 RX2
Communication Pinout TX2 16 TX2
RX3/RE 15 RX3/RS485
TX3/DE 14 TX3/RS485
A - RS485
B - RS485
PIN3 3 Arduino Pin/
Power supply connectors Select SPI
(24Vdc – Gnd) 50 SO 50 SPI
51 SI 51 SPI
52 SCK 52 SPI
Reset Reset SPI
Vin5 Vin5 SPI
PIN2 2 Arduino Pin/
Select SPI
GND - Gnd
GND - Gnd
24Vdc

Base
(common unit)
A Zone Pin out function
Arduino Pin
Connector
M-Duino

Function

AREF AREF Arduino PIN


IOREF2 IOREF2 Arduino PIN
IOREF1 IOREF1 Arduino PIN
7Vdc 7Vdc -
Gnd Gnd GND
3.3Vdc 3.3Vdc -
10

GND Gnd GND


5Vdc 5Vdc -
GND Gnd GND
Page

Ref. 15.07.15_M-duino38R_User_Guide
6.2. A Zone top

Power led indicator Arduino Reset button

USB programmer connector Autoreset*


Ethernet connector (Arduino Mega)

*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.

6.3. B Zone

B Zone

Arduino Pin
Connector
Relay Out M-Duino

Function 2
R0.8 37 Relay 0.8 Out
Configuration Switch* R0.7 38 Relay 0.7 Out
(see section 8 to select R0.6 39 Relay 0.6 Out
R0.5 40 Relay 0.5 Out
correct configuration for R0.4 24 Relay 0.4 Out
inputs).

B Zone
Connector
M-Duino

Arduino Pin

Function 2

Relay out
R0.3 25 Relay 0.3 Out
R0.2 22 Relay 0.2 Out
R0.1 23 Relay 0.1 Out
GND - Gnd
Q0.2 D4 Analog/ Digital Out
Q0.1 D5 Analog/ Digital Out
Q0.0 D6 Analog/ Digital Out Input Pinout
GND - Gnd
I0.5 A3 Analog/ Digital In
Output Pinout
I0.4 A2 Analog/ Digital In
I0.3 A1 Analog/ Digital In
I0.2 A0 Analog/ Digital In
I0.13 3 Digital In/ Interrupt 1
(-)I0.1 NC GND I0.1
I0.03 2 Digital In/ Interrupt 0
(-)I0.0 NC GND I0.0
11
Page

2
See section 8 to select suitable switch configuration for (10-24Vdc/An-Dig) configurable I/Os.
3
See section 8 to enable these connections.

Ref. 15.07.15_M-duino38R_User_Guide
6.4. B Zone top

Led indicator I/Os state

6.5. C Zone

C Zone

Arduino Pin
Connector
M-Duino

Function 4
Relay Out
R1.8 42 Relay 1.8 Out
R1.7 43 Relay 1.7Out
R1.6 44 Relay 1.6 Out
R1.5 45 Relay 1.5 Out
R1.4 29 Relay 1.4 Out

Configuration Switch*
(see section 8 to select
correct configuration for
inputs).

C Zone
Connector
M-Duino

Arduino Pin

Function 2

R1.3 30 Relay 11 Out Relay out


R1.2 27 Relay 10 Out
R1.1 28 Relay 9 Out
GND - Gnd
Q1.2 D8 Analog/ Digital Out
Q1.1 D9 Analog/ Digital Out
Q1.0 D7 Analog/ Digital Out
GND - Gnd
I1.5 A9 Analog/ Digital In Input Pinout
I1.4 A8 Analog/ Digital In
I1.3 A7 Analog/ Digital In
Output Pinout
I1.2 A6 Analog/ Digital In
I1.15 19 Digital In/ Interrupt 4
(-)I0.1 NC GND I1.1
I1.05 18 Digital In/ Interrupt 5
(-)I1.0 NC GND I1.0
12
Page

4
See section 8 to select suitable switch configuration for (10-24Vdc/An-Dig) configurable I/Os.
5
See section 8 to enable these connections.

Ref. 15.07.15_M-duino38R_User_Guide
6.6. C Zone top

Led indicator I/Os state


13
Page

Ref. 15.07.15_M-duino38R_User_Guide
7. I/O Pinout (summary pinout/ Arduino PIN):
M-DUINO 57R IOs
Base
M-DUINO 38R IOs
(common unit)
M-DUINO 19R IOs
B Zone C Zone D Zone
A Zone

Arduino Pin

Arduino Pin

Arduino Pin
Connector

Connector

Connector
Arduino Pin
Connector

M-Duino

M-Duino

M-Duino
Function
M-Duino

Function

Function

Function
SCL 21 SCL R0.8 37 Relay 0.8 Out R1.8 42 Relay 1.8 Out R2.8 47 Relay 2.8 Out
SDA 20 SDA R0.7 38 Relay 0.7 Out R1.7 43 Relay 1.7 Out R2.7 48 Relay 2.7 Out
RX0 1 RX0 R0.6 39 Relay 0.6 Out R1.6 44 Relay 1.6 Out R2.6 49 Relay 2.6 Out
TX0 0 TX0 R0.5 40 Relay 0.5 Out R1.5 45 Relay 1.5 Out R2.5 NC NC
RX1 19 RX1 R0.4 24 Relay 0.4 Out R1.4 29 Relay 1.4 Out R2.4 34 Relay 2.4 Out
TX1 18 TX1
RX2 17 RX2
TX2 16 TX2
RX3/RE 15 RX3/RS485
TX3/DE 14 TX3/RS485
A - RS485
B - RS485
PIN3 3 Arduino Pin/
Select SPI
50 SO 50 SPI
51 SI 51 SPI
52 SCK 52 SPI
Reset Reset SPI
Vin5 Vin5 SPI
PIN2 2 Arduino Pin/
Select SPI
GND - Gnd
GND - Gnd
24Vdc
AREF AREF Arduino PIN R0.3 25 Relay 0.3 Out R1.3 30 Relay 11 Out R2.3 35 Relay 2.3 Out
IOREF IOREF Arduino PIN R0.2 22 Relay 0.2 Out R1.2 27 Relay 10 Out R2.2 32 Relay 2.2 Out
IOREF1 IOREF1 Arduino PIN R0.1 23 Relay 0.1 Out R1.1 28 Relay 9 Out R2.1 33 Relay 2.1 Out
7Vdc (out) +7Vdc - GND - Gnd GND - Gnd GND - Gnd
Gnd Gnd GND Q0.2 D4 An/ Dig/ PWM Q1.2 D8 An/ Dig/ PWM Q2.2 D12 An/ Dig/ PWM
3.3Vdc (out) +3.3Vdc Arduino PIN Out Out Out
Gnd Gnd GND Q0.1 D5 An/ Dig/ PWM Q1.1 D9 An/ Dig/ PWM Q2.1 D13 An/ Dig/ PWM
5Vdc (out) 5Vdc - Out Out Out
gnd gnd GND Q0.0 D6 An/ Dig/ PWM Q1.0 D7 An/ Dig/ PWM Q2.0 NC NC
Out Out
GND - Gnd I1.5 A9 Analog/ Digital I2.5 A15 Analog/ Digital
I0.5 A3 Analog/ Digital In In
In I1.4 A8 Analog/ Digital I2.4 A14 Analog/ Digital
I0.4 A2 Analog/ Digital In In
In I1.3 A7 Analog/ Digital I2.3 A13 Analog/ Digital
I0.3 A1 Analog/ Digital In In
In I1.2 A6 Analog/ Digital I2.2 A12 Analog/ Digital
I0.2 A0 Analog/ Digital In In
In I1.1 19 Digital In/ I2.1 21 Digital In/
I0.1 3 Digital In/ Interrupt 4* Interrupt 2*
Interrupt 1* (-)I0.1 NC GND I1.1 (-)I2.1 NC GND I2.1
(-)I0.1 NC GND I0.1 I1.0 18 Digital In/ I2.0 20 Digital In/
I0.0 2 Digital In/ Interrupt 5* Interrupt 3*
Interrupt 0* (-)I1.0 NC GND I1.0 (-)I2.0 NC GND I2.0
(-)I0.0 NC GND I0.0

*NOTE: Digital Inputs I0.0, I0.1, I1.0, I1.1 can be configured on Arduino IDE to be Interrupts.

Arduino Switch Switch mode


Pin mode OFF ON
21 SCL -
20 SDA -
19 Rx1 Interrupt 4
18 Tx1 Interrupt 5
14

3 Pin 3 Interrupt 1
2 Pin 2 Interrupt 0
Page

Ref. 15.07.15_M-duino38R_User_Guide
8. Switch configuration

8.1 A Zone

LEFT *IMPORTANT:
SWITCH CONFIG
Arduino LEFT ZONE. To enable communication connections the switchs
Pin OFF* ON
21 SCL - must be set to “OFF”. Set to “ON” position to enable I/Os PLC
20 SDA - connection. Communications and I/Os on the chart can not work
19 Rx1 I1.1 simultaneously. For exemple if Rx1 is enabled (OFF), I1.1 will not
18 Tx1 I1.0 work. OFF position provides direct connection to Arduino Pin (so
3 Pin 3 I0.1
2 Pin 2 I0.0 they can be programmed according to Arduino pin features).

8.2 B, C and D Zone

Some I/Os can be configured as Analg/Digital and 10Vdc/24Vdc, the chart above summarizes the
positions for each type of configurable I/O.

LEFT SIDE
B ZONE
SWITCH CONFIG
Input ON OFF
Q0.2
Q0.1 10 24
Q0.0 Vdc Vdc
NC
SWITCH CONFIG
Q0.2
Q0.1
Analog Digital
Q0.0
NC
C ZONE
SWITCH CONFIG
Input ON OFF
Q1.2
Q1.1 10 24
Q1.0 Vdc Vdc
NC
SWITCH CONFIG

Q1.2
Q1.1
Analog Digital
Q1.0
NC
15
Page

Ref. 15.07.15_M-duino38R_User_Guide
9. I/O technical details

M-duino family products

Maxim current
Signal Vdc
consumption

Digital Input 24 Vdc 60mA

Analog/Digital Input configurable

Analog 0-10Vdc
60mA

Digital 24Vdc 60mA

Digital Output 24Vdc6 200mA

Analog/Digital/PWM Output configurable

Analog 0-10Vdc 80mA

Digital 24 Vdc 80mA

PWM 24Vdc 80mA

All outputs can be working simultaneously


Cumulative outputs at its max current value

Relay 220V 8A

10. 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
16
Page

6
You can select 24Vdc or 10Vdc (with correctly switch configuration). Digital output will be 12Vdc If you
connect PLC to 12Vdc power supply

Ref. 15.07.15_M-duino38R_User_Guide
Connection details:

Article reference MC 0,5/10-G-2,5 THT

Height 8,1mm

Pitch 2,5mm

Dimension 22,5mm

Pin dimensions 0,8x0,8mm

Pin spacing 2,50mm

Article refernce FK-MC 0,5/10-ST-2,5

Rigid conduit section min. 0,14 mm²

Rigid conduit section max. 0,5 mm²

Flexible conduit section min. 0,14 mm²

Flexible conduit section max. 0,5 mm²

Conduit section AWG/kcmil min. 26

Conduit section AWG/kcmil max. 20


17
Page

Ref. 15.07.15_M-duino38R_User_Guide
11. Connection type

11.1 Digital Inputs

NOTE:

Some digital Inputs have an isolated


signal. In this case is necessary to
connect correctly ground (GND) in
correctly “com” pin.

- Programation Code (example):

int I01 = 12; // Digital (24Vdc)


void setup() {
pinMode(I01, INPUT);
}
Void loop(){
/* Lo que se quiera */ = digitalRead(I01);
}
18
Page

Ref. 15.07.15_M-duino38R_User_Guide
11.2 Analog (0-10Vdc) / Digital Inputs “configurable”
Analog configuration mode:

Switch configuration
(Select Analog position)

- Programation Code (example):

int I01 = A05; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog selection connect 10Vdc MAX).
int I02 = A04; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog selection connect 10Vdc MAX).
void setup() {
pinMode(I01, INPUT);
}
Void loop(){
value = analogRead(A5);
/* Lo que se quiera */ = digitalRead(I01);
}
19
Page

Ref. 15.07.15_M-duino38R_User_Guide
Digital configuration mode:

Switch configuration
(Select digital position)

- Programation Code (example):

int I01 = A05; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog slection connect 10Vdc MAX).
int I02 = A04; // select the Analog (0-10Vdc) / Digital (24Vdc)IN //**warning"" (if Analog slection connect 10Vdc MAX).
void setup() {
pinMode(I01, INPUT);
}
Void loop(){
value = analogRead(A5);
/* Lo que se quiera */ = digitalRead(I01);
}
20
Page

Ref. 15.07.15_M-duino38R_User_Guide
11.3 Digital Outputs

- Programation Code (example):

int Q06 = 3; // Relay output (220Vac, 8A)


void setup() {
pinMode(Q06, OUTPUT);
}
Void loop(){
digitalWrite(Q06, HIGH); // Relay ON
// turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(Q06, LOW); // Relay OFF
// turn the LED off (LOW is the voltage level)
}
21
Page

Ref. 15.07.15_M-duino38R_User_Guide
11.4 Analog (0-10Vdc) / PWM / Digital Outputs “configurable”
Analog configuration mode:

Switch configuration
Select 10Vdc position switch
Select Analog position switch

- Programation Code (example):

int Q06 = 3;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
int Q05 = 5;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
void setup() {
pinMode(Q06, OUTPUT);
pinMode(Q05, OUTPUT);
}
22

Void loop(){
analogWrite(Q06, /*valor de una variable */);
digitalWrite(Q05, 125);
Page

Ref. 15.07.15_M-duino38R_User_Guide
Digital configuration mode:

Connection Digital Output (24Vdc)

Switch configuration
Select 24Vdc position switch
Select Digital position switch

- Programation Code (example):

int Q06 = 3;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
int Q05 = 5;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
void setup() {
pinMode(Q06, OUTPUT);
pinMode(Q05, OUTPUT);
}
Void loop(){
analogWrite(Q06, 254);
digitalWrite(Q05, HIGH); // Relay ON
// turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
analogWrite(Q06, 0);
digitalWrite(Q06, LOW); // Relay OFF
// turn the LED off (LOW is the voltage level)
}
23
Page

Ref. 15.07.15_M-duino38R_User_Guide
PWM configuration mode:

Connection PWM Output (24Vdc)

Switch configuration
Select 24Vdc position switch
Select Digital position switch

- Programation Code (example):

int Q06 = 3;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
int Q05 = 5;
// select the Analog (0-10Vdc) / PWM (10 OR 24Vdc) /Digital //(24Vdc)OUTPUT
void setup() {
pinMode(Q06, OUTPUT);
pinMode(Q05, OUTPUT);
}
Void loop(){
analogWrite(Q06, /*valor de una variable */);
digitalWrite(Q05, 125);
}
24
Page

Ref. 15.07.15_M-duino38R_User_Guide
11.5 Relay Outputs

- Programation Code (example):

int Q06 = 3; // Relay output (220Vac, 5A)


void setup() {
pinMode(Q06, OUTPUT);
}
Void loop(){
digitalWrite(Q06, HIGH); // Relay ON
delay(1000); // wait for a second
digitalWrite(Q06, LOW); // Relay OFF
}
25
Page

Ref. 15.07.15_M-duino38R_User_Guide
12. Communication Pinout
In A Zone you can select different types of Arduino communication PINS:

Arduino Pin Switch mode OFF* Switch mode ON


21 SCL -
20 SDA -
19 Rx1 I1.1
18 Tx1 I1.0
3 Pin 3 I0.1
2 Pin 2 I0.0

LEFT ZONE. To enable communication connections the switchs must be set to “OFF”. Set to
“ON” position to enable I/Os PLC connection. Communications and I/Os on the chart can not
work simultaneously. For exemple if Rx1 is enabled (OFF), I1.1 will not work. OFF position
provides direct connection to Arduino Pin (so they be programmed according to Arduino pin
features).

For RS485 communication protocol the defined Arduino Mega pins are showed in the chart
below.

RS485 pinout
Function Arduino Pin
DI 10
RO 11
RE 15
DE 14

You have different options and accessories. M-Duino family products have direct Ethernet port
with RJ45 connector.

For I2C/RS232 communication, M-Duino family products are directly connected to Arduino
Mega Board. In order to implement this communication an accessory is required.
http://www.industrialshields.com/accesories
26
Page

Ref. 15.07.15_M-duino38R_User_Guide
13. Mechanical Characteristics
- Dimension M-duino Family:
- DIN rail mounting:
27
Page

Ref. 15.07.15_M-duino38R_User_Guide
14. Software Interface:
Arduino IDE is compatible for program these PLCs. You must to download a start code in
www.industrialshields.com at product page in “document files” section and then it’s necessary
open it with Arduino IDE.

Configuration about Arduino IDE:

All Ardbox PLCs use an Arduino Leonardo and you need to choose these opcion in Arduino IDE.

About Industrial Shields:


SPAIN
Avda. Castell de Barberà 26, nave 9
08210 Barberà del Vallès (Barcelona)
Tel.+34 635693611
Mail: industrialshields@industrialshields.com
28
Page

Ref. 15.07.15_M-duino38R_User_Guide

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy