PIC & Profibus DP


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I assume you are programming the PLC?

    Say you have four inputs... at Power-ON the PIC sets a combination, the PLC looks at this combination, checks it is valid, pulses an I/O to the PIC which then changes the combination, the PLC checks this is also valid, pulses the PIC which now sets a third combination. Finally the PLC verifies this and moves on. If this third combination (which thereafter remains constant) changes, the PLC shuts down. The only way to restart is to Power-On again. So the PIC and PLC exchange three sets of Data at Power-On which have to be valid (you can do this with TWO I/O's and a 'pseudo' Serial chain between the PIC and the PLC).

    If the PIC times-out (ie they've not paid their bill), all you do is change the data interchange to something that the PLC will find invalid in the first or second verification.

    Another (single I/O) way is to have the PIC perform HPWM Output... say to output a nominal voltage of 4v. The PLC looks to check that the voltage is in the range 3.75-4.25v. If it is outside this range, it can shut-down. All your PIC needs to do is to alter this voltage outside the 'good' band in ordder to shut-down the PLC. To prevent a techie simulating this voltage, at Power-Up, make it go 5v, 0v, 4v in a predetermined time period which the PLC will look for and do a different combination if they've not paid their bill.

  2. #2
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Talking Great, great, great

    You really are something Melanie, you just put it so simply. I think I will use the analog method.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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