Forum Controladores/PLC

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

How to use the digital/analog Inputs

Avatar
Guest

I have a problem when using the digital/analog Inputs 10.7 to 10.12 on a MDuino 21+.  How can I change the mode for use the digital/analog inputs as one type or another?

Also the indicator Leds are lightning when I connect a switch with 24vdc to the inputs but there is not any reaction when I program with the digitalRead(I0.7).

Avatar
Descartar
1 Respuesta
0
<div> <h5 class="o_wforum_bio_popover_name mb-0"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div> <span itemprop="name">Marti Guillem Cura</span> <span><img src=https://www.industrialshields.com/es_ES/forum/forum-controladores-plc-17/question/"/web/image/res.country/68/image/España?unique=a14a800%22 class="img img-fluid country_flag" alt="España"/></span> </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> </div> </address> </h5> <span class="o_wforum_bio_popover_info"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <div class="css_editable_mode_hidden"> <div class="mb-2"> <br/> </div> <b class="mt-4"><i class="fa fa-diamond text-secondary"></i> 1000000015</b> <div style="display: inline-block"> <b>|</b> <span class="fa fa-trophy badge-gold ml-2" role="img" aria-label="Gold badge" title="Gold badge"></span> 0 <span class="fa fa-trophy badge-silver ml-2" role="img" aria-label="Silver badge" title="Silver badge"></span> 0 <span class="fa fa-trophy badge-bronze ml-2" role="img" aria-label="Bronze badge" title="Bronze badge"></span> 0 </div> <div class="mt-2"> <div class="o_forum_tooltip_line"> <span>Sant Fruitós de Bages</span><span>, </span><span>España</span> </div> </div> </div> </div> </address> </span> <div class="o_wforum_bio_popover_bio"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Marti Guillem Cura
Best Answer

Let's check all the steps to get this inputs work as expected: 


1) The PLC needs to be powered externally (12/24Vdc) 

2) This inputs can work as analog or digital and you can choose it on the Arduino IDE program (not by hardware) 

3) Have you checked all the inputs from I0.7 to I0.12? Is possible that a peak of amperage or an overvoltage have affected this inputs? From I0.0 to I0.6 are all optoisolated digital inputs, so that if an overvoltage of peak of current have affected the equipment, this inputs have an external circuitry and can still work. 

4) Here you can check how to connect and work with this inputs as analog, but the same program can work with digitalWrite instruction:

https://www.industrialshields.com/blog/arduino-industrial-1/post/learning-the-basics-about-analog-inputs-of-an-industrial-plc-29

5) Confirm me that you are using the following model on Arduino IDE boards: 

image.png

I hope I have been helpful.
Avatar
Descartar