Author Topic: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)  (Read 4001 times)

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Archie,

Here is the highest value for the driver CIPConnectionSize property that worked for me: 508

I also tried using the BasicLabel property to show current PLC address value on the KeypadPopUp and it is still reversed for T4:0.PRE and T4:0.ACC while N7:0 works fine (check the attached pictures). The label itself reads the values properly.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #1 on: May 31, 2015, 07:35:37 PM »
I'm going to make that 508 the default size. I was looking for the reason behind the reversed items, but could not find it. I will try to find it again.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #2 on: May 31, 2015, 08:06:28 PM »
Try this:

- Open AllenBradleySLCMicro.vb
- Go to line 1780
- Change to this:

 ProtectedTypeLogicalRead(Convert.ToByte(NumberOfBytesToRead), Convert.ToByte(PAddress.FileNumber), Convert.ToByte(PAddress.FileType), _
                                Convert.ToByte(PAddress.Element), Convert.ToByte(0), TNS)
« Last Edit: May 31, 2015, 08:47:14 PM by Archie »

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #3 on: May 31, 2015, 08:26:52 PM »
Now it works fine. Good catch.

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #4 on: May 31, 2015, 08:52:01 PM »
Another question for you:

When I attempt to Write any value I get the attached error.
Is it supposed to be like this or should it actually write the value to the address?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #5 on: May 31, 2015, 09:05:58 PM »
I tried this in a couple different ways, but haven't been able to reproduce it.

Are you just putting N7:2 in the PLCAddressKeypad property of the BasicLabel?

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #6 on: May 31, 2015, 09:32:27 PM »
That is correct.

I also tried using T4:0.PRE and N7:4 and the error was the same.

RSLogix when ONLINE (Remote Run) does allow to change values.

Could it be ML1000 coupled with ENI that kind of behaves in somewhat different way (I did previously change DF1 baud rate from 19200 to 38400 - check the attached picture)?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #7 on: May 31, 2015, 09:44:32 PM »
I only have a ML1100 to test with. I tried T4:0.PRE, T4:0.ACC, N7:0, and N7:2. They all worked on my PLC.

Did you try the DF1Com driver connected directly to the controller?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #8 on: May 31, 2015, 09:46:16 PM »
Something else to try:

In Visual Studio, got to Debug->Exceptions
Add the check to the box for Common Language Runtime
When you run the application, it should take you to the code that throws the exception

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #9 on: May 31, 2015, 10:15:58 PM »
The same exception shows for either Ethernet or DF1Comm connection (check the attached picture).

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #10 on: May 31, 2015, 10:24:45 PM »
This ML1000 PLC that I have is used for learning only, so there is no rush for me to have a working driver.
« Last Edit: June 02, 2015, 07:44:15 PM by Godra »

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #11 on: May 31, 2015, 10:36:36 PM »
Just tried using KeypadHMI control with older AHMI, version 3.97c, and it was writing values to T4:0.PRE and N7:4 of ML1000.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #12 on: June 01, 2015, 02:16:49 AM »
When it stops at that exception, hover over ProcessorType, FunctionNumber, FilePosition, l, and i to see what the values are. I am thinking that maybe it is interpreting the PLC and a PLC5 type. 

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #13 on: June 01, 2015, 11:04:38 PM »
ProcessorType: 132
FunctionNumber: 0
FilePosition: 0
i: 0
l: 9

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: 3.98k and MicroLogix 1000 behind ENI (EthernetIPforPLCSLCMicroCom)
« Reply #14 on: June 01, 2015, 11:43:44 PM »
It's doing what I thought. Try this on line 2139:

            If False And MfgControl.AdvancedHMI.Drivers.PCCCAddress.IsPLC5(ProcessorType) Then