Why is there an extra diode in this sketch?

  • Thread starter Thread starter Femme_physics
  • Start date Start date
  • Tags Tags
    Diode Sketch
Click For Summary

Discussion Overview

The discussion revolves around the electronic schematics of a PLC (Programmable Logic Controller), specifically focusing on the role and function of two diodes present before a transistor in the circuit. Participants explore the implications of these diodes in terms of input signal detection, protection mechanisms, and the design choices made in the schematic.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant notes that the PLC uses galvanic isolation at the input, which is common in PLC designs, and suggests that a bidirectional optocoupler is employed.
  • Another participant explains that both diodes in the optocoupler emit light for positive and negative input currents, allowing the PLC to detect input of either polarity.
  • A question is raised about the orientation of one diode, with a participant expressing confusion about its placement and the implications for current flow.
  • It is mentioned that one of the diodes serves as a protection diode against back EMF, particularly relevant for sensitive components like LEDs.
  • Another participant elaborates on the function of the output diode, describing it as a Free Wheeling Diode that protects the transistor from voltage spikes caused by inductive loads.
  • Some participants express disagreement regarding the behavior of the opto-isolators, with one noting that the datasheet does not confirm the bidirectional behavior and suggesting that the diodes may serve as protection against miswiring.
  • There is a correction regarding the interpretation of the output diode's function, indicating it is primarily for reverse voltage protection rather than free wheeling.
  • A participant highlights a note in the specifications about output protection, indicating that additional protection for inductive loads must be added externally.

Areas of Agreement / Disagreement

Participants express a mix of agreement and disagreement regarding the functions of the diodes, with some supporting the idea of bidirectional input detection while others challenge this based on the datasheet. The discussion remains unresolved on certain aspects, particularly concerning the exact roles of the diodes and the implications of the schematic design.

Contextual Notes

Participants note that the behavior of the diodes may depend on specific definitions and assumptions not fully detailed in the datasheet. There are also references to potential miswiring and the need for additional protective measures, indicating limitations in the provided specifications.

Femme_physics
Gold Member
Messages
2,548
Reaction score
1
Hey guys, I'm trying to wrap my head around this electronic schematics of a PLC, because I've started ladder-programming it. Can anyone explain to me why are there TWO diodes before the transistor? I get that one diode shows an "active" or "inactive" state when it's turned on or not. But why the other diode before the transistor?

Attached is an image of the sketch as well as the entire PDF with the PLC specifications
 

Attachments

  • wiring.jpg
    wiring.jpg
    32.2 KB · Views: 519
  • SC Instruction Sheet-English-20060112 (1).pdf
    SC Instruction Sheet-English-20060112 (1).pdf
    403.3 KB · Views: 385
Engineering news on Phys.org
Well, answer is very simple. Your PLC use galvanic isolation/separation at the input in fact almost all PLC's use galvanic separation.
And this is why they use photocoupler at the input. And because the input is source/sink type they use bidirectional input optocoupler
http://www.ixysic.com/home/pdfs.nsf/www/LDA110.pdf/$file/LDA110.pdf
 
Perhaps there's a subtlety...
Jony's optocoupler is specified "bidirectional",
both of those diodes are light emitting,
one of them will emit light for positive input current, the other for negative.
So the PLC will detect input of either polarity.
The manual shows only positive input, a +24 volt supply is wired there, but it looks like the circuit designer provided for the input to sink current of either polarity. Good thinking, i'd say.

old jim
 
Thank you for the clarification!

One thing is still unclear. Why is the diode near Y0 is pointing up and not down? I mean, since C0 = Ground, Y0 should theoretically never be turned on because the current will always prefer to flow where there is no resistance.
 
This is a protection diode, so-called a back EMF protection diode.
 
LEDs are particularly sensitive to reverse breakdown voltages. For that reason a protection diode will be used where a long line with voltage transients may drive an LED.

But in this case the two parallel zigzag arrows, representing photons from the LEDs to the phototransistor, show that it is a bi-directional coupler. One diode conducts on positive inputs, the other on negative. In this case each diode protects the other from reverse breakdown.
 
To continue Jony130s comment - the Diode in the output is sometimes called the Free Wheeling Diode - if the load (shown as a resistor) has any inductance, like a small relay coil, when the output transistor turns off - the inductor has current flowing that can not be instantaneously stopped (it has energy stored in it's magnetic field has to go somewhere). This diode allows the current to continue flowing (free wheel) until all of the energy is dissipated, this typically happens very quickly but without the diode the voltage generated at the at the transistor can cause it to fail.

Example - if the relay coil has 20mA of current, and 0.5mH Inductance, -- and using the switching time of 250nS for a 2N222 Transistor we use:

V = L * dI/dt = 0.25H * ( 20mA / 250nS) = 40V ..this does not sound like much and I just grabbed the numbers. does not include field wiring etc. and this is added to the DC voltage already in the circuit - so pretty easy to get 50 to 100 V across the transistor otherwise... it it typical good practice to place a diode across the coil itself as well - but this diode is to protect the Transistor - because not all electricians/technicians/engineers are perfect.

.
 
After reading through the data sheet, I'm disagreeing in part or whole with the suggestions.
While some opto-isolators have two LEDs such that one or the other will activate regardless of the applied polarity, there is no reference to this behavior in the datasheet.
With the open collector outputs, the diodes are not freewheeling as they don't connect to the positive power supply.
So, I believe all extra the diodes are a measure of protection against accidental miswiring. This fits well with the general intent that PLCs be tough, general purpose interfaces.
 
  • Like
Likes   Reactions: dlgoff
Mike_In_Plano said:
While some opto-isolators have two LEDs such that one or the other will activate regardless of the applied polarity, there is no reference to this behavior in the [PLC] datasheet.

hmmmm you know what ? you're right. That "bidirectional" was from Jony's isolator datasheet, not the PLC datasheet . my mistake.

Commendable attention to detail, Mike...

old jim
 
Last edited:
  • Like
Likes   Reactions: dlgoff
  • #10
Mike_In_Plano said:
After reading through the data sheet, I'm disagreeing in part or whole with the suggestions.
While some opto-isolators have two LEDs such that one or the other will activate regardless of the applied polarity, there is no reference to this behavior in the datasheet.
So how can you explain this ?
36.PNG
 
  • #11
Well what do you know. Good eye, Jony. That adds considerable weight to the notion they'll take current in either direction as valid input.

Someplace else they defined the switch points as 14 and 16 volts, nominal 15 with two volts hysteresis.
 
  • #12
On the output - I stand corrected - in this case this diode is not going to see Free Wheeling - seems to be primarily for reverse voltage protection on the Transistor ( Mis-wiring, or mis-operaion in the field wring, possibly V-spike in field wiring etc.) As shown the field circuit would not free wheel back though this diode.
 
  • #13
On the output - I stand corrected - in this case this diode is not going to see Free Wheeling - seems to be primarily for reverse voltage protection on the Transistor ( Mis-wiring, or mis-operaion in the field wring, possibly V-spike in field wiring etc.) As shown the field circuit would not free wheel back though this diode.
 
  • #14
Interesting deed - in the square just above where Jony found the source/sink note,
is a cryptic note about output:
max inductive load: 7.2W 24V
... Watts of inductance ?? Watt's up with that ?
That is just the 0.3 amps max ouput transistor current

next line says "output protection internal none"
a roundabout way of specifying that one must add his own protection for inductive loads

Sigh , one must be SOOOO very literal when reading computer specifications. They're always short on verbs , to my thinking..
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
Replies
6
Views
69K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
8K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 13 ·
Replies
13
Views
7K