PLC Interfacing with PIC


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    2

    Default PLC Interfacing with PIC

    Hi all,

    This is my first post. Thanks in advance for helping me out.

    I am a user of both PLC (Ladder diagram) and PIC (PIC Basic PRO) using Keyence, IDEC PLC 24VDC and PIC16F877A. I am working on a machine process display project that monitors the process of a machine and displays the current process and errors using an LCD display. I plan to use PIC16F877A to monitor the inputs and outputs of my PLC, process the signals and display the current process at the LCD display.

    By doing that, I need to tap the 24VDC signals from PLC into PIC 5VDC. The problem is how can I convert 24VDC signal into 5VDC ? I am researching on optocouplers and zener diodes. Is there any simple and effective way of doing that? Any ideas are much appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109


    Did you find this post helpful? Yes | No

    Default

    You sound like your on the right track with the optos. I have made a few projects involving PLCs but I always interfaced to them using RS485 but I guess yours doesn't have that option.

    You shouldn't have a problem using optos to interface to the 24VDC but I don't think you need any diodes just the optos and some matching resisters but I could be wrong.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello skian85 and Welcome,
    The opto's are a good way, a perhaps simpler and cheaper way is to use a 78L05, regulator.They are in a TO92 package 3 wires.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hello skian85 and Welcome,
    The opto's are a good way, a perhaps simpler and cheaper way is to use a 78L05, regulator.They are in a TO92 package 3 wires.
    Hah! I would never have thought about using a 7805 for that purpose..... Nice!
    I will never forget this one, hehehe
    +-------------------------------------------------------------------+
    | PBP 2.47/2.50 | MCS+ 3.0.0.5 | U2 Prog | Vista x64 | NO SLEEP!!!!!!! |
    +-------------------------------------------------------------------+

  5. #5
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by locko View Post
    Hah! I would never have thought about using a 7805 for that purpose..... Nice!
    I will never forget this one, hehehe
    It's cute, but with a PLC, I would go with the opto isolators. PLC's often switch relays and other noisy things in noisy environments, so you are probably much better off making sure you get a clean signal to your PIC.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tenaja View Post
    It's cute, but with a PLC, I would go with the opto isolators. PLC's often switch relays and other noisy things in noisy environments, so you are probably much better off making sure you get a clean signal to your PIC.
    How would a 7805 be a problem? I would think it would actually clean the signal with a cap or two.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Interfacing DS1603 to PIC 16F877
    By hackableFM in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th February 2009, 21:37
  2. Interfacing two PIC micros
    By sajid in forum General
    Replies: 12
    Last Post: - 26th May 2007, 06:58
  3. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 07:59
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. PIC vs PLC (programmable logic controller)
    By pondindustrial in forum Off Topic
    Replies: 4
    Last Post: - 17th December 2004, 21:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts