Author Topic: Communicating with AB MicroLogix1000  (Read 4128 times)

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #15 on: July 18, 2020, 08:37:05 PM »
Hi Archie, as I double click the MainForm.vb. It opens up in vb codes, not in form. When I click the Start, the form  opens. But it is form only without any component.

Regarding, how I added panel meter etc. It was an old project, I developed it may be two years ago. I think when I initially developed the project, I added component to the MainForm from component box. Now as I open the old project, and click the MainForm.vb, it opens now only in vb codes. Otherwise, that old project works fine, without any change. I mean through HMI no issue, no issue in entering the cycle number etc.

Now I want to use the same project modifying little bit on the form side. That's all I intend to do.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Communicating with AB MicroLogix1000
« Reply #16 on: July 18, 2020, 08:54:33 PM »
Can you right click MainForm.vb in Solution Explorer and select View Designer?

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #17 on: July 18, 2020, 10:11:34 PM »
Hi Archie, I did that and the MainForm is now opened in Design value.  How do I access DF1 driver property from there? I right clicked Digital Panel meter and could see its property

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Communicating with AB MicroLogix1000
« Reply #18 on: July 18, 2020, 11:25:25 PM »
On the design view of the MainForm there will be a component tray at the bottom. Click once on the driver, then go to Properties Window

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #19 on: July 19, 2020, 11:01:26 AM »
Good Morning Archie! Thanks once again!

Here I attached the screenshot(property) for the driver from component tray of the form in design view. Do you see anything not right on the property?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Communicating with AB MicroLogix1000
« Reply #20 on: July 19, 2020, 12:25:14 PM »
Change EnableLogging to True, then run the application to get the error. Then look in the debug directory and post the log file that was generated

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #21 on: July 19, 2020, 01:24:51 PM »
Hi Archie,

Here it is, I think you are looking for,

Exception thrown: 'MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException' in MfgControl.AdvancedHMI.Drivers.dll
Exception thrown: 'MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException' in MfgControl.AdvancedHMI.Drivers.dll

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Communicating with AB MicroLogix1000
« Reply #22 on: July 19, 2020, 01:53:53 PM »
There will be a log file in the \debug directory

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #23 on: July 19, 2020, 02:08:48 PM »
You meant this Archie? Sorry if I am not getting it right:
12:22:59.2882005 Opening COM4: 20
12:22:59.3012005 Send   : 10 02 00 00 0F 00 60 40 A2 04 03 85 00 00 10 03 33 65
12:23:01.3112005 Send   : 10 02 00 00 0F 00 60 40 A2 04 03 85 00 00 10 03 33 65
12:23:04.3132005 Send   : 10 02 00 00 0F 00 60 40 A2 04 03 85 00 00 10 03 33 65
12:23:06.3182005 Send   : 10 02 00 00 0F 00 60 40 A2 04 03 85 00 00 10 03 33 65
12:23:09.5352005 Send   : 10 02 00 00 0F 00 61 40 A2 18 04 86 01 00 10 03 D8 ED
12:23:11.5432005 Send   : 10 02 00 00 0F 00 61 40 A2 18 04 86 01 00 10 03 D8 ED
12:23:14.5602005 Send   : 10 02 00 00 0F 00 61 40 A2 18 04 86 01 00 10 03 D8 ED
12:23:16.5642005 Send   : 10 02 00 00 0F 00 61 40 A2 18 04 86 01 00 10 03 D8 ED
12:23:19.7722005 Send   : 10 02 00 00 0F 00 62 40 A2 06 05 87 00 00 10 03 A2 5F
12:23:21.7782005 Send   : 10 02 00 00 0F 00 62 40 A2 06 05 87 00 00 10 03 A2 5F
12:23:24.7922005 Send   : 10 02 00 00 0F 00 62 40 A2 06 05 87 00 00 10 03 A2 5F
13:06:15.0471620 Opening COM4: 20
13:06:15.0571620 Send   : 10 02 00 00 0F 00 4D 40 A2 04 03 85 00 00 10 03 F2 34
13:06:17.0701620 Send   : 10 02 00 00 0F 00 4D 40 A2 04 03 85 00 00 10 03 F2 34
13:06:20.0821620 Send   : 10 02 00 00 0F 00 4D 40 A2 04 03 85 00 00 10 03 F2 34
13:06:22.0831620 Send   : 10 02 00 00 0F 00 4D 40 A2 04 03 85 00 00 10 03 F2 34
13:06:25.2851620 Send   : 10 02 00 00 0F 00 4E 40 A2 18 04 86 01 00 10 03 00 DC
13:06:27.2861620 Send   : 10 02 00 00 0F 00 4E 40 A2 18 04 86 01 00 10 03 00 DC
13:06:30.2881620 Send   : 10 02 00 00 0F 00 4E 40 A2 18 04 86 01 00 10 03 00 DC
13:06:32.2971620 Send   : 10 02 00 00 0F 00 4E 40 A2 18 04 86 01 00 10 03 00 DC
13:06:35.5031620 Send   : 10 02 00 00 0F 00 4F 40 A2 06 05 87 00 00 10 03 63 0E
13:06:37.5121620 Send   : 10 02 00 00 0F 00 4F 40 A2 06 05 87 00 00 10 03 63 0E
13:06:40.5161620 Send   : 10 02 00 00 0F 00 4F 40 A2 06 05 87 00 00 10 03 63 0E

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Communicating with AB MicroLogix1000
« Reply #24 on: July 19, 2020, 02:30:45 PM »
Yes, but I do not see any write command. All of them are A2 which means it did not attempt to write anything. The write is an AA value.

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #25 on: July 19, 2020, 03:06:04 PM »
Jaguar, can you zip up your whole solution and share it on the dropbox?


Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #26 on: July 19, 2020, 05:34:29 PM »
Hi Archie, here are log. I attempted to write and got "Failed to write value. No response from PLC during write." message. But don't see any A4 value.

6:18:18.6747480 Send   : 10 02 00 00 0F 00 47 40 A2 04 03 85 00 00 10 03 8C 94
16:18:20.7108158 Send   : 10 02 00 00 0F 00 47 40 A2 04 03 85 00 00 10 03 8C 94
16:18:23.7009111 Send   : 10 02 00 00 0F 00 47 40 A2 04 03 85 00 00 10 03 8C 94
16:18:25.7029748 Send   : 10 02 00 00 0F 00 47 40 A2 04 03 85 00 00 10 03 8C 94
16:18:28.9250758 Send   : 10 02 00 00 0F 00 48 40 A2 18 04 86 01 00 10 03 2B 7C
16:18:30.9361383 Send   : 10 02 00 00 0F 00 48 40 A2 18 04 86 01 00 10 03 2B 7C
16:18:33.9392335 Send   : 10 02 00 00 0F 00 48 40 A2 18 04 86 01 00 10 03 2B 7C
16:18:35.9332978 Send   : 10 02 00 00 0F 00 48 40 A2 18 04 86 01 00 10 03 2B 7C
16:18:39.1583970 Send   : 10 02 00 00 0F 00 49 40 A2 06 05 87 00 00 10 03 48 AE
16:18:41.1594578 Send   : 10 02 00 00 0F 00 49 40 A2 06 05 87 00 00 10 03 48 AE
16:18:44.1675528 Send   : 10 02 00 00 0F 00 49 40 A2 06 05 87 00 00 10 03 48 AE
16:18:46.1716167 Send   : 10 02 00 00 0F 00 49 40 A2 06 05 87 00 00 10 03 48 AE
16:18:49.3787148 Send   : 10 02 00 00 0F 00 4A 40 A2 04 03 85 00 00 10 03 D4 04
16:18:51.3827787 Send   : 10 02 00 00 0F 00 4A 40 A2 04 03 85 00 00 10 03 D4 04
16:18:54.3918738 Send   : 10 02 00 00 0F 00 4A 40 A2 04 03 85 00 00 10 03 D4 04
16:18:56.3949376 Send   : 10 02 00 00 0F 00 4A 40 A2 04 03 85 00 00 10 03 D4 04
16:18:59.6030379 Send   : 10 02 00 00 0F 00 4B 40 A2 18 04 86 01 00 10 03 3F 8C
16:19:24.6547864 Opening COM4: 20
16:19:24.6647866 Send   : 10 02 00 00 0F 00 2E 40 A2 04 03 85 00 00 10 03 4E C6
16:19:26.6668308 Send   : 10 02 00 00 0F 00 2E 40 A2 04 03 85 00 00 10 03 4E C6
16:19:29.6798937 Send   : 10 02 00 00 0F 00 2E 40 A2 04 03 85 00 00 10 03 4E C6
16:19:31.6839381 Send   : 10 02 00 00 0F 00 2E 40 A2 04 03 85 00 00 10 03 4E C6
16:19:34.8760133 Send   : 10 02 00 00 0F 00 2F 40 A2 18 04 86 01 00 10 03 A5 4E
16:19:36.8890594 Send   : 10 02 00 00 0F 00 2F 40 A2 18 04 86 01 00 10 03 A5 4E
16:19:39.9151284 Send   : 10 02 00 00 0F 00 2F 40 A2 18 04 86 01 00 10 03 A5 4E
16:19:41.9151740 Send   : 10 02 00 00 0F 00 2F 40 A2 18 04 86 01 00 10 03 A5 4E
16:19:45.1182463 Send   : 10 02 00 00 0F 00 30 40 A2 06 05 87 00 00 10 03 47 3C
16:19:47.1212922 Send   : 10 02 00 00 0F 00 30 40 A2 06 05 87 00 00 10 03 47 3C
16:19:50.1253606 Send   : 10 02 00 00 0F 00 30 40 A2 06 05 87 00 00 10 03 47 3C
16:19:52.1284025 Send   : 10 02 00 00 0F 00 30 40 A2 06 05 87 00 00 10 03 47 3C
16:19:55.3444737 Send   : 10 02 00 00 0F 00 31 40 A2 04 03 85 00 00 10 03 C2 F6
16:19:57.3495150 Send   : 10 02 00 00 0F 00 31 40 A2 04 03 85 00 00 10 03 C2 F6

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #27 on: July 19, 2020, 05:35:30 PM »
@Godra, you meant Google Share drive?

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #28 on: July 19, 2020, 09:34:00 PM »
Google Share Drive should work as well.

Jaguar

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Communicating with AB MicroLogix1000
« Reply #29 on: July 20, 2020, 05:07:54 PM »
Hi @Archie & @Godra, just to let you know, I built a new HMI project, which is working fine no issue. Discarded the old one (could not figure out what was the exact issue).

Anyway, thank you VERY MUCH to both of you! I know how busy you both are, but still took time to respond to my post, even on weekend!

Thanks one again!!