Optoisolated Inputs Mduino
16 January, 2019 by
Optoisolated Inputs Mduino
Bernat Garcia


Introduction


In this post it is described how to use the galvanically isolated inputs in Industrial Shields PLC's (Ardbox and M-Duino).

Requirements


Ethernet or 20 I/Os PLC:     Ethernet PLC       20 I/Os PLC

Industrial Shields boards:  Install Industrial Shields boards


How to connect


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.

Odoo image and text block

Ix.x    –>  Signal. Voltage up to 24V

(-) Ix.x –>  Reference or COM of the input signal.  

IMPORTANT: BOTH connections must be connected read properly.

The next piece of code shows how to read one optoisolated input. Remember to install our boards!


void setup() { 
    Serial.begin(9600); // Set up serial communication. It will allow to monitor the analog input value. } void loop() {
    Serial.println(digitalRead(I0_0));
    delay(2000); //wait 2 seconds }
Optoisolated Inputs Mduino
Bernat Garcia
16 January, 2019
Share this post
Archive

Looking for your ideal PLC?

Take a look at this product comparison with other industrial controllers Arduino-based.

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>

Do you want more information?

Just fill the form!

Tell me more!