Author Topic: MicroLogix 1100 over ethernet  (Read 5097 times)

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
MicroLogix 1100 over ethernet
« on: May 30, 2016, 09:04:25 PM »
Hello...
I have something going on but I am not sure what I am doing wrong...
I have my Advanced HMI running connected to ML1100 via Ethernet.
When I press the button control in the HMI it works... I can see it change on the rung but only in program mode.
When I move the program to RUN it does not work anymore and in both modes I do not see anything change on the PLC under I/O status.
It is a PLC trainer my company has not sure if that matters.
Let me know if you need more information to help me and I will gladly provide it..
Thanks,

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #1 on: May 30, 2016, 10:08:17 PM »
Generally speaking, you should always try to provide as many details of your setup as possible (including pictures).

The simplest test you can always perform is to place several BasicLabel controls on the form and associate their PLCAddressValue and PLCAddressKeypad fields with the same address in PLC (possibly the range B3 or N7 not used by the loaded program). If you can read the values then you can try to write values to these locations as well - this would show that AHMI is properly communicating with the PLC.

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #2 on: May 30, 2016, 10:18:31 PM »
The labels did not return anything...
Oddly clicking the label opens a calculator?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MicroLogix 1100 over ethernet
« Reply #3 on: May 30, 2016, 10:22:00 PM »
Are you by any chance using a physical input for your address (e.g. I:0/0) ?

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #4 on: May 30, 2016, 10:55:26 PM »
Yes.. I am using I:0/0 for the label and for a button.
I'm thinking that is not correct?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MicroLogix 1100 over ethernet
« Reply #5 on: May 30, 2016, 11:24:21 PM »
You cannot use a physical address. Once the PLC is put in run mode and starts scanning the IO, it will immediately overwrite the value set by the HMI based on the status of the physical input. You need to use something like B3/0

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #6 on: May 31, 2016, 12:13:12 AM »
You where right... Now it seems to be connecting but it is giving "Invalid IP address"
I will do some more looking.. I am using the IP that is on the PLC under "Eth. Config"

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #7 on: May 31, 2016, 08:48:03 AM »
MicroLogix LCD display, once placed in the Run mode, should show the IP address (press Esc button, scroll down to Advance Set and check ENET Cfg).

RSLinx / RSLogix programs could also help you determine the correct IP address.

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #8 on: May 31, 2016, 11:45:08 AM »
Thats how it is set up...

On PLC when running 169.254.1.7
In the program 169.254.1.7
In RSLinx 169.254.1.7

To get the PLC to work per the instructions I was following for ethernet my actual IP is 169.254.136.225 but
in the BOOTP/DHCP Server I needed to set it to 169.254.1.7. The PLC works with the RSMicro no problem with these settings.

Thanks again...

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MicroLogix 1100 over ethernet
« Reply #9 on: May 31, 2016, 12:19:10 PM »
PC: 169.254.136.225
PLC: 169.254.1.7

Is your subnet mask 255.255.0.0 ?

If you open a command prompt and "ping 169.254.1.7" , does it return ping results?

Also in the command prompt do a "ipconfig" just to verify the settings of your PC.

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #10 on: May 31, 2016, 01:17:39 PM »
Ping worked great on 169.254.1.7...

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connection
   Physical Address. . . . . . . . . : D0-67-E5-35-DE-B1
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Autoconfiguration IPv4 Address. . : 169.254.136.225(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   NetBIOS over Tcpip. . . . . . . . : Enabled


Would the RSLinx driver "Windows Default" vs. "Ethernet 169.254.136.225" matter.. I tried both with no change.

I added a pic of my AHMI Settings..
Anything else I could provide to make helping me easier for you?
Thanks,

« Last Edit: May 31, 2016, 01:22:46 PM by Charles »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MicroLogix 1100 over ethernet
« Reply #11 on: May 31, 2016, 01:27:58 PM »
It looks like you have quite an old version of AdvancedHMI (showing 3.8.4). The latest version is 3.99f

I also see you have a PollRateOverride of 0. The latest version is much more stable when trying to refresh at maximum rate (typically 10ms with a ML1100)

Also if updating to version 3.99f, you will need to update to Visual Studio 2013 or 2015 Community Edition.

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #12 on: May 31, 2016, 03:35:12 PM »
I  have done that but I get a similar result..
I have attached some screenshots..
The basic Label says the same thing...
Any ideas?
« Last Edit: May 31, 2016, 03:37:51 PM by Charles »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MicroLogix 1100 over ethernet
« Reply #13 on: May 31, 2016, 03:47:54 PM »
What do you have in the PLCAddress properties of the buttons?

Charles

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: MicroLogix 1100 over ethernet
« Reply #14 on: May 31, 2016, 03:58:05 PM »
Ok I have an update after fiddling around with it...
When the address is O0/0 per your previous comment it does not work...
When I switch to O0:0 the timer,label to get data from the plc.. the label says 32 and 33 when light is on and off
It only seems one way getting info from plc the start stop buttons do not change the rungs in RUN mode...
I have attached some pics you asked about...
Thanks for you patience on this...