Cannot connect to PLC5

Help
Bryan
2013-04-03
2013-05-30
  • Bryan
    Bryan
    2013-04-03

    Hi,

    Great work on Advanced HMI!

    I have connected to all our control logix processors however I cannot connect to the PLC5's through ethernet. The processors are a type 1785-L40E and a 1785-L20E. The processor type in AllenBradleyPCCC.vb for each processor is 132 and 160 at line 440 in the vb code. Can these drivers be added to the drvers in the support folder?

    Thanks,
    Bryan

     
  • Archie
    Archie
    2013-04-03

    The processor type 132 (&H84) should already be in there. If not try this driver patch:

    http://www.advancedhmi.com/driverpatchforV326.zip

    Unzip the files and replace the DLLs in the support folder with these

     
  • Bryan
    Bryan
    2013-04-04

    Now the PLC 1785-L20E works great, but the 1785-L40E still does not work. The 1785-L40E processor is one of the new ones so it has an ethernet plug built into it meaning you do not have to use the black box. Not sure if that matters, but figured I would let you know. When I run the code the data for that particular PLC remains zero no matter what address I point to and it gives no error of not communicating. Do you know what may be the problem?

    Thanks,
    Bryan

    Thanks,
    Bryan

     
  • Archie
    Archie
    2013-04-04

    The code 160 (&HA0) is not recognized in the data link layer as a PLC5. There is a quick work around. In AllenBradleyPCCC.vb at line 450, insert this line of code:

                    m_ProcessorType = DataPackets(TNSLowerByte)(13)
                    If m_ProcessorType = &HA0 Then m_ProcessorType = &H84
                    Return ProcessorType

     
  • Bryan
    Bryan
    2013-04-04

    That fixed it.

    Thanks,
    Bryan