+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Feb 2019
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Open collector output arduino with led with PLC inputs problem

    Hello

    Please, let me know if the diagram is correct. Arduino hands out a transistor which in turn drives the input in the PLC. The PLC responds to a short to ground. The question is, why, despite the lack of the signal from andurino in the PLC, the entry at random moments is violated?

    The LED is a need for optical control of the ardiuno output control. Transistor BC847.
    The input data is a momentary / monostable signal with ardiuno, and "PLC" basically represents the alarm panel input which implements the bistable mode and switches on / off specific outputs after violation of the input. The problem is that occasionally the PLC controls the output despite the absence of a violation with ardiuno (the LED is off and the PLC informs about violation of the IN input).

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 76,800, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,557
    Helped
    4188 / 4188
    Points
    76,800
    Level
    67

    Re: Open collector output arduino with led with PLC inputs problem

    Two potential issues:
    1. the 'low' level at the PLC input cannot go lower than VCEsat + diode Vf. A Schottky diode would be more appropriate than a 1N4005.
    2. if the PLC pulls up to +12 (as shown) it probably exceeds the PIV limit of the LED and could therefore perhaps not reach full 12V.

    You could consider moving the LED to the output of the Arduino instead of the collector of the transistor.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisment

        
       

  3. #3
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Feb 2019
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: Open collector output arduino with led with PLC inputs problem

    Quote Originally Posted by betwixt View Post
    Two potential issues:
    1. the 'low' level at the PLC input cannot go lower than VCEsat + diode Vf. A Schottky diode would be more appropriate than a 1N4005.
    2. if the PLC pulls up to +12 (as shown) it probably exceeds the PIV limit of the LED and could therefore perhaps not reach full 12V.

    You could consider moving the LED to the output of the Arduino instead of the collector of the transistor.

    Brian.

    Is inserting a rectifier diode in series with a led to solve the problem?



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 69,722, Level: 64
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,241
    Helped
    3254 / 3254
    Points
    69,722
    Level
    64

    Re: Open collector output arduino with led with PLC inputs problem

    Hi,

    The series diode will at least safe the LED.

    You say the PLC reports the violation.
    This means the PLC (and not the LED or the arduino) sees the wrong voltage.
    So the voltage may be
    * too low
    * too high
    * or somewhere between valid low and valid high value.

    A scope or a DVM could give clarification.

    And the documentation of the PLC ... when/why the PLC sees a violation.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  5. #5
    Newbie level 3
    Points: 29, Level: 1

    Join Date
    Feb 2019
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: Open collector output arduino with led with PLC inputs problem

    Quote Originally Posted by KlausST View Post
    Hi,

    The series diode will at least safe the LED.

    You say the PLC reports the violation.
    This means the PLC (and not the LED or the arduino) sees the wrong voltage.
    So the voltage may be
    * too low
    * too high
    * or somewhere between valid low and valid high value.

    A scope or a DVM could give clarification.

    And the documentation of the PLC ... when/why the PLC sees a violation.

    Klaus

    Inserting a rectifier diode in series with led solved the problem.
    I've been correcting the scheme, please let me know if I've chosen good LEDs

    Click image for larger version. 

Name:	arduino_plc2_v2.jpg 
Views:	5 
Size:	69.7 KB 
ID:	151238



    •   AltAdvertisment

        
       

  6. #6
    Super Moderator
    Points: 76,800, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,557
    Helped
    4188 / 4188
    Points
    76,800
    Level
    67

    Re: Open collector output arduino with led with PLC inputs problem

    Those parts should be OK but you can use a smaller Schottky diode if you like, it will only carry a few mA at most so a signal type rather than power rectifier could be used.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



--[[ ]]--