Detalles Técnicos
M-DUINO PLC Arduino Ethernet 50RRA I/Os Relay/Analog/Digital PLUS
VOLVER AL PRODUCTOInstalación Inicial
ARDUINO IDE
Arduino IDE es la plataforma original para programar placas Arduino. Esta aplicación multiplataforma está disponible en Windows, macOS y Linux y bajo la Licencia Pública General GNU. Arduino IDE admite la estructuración de código C y C ++. Industrial Shields recomienda usar Arduino IDE para programar PLC basados en Arduino, pero cualquier software compatible con Arduino es compatible con los controladores Industrial Shields.
Aparte de eso, Industrial Shields brinda la posibilidad de seleccionar su PLC basado en Arduino en su IDE de Arduino y compilar sus bocetos para los diferentes PLC.
Descargue el IDE de Arduino 1.8.6:
Entradas y Salidas
ANALOG INPUTS
Voltage variation between –Vcc (or GND) and +Vcc, can take any value. An analog input provides a coded measurement in the form of a
digital value with an N-bit number. In Digital and Analog I/O there’s self insulation, so its posible to connect them in a different power supply
than 24 V.
Inputs: (12x) Analog (0-10Vdc, 10bit) / Digital (7-24Vdc) configurables by software.
TYPICAL CONNECTION
DIGITAL INPUTS
Voltage variation from –Vcc (or GND) to +Vcc, with no intermediate values. Two states: 0 (-Vcc or GND) and 1 (+Vcc). In Digital and Analog I/O there’s self insulation, so its posible to connect them in a different power supply than 24 V.
Inputs: (12x) Analog (0-10Vdc, 10bit) / Digital (7-24Vdc) configurables by software.
TYPICAL CONNECTION
- Digital Isolated Input
- Digital No Isolated Input
INTERRUPT INPUTS
Interrupt Service Rutine. A mechanism that allows a function to be associated with the occurance of a particular event. When the event
occurs the processor exits immediately from the normal flow of the program and runs the associated ISR function ignoring any other task.
Inputs: (6x) Interrupt Inputs (5-24Vdc). “Can work like Digital Input (24Vdc)”.
Interrupt | Arduino Mega Pin | M-Duino Pin |
INT0 | 2 | I0.0 |
INT1 | 3 | I0.1 |
INT4 | 19 | I1.1 |
INT5 | 18 | I1.0 |
INT2 | 21 | I2.6/INT2 |
INT3 | 20 | I2.5/INT3 |
- I0.0 and I0.1 also as Pin3 and Pin2. Enable Interrupts turning ON the switches number 3 and 4 of down communication switches.
- I1.0 and I1.0 also as Tx1 and Rx1. Enable Interrupts turning ON the switches number 1 and 2 of up communication switches.
- I2.5/INT3 and I2.6/INT2 also as SCA and SCL. Enable Interrupts turning ON the switches number 3 and 4 of up communication switches. In this case you won’t be able to use I2C.
TYPICAL CONNECTION
In this example we activate INT0 using pin I0_0 from M-duino board. When there’s a change
#define INTERRUPT I0_0 //other pins: I0_1, I0_6, I2_6, I2_5, I1_6, I1_5 (M-Duino) I0_0, I0_3, I0_2, I0_1 (Ardbox) volatile bool state = false; void setup() { pinMode(INTERRUPT, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(INTERRUPT), function_call_back, CHANGE); } void loop() { if (state == true){ Serial.println("Interrupt activated"); state = false; } } void function_call_back(){ //Change led state state = true; }