Mi primer trabajo de ingeniero fue instalar y configurar un PLC. Mi jefe, que no sabía mucho de este tema, SE le compró a un representante de una prestigiosa marca. El vendedor tampoco conocía mucho acerca del tema. El trabajo consistía en reemplazar un controlador obsoleto por otro de nueva generación. Todos los sensores y actuadores del sistema original se mantenían.
Cuando se estaba haciendo el reemplazo, notamos que los sensores instalados en campo eran de 24 Vdc NPN o sumidero y las módulos que se habían adquirido también. El mismo trabajo se iba a repetir en doce máquinas y cada máquina usaba 3 módulos de entradas DC. Un total de 36 módulos que se compraron con una especificación errada. Mi jefe no iba a durar mucho en su puesto, afortunadamente para él, el problema se resolvió con muy poco dinero.
Conexión del sensor NPN
La mayoría de los sensores NPN, cuando se activan conectan su salida al negativo de la fuente de 24 Vdc, activando la entrada a la que están conectados.
Cuando el sensor se desactiva, la salida queda en un estado de alta impedancia. Esto se conoce en electrónica como el tercer estado. Esta característica fue la usamos en nuestro provecho, en esta condición el flujo de corriente es igual a cero y la entrada del módulo, donde está conectado el sensor, se desactiva.
Solución
Cuando se conecta el sensor NPN a una tarjeta NPN no hay forma que haya conducción. La solución a esto es colocar una resistencia de pull-up, como se muestra en la siguiente figura. Se puede observar que cuando el sensor está activado su transistor de salida hace un corto circuito en la entrada. La corriente que entra al módulo es igual a cero, lo que hace que la entrada esté desactivada.
Cuando el sensor está desactivado, el transistor está abierto y la fuente alimenta la entrada a través de la resistencia de pull-up. Esto hace que la entrada esté activa.
Si miramos con detenimiento, el funcionamiento de la entrada se invierte. En el sistema original si el sensor está activo, la entrada está activa y viceversa. En el sistema con pull-up cuando el sensor está activo la entrada esta desactivada y viceversa. Esto se corrige cambiando el contacto asignado a la entrada donde está conectado el sensor en el programa. Si la entrada tiene asignado un contacto abierto (–] [–), este se cambia por uno cerrado (–]\[–), y viceversa.
¿Cómo calcular la resistencia?
Pero ¿de cuánto es el valor de la resistencia de pull-up? Si a resistencia de pull-up es muy grande la corriente que suministraría la fuente a el módulo de entrada puede que no sea suficiente para activa la entrada en el módulo. Si la resistencia es muy pequeña se puede dañar el transistor de salida del sensor. Así que necesitamos saber la corriente mínima de activación de la entrada, la impedancia de entrada de la entrada y la máxima corriente que puede drenar el sensor.
El valor mínimo de la resistencia de pull up viene dado por la siguiente ecuación:
Rpmin = Vdc/Ismax
Donde Ismax es valor más grande de corriente que el sensor puede drenar. Y el valor máximo de la resistencia de pull-up viene dado por la siguiente ecuación.
Rpmax = Vdc/Iemin – Ree
Donde Iemin es la corriente mínima de activación de la entrada y Ree es la resistencia de entrada de la entrada en la que está conectado el sensor. Para los siguientes datos de operación Vdc =24V, Ree= 3,1 KΩ, Iemin = 2 mA e Ismax = 100 mA. El valor de la resistencia de pull-up estaría en el rango de 240 a 8.900 Ω. Lo aconsejable es ir hacia el valor más alto, para proteger el sensor y exigirle menos potencia a la fuente de poder. Un valor comercial puede ser 8,2 KΩ de 1/4w. En la medida que nos acercamos al valor inferior de la resistencia de pull-up la cantidad de potencia que debe disipar es mayor, una resistencia de 240Ω consumirá 2,4 vatios cuando el sensor este activo. Recuerda que la potencia disipada es i2R.
Si el sensor y la entrada son PNP
Un análisis similar se puede hacer para un sensor PNP conectado a una entrada PNP. Por supuesto que este tipo de conexión no es recomendable de forma permanente. La solución definitiva fue cambiar los sensores por sensores tipo PNP, pero este tipo de conexión nos permitió continuar la producción mientras llegaban los nuevos sensores.
I need to to thank you for this excellent read!! I absolutely enjoyed every bit of it. I have you book-marked to look at new stuff you postÖ
Very good blog article.Really thank you! Great.
When someone writes an article he/she keeps the idea of a user in his/her mind that how a user can be aware of it. Thus that’s why this paragraph is outstdanding. Thanks!
Fantastic blog post.Really thank you! Great.
Your means of explaining everything in this article is really nice,all be capable of without difficulty be aware of it, Thanks a lot.
สล็อตออนไลน์เกมคาสิโนยอดนิยมชั่วกับชั่วกัลป์ เล่นง่าย แจ็คพอตแตกไวควรต้องที่ UFABET จ่ายจริง จ่ายเต็ม มีเกมให้เลือกหลายชิ้นอีกทั้งแทงบอล บาคาร่า ยิงปลา มาเว็บไซต์นี้เว็บเดียวโคตรคุ้ม สร้างรายได้กล้วยๆจบที่เว็บไซต์ UFABET ได้เลยครับ
Your style is so unique compared to other folks I’ve read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just book mark this blog.
Thanks for ones marvelous posting! I genuinely enjoyed reading it, you area great author. I will remember to bookmark your blog and will eventually come back later in life.I want to encourage one to continue your great work, havea nice evening!
Howdy! I know this is kind of off topic but I waswondering if you knew where I could geta captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problemsfinding one? Thanks a lot!
Im thankful for the post.Much thanks again. Really Cool.
Hi there mates, its wonderful paragraph regarding educationand completelydefined, keep it up all the time.
My family every time say that I am wasting my time here at net, but I know I am getting familiarity all the time by reading such pleasant content.
acticlate pill – order ventolin inhalator for sale order glipizide online cheap
buy augmentin 1000mg sale – order cymbalta 20mg generic buy duloxetine without prescription
Does your site have a contact page? I’m having problems locating it but, I’d like to send you an email. I’ve got some ideas for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it grow over time.
boca de aspartamo invierno 2: día de emisión, intriga, lanzamiento, caravana y lo que sabemos hasta ahora
It’s difficult to find educated people for this subject, however, you sound like you know what you’re talking about! Thanks
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something informative to read?
Very good blog you have here but I was curious if you knew of any discussion boards that cover the same topics discussed here? I’d really like to be a part of online community where I can get advice from other knowledgeable people that share the same interest. If you have any suggestions, please let me know. Thanks a lot!
Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up.Grrrr… well I’m not writing all that over again. Anyways, just wanted to say superbblog!
You should participate in a contest for among the finest blogs on the web. I’ll suggest this site!
Good post. I study something tougher on different blogs everyday. It’s going to at all times be stimulating to read content from other writers and observe slightly something from their store. I’d prefer to make use of some with the content on my weblog whether you don’t mind. Natually I’ll provide you with a hyperlink on your web blog. Thanks for sharing.
Thanks for the good writeup. It if truth be told used to be a entertainment account it. Glance complicated to more delivered agreeable from you! However, how could we be in contact?
I have been surfing on-line more than 3 hours lately, yet I by no means found any attention-grabbing article like yours. It is beautiful worth enough for me. In my view, if all website owners and bloggers made good content material as you did, the internet will likely be much more helpful than ever before.
Great blog here! Additionally your website loads up very fast! What host are you using? Can I am getting your associate hyperlink to your host? I desire my website loaded up as fast as yours lol
furosemide 100mg drug – betamethasone 20gm us3 betnovate 20gm over the counter
purchase gabapentin sale – cost neurontin 800mg sporanox 100 mg canada
Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say wonderful blog!
Hiya, I’m really glad I’ve found this info. Today bloggers publish only about gossips and net and this is actually annoying. A good website with interesting content, this is what I need. Thank you for keeping this site, I will be visiting it. Do you do newsletters? Can’t find it.
Magnificent site. Plenty of useful info here. I’m sending it to some friends ans also sharing in delicious. And of course, thanks for your sweat!
Hiya! I just wish to give a huge thumbs up for the nice data you’ve here on this post. I shall be coming back to your blog for more soon.
Thanks-a-mundo for the article post.Really looking forward to read more. Really Great.
A motivating discussion is definitely worth comment. I believe that you ought to write more on this issue, it might not be a taboo matter but typically folks don’t speak about such topics. To the next! All the best!!
Aw, this was a really nice post. In thought I would like to put in writing like this moreover – taking time and precise effort to make an excellent article… however what can I say… I procrastinate alot and by no means seem to get something done.
A round of applause for your blog article.Really looking forward to read more. Great.
tadora 20 side effects tadalafil liquid evolution peptides tadalafil
plaquenil and diarrhea what is plaquenil taken for how can i stop my hair loss from plaquenil
I wanted to thank you for this good read!! I certainly loved every little bit of it. I have you book marked to look at new stuff you postÖ
prednisolone 20mg pill – order generic prometrium 100mg order prometrium 200mg pills
zithromax 500mg canada – cheap zithromax 250mg bystolic ca
Thank you, I’ve just been searching for information about this topic for a while and yours is the greatest I’ve discovered till now. But, what in regards to the conclusion? Are you sure concerning the supply?water delivery
Hello, just wanted to tell you, I enjoyed this article.It was helpful. Keep on posting!my blog post; 카지노
Heya i’m for the primary time here. I found this board and I to find It really useful & it helped me out a lot. I’m hoping to present one thing again and help others like you aided me.
I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently.I am quite certain I’ll learn plenty of new stuff right here!Good luck for the next!
I am continually browsing online diets for health articles that can help me.Thx!
Hey, you used to write great, but the last several posts have been kinda boring¡K I miss your great writings. Past few posts are just a bit out of track! come on!
what is the best ed pill india pharmacies shipping to usa – male dysfunction pills
News about Iran from an unbiased and accurate source.Updated daily with the latest from Iran’s economy,politics and business
neurontin coupon gabapentin – ordering neurontin online
slot games slots games free slotsLoading…
Sweet blog! I found it while searching on Yahoo
Howdy! Would you mind if I share your blog with my myspace group?There’s a lot of folks that I think wouldreally enjoy your content. Please let me know. Cheers
Exactly what I was looking for, thankyou for posting.
Thanks again for the article post.Really looking forward to read more. Awesome.
I think this is a real great blog post. Will read on…
Thanks-a-mundo for the article.Much thanks again. Fantastic.
Muchos Gracias for your blog post.Really thank you! Will read on…
Really appreciate you sharing this blog article.Much thanks again. Will read on…
Aw, this was a very good post. Taking a few minutes and actual effort to generate a top notch article… but what can I say… I put things off a whole lot and don’t manage to get anything done.
It’s exhausting to seek out educated folks on this subject, but you sound like you understand what you’re speaking about! Thanks
order amoxil sale – amoxil buy online combivent 100 mcg drug
Really informative blog article.Thanks Again. Fantastic.
isotretinoin 20mg usa – isotretinoin 10mg cheap zyvox cost
I really like and appreciate your post.Really thank you! Awesome.
stromectol order – purchase atacand generic carbamazepine cheap
This site can be a stroll-through for the entire information you wanted about this and didn’t know who to ask. Glimpse right here, and you’ll definitely discover it.
I know this if off topic but I’m looking into starting my own weblog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100 certain. Any tips or advice would be greatly appreciated. Cheers
Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.
I really like your writing style, fantastic info , thanks for posting : D.
Buenas, yo compre mi campana extractora aqui. La verdad es que no me arrepiento de la compra. Un extractor de estas caracteristicas es bastante bueno y absorbe bastante rapido el humo de la cocina.
Buen dia, no se si me puedan ayudar con un problema que tengo en una maquina.
Tengo un sensor optico NPN el cual cuando detecta algun objeto me manda señal a mi plc y asi puedo controlar el paro de un motor, el problema es que ya van dos sensores que cambio por que despues de un tiempo de trabajo, mi señal se mantiene activa, a pesar que el led de indicacion de señal activa este apagado, cuando quito el sensor me marca continuidad con el multimetro de positivo a señal, no encuentro el porque, no se si me puedan ayudar.
Saludos.
Hola Andres, es algo extraño eso que te sucede, por lo que describes pareceiera que la salida se puso en corto, esto normamente sucede cuando le exiges más corriente de la que puede dar el sensor. Lo extraño es que la tarjetas de entradas tienen una impedancia de entrada muy alta y es poco probale que la salida se dañe, con la freceuncia que describes, yo te acosenjaria dos cosas, revisa bien el cableado, y revisa la marca del sensor, puede que no sea de buena calidad. Anexo va mi correo me puedes escribir por alli si requieres más detalles. Saludos
Hola compañero, una curiosidad. Se puede conectar una salida PNP a una entrada NPN, o viceversa?
Hola Alberto, lo que preguntas es lo correcto, un dispositivo con salida npn debe conectarse a otro con entrada pnp y viceversa
Estimado, a mi me paso algo similar y quiero saber si al hacer esto, es posible que el sensor se queme o al menos produsca un mal olor ?
Gari. El sensor debe trabajar sin problemas, siempre y cuando tenga una salida de colector abierto como muestra la figura y además hayas calculado la resistencia como se muestra en el articulo. Si tienes problemas como los que describes podría ser que la resistencia de pull up es muy pequeña o estés alimentando con un voltaje mayor del voltaje de alimentación del sensor.
Estimado, según veo que parece que hay error en especificar si es NPN o PNP, en las imágenes. Incluso el titulo esta de NPN a NPN (se supone que la conexión es directa entre sensores y entradas con misma lógica).
Puede hacer confundir a principiantes de electronica.
Debe ser claro en que la conexión es de un Sensor NPN a un modulo PNP (en todo su contenido), pero gracias por su clara explicaion en detalle.
Hola Noe. Gracias por tu comentario. En la automatización, cuando hablamos de dispositivos de entrada, como los sensores y su conexión con los equipos de control, medición registradores entre otros, o cuando hablamos de la conexión de las salidas a los dispositivos de salidas, los dispositivos no pueden tener la misma lógica, en otras palabras un sensor npn (también llamado sumidero o sink) se debe conectar con una entrada pnp (también llamado fuente o source), esa es la forma correcta ya que de otra manera no funcionaría. Los dispositivos npn no necesariamente se llaman así por que tienen un transistor npn a la salida, es posible que por allí venga tu confusión. Son llamados npn por que ellos reciben la corriente del dispositivo fuente (pnp). Dos dispositivos npn conectados simplemente no funcionaría, ¿quien suministraría la potencia de funcionamiento?
puedes encontrar más información al respecto en el siguiente link: http://controlreal.com/es/entradas-salidas-discretos/
Me parece muy loable de tu parte que quieras evitar la confusión en los principiantes, esa, pienso debe ser la actitud, pero este no es el caso.
Me parece un buen artículo, pero estoy de acuerdo con Noe.
En la automatización, cuando hablamos de dispositivos de entrada PNP nos referimos a módulos que esperan un sensor tipo PNP. Un sensor PNP entregará positivo en estado excitado.
Creo que hay un error tanto en tu artículo como en el que citas.
Gracias por el comentario, esa confusión que tienes es muy común sobretodo en los estudiantes de ingeniería electrónica o eléctrica. Pero no tienen que creerme a mi, basta con revisar cualquier manual de sensores de alguna marca conocida como Siemens o Allen Bradley entre otros, para que aclaren la confusión.
PD: Y un comentario, en la última frase: «…permitió continuar la producción llegaban los nuevos sensores.»
Faltó la palabra «mientras», para decir «…mientras llegaban los nuevos sensores.»
Gracias Fidel por tus comentarios y aportes. En relación con los diagramas puedes revisar los siguientes links
http://controlreal.com/es/entradas-salidas-discretos/
http://controlreal.com/es/sensores-tipo-de-salidas/
Interesante experiencia, no se me habría ocurrido una solución de ese tipo, pero ya la tendré en cuenta para cualquier posible uso.
Sin embargo, tengo una duda con el funcionamiento de los módulos, ¿Tiene algún diagrama de la conexión con un módulo PNP?.
Saludos