AdvancedHMI Software

General Category => Open Discussion => Topic started by: jmuscat on January 26, 2021, 09:08:07 AM

Title: AHMI to AB micro 820 communication
Post by: jmuscat on January 26, 2021, 09:08:07 AM
Hi,
I am new to AHMI, I downloaded the software and added a button and a pilot light on the screen but these are showing ''no response from plc''.  Can you please tell me how to do the communication part, I've put in the plc ip address in the ''Ethernetipfor800'' properties but don't know from where to get the port no.
Another thing I am not sure about is from where to get the PLC address value of the button/pilot light.

Thanks
Title: Re: AHMI to AB micro 820 communication
Post by: Archie on January 26, 2021, 09:55:39 AM
What tags do you have in your controller scope of the PLC program? Those are the tag names to use in PLCAddress??? properties

Have you tried to ping the IP address to make sure the PC can access the PLC?
Title: Re: AHMI to AB micro 820 communication
Post by: jmuscat on January 26, 2021, 11:59:14 AM
Hello Archie,

The tags I used are the names of the inputs/outputs on the plc program ex._IO_EM_DO_01, is that ok?

Regarding communication the pc is seeing the plc..From where can I get the port no pls?

Thanks
Title: Re: AHMI to AB micro 820 communication
Post by: dmroeder on January 26, 2021, 06:19:39 PM
One thought, make sure that your form objects (button, pilot light, etc) has the your Micro800 driver assigned to the ComComponent property.  I've accidentally had more than one driver on my form and objects pointed to the wrong driver.
Title: Re: AHMI to AB micro 820 communication
Post by: jmuscat on January 28, 2021, 12:17:55 PM
Hi,

Can you help on the following please,
When I build the solution on the button and pilot light that I've created I see the following 'no response from plc 192.168.1.10 Slot=0'  Now I cannot see any SLOT window in the EthernetIPforMicro800Com properties. How can I set the slot and from where can I find the slot number.
Title: Re: AHMI to AB micro 820 communication
Post by: dmroeder on January 28, 2021, 12:56:30 PM
The Micro820 is only ever slot 0.  CompactLogix and Micro820/850 controllers are always slot 0.  Only ControlLogix can have a controller in a slot other than 0.

You get "no response from PLC" because the AHMI project cannot connect to the PLC.  This issue is likely at the network level.

Make sure you can ping the PLC successfully from your development computer.  Test run your application in Visual Studio.  One possible issue is if you have more than one network adapter that is on the same subnet, your project could be confused on which one to use.  For example, maybe you are connected to a wireless network that is 192.168.1.x and you have a wired network that is 192.168.1.x, you application could be trying to find the PLC on the wrong adapter. 
Title: Re: AHMI to AB micro 820 communication
Post by: Godra on January 28, 2021, 06:52:18 PM
jmuscat,

What software did you use previously to configure and communicate with your PLC?
Title: Re: AHMI to AB micro 820 communication
Post by: jmuscat on January 29, 2021, 12:13:31 AM
Hi Godra,

I use the CCW to connect to the plc.

@dmroeder how can I be sure that my project is trying to connect to the right adapter.

Thanks all for your help

Title: Re: AHMI to AB micro 820 communication
Post by: Godra on January 29, 2021, 12:44:45 AM
Check page 24 of this document:

   https://literature.rockwellautomation.com/idc/groups/literature/documents/qr/9328-qr001_-en-e.pdf

If your PLC is set for automatic DHCP then you have to look up the IP address on your router (or whatever you are using).

Do you know if you are using the correct IP address and what your Subnet Mask and Gateway are?
Title: Re: AHMI to AB micro 820 communication
Post by: dmroeder on January 29, 2021, 12:48:19 AM
Hi Godra,

I use the CCW to connect to the plc.

@dmroeder how can I be sure that my project is trying to connect to the right adapter.

Thanks all for your help

The scenario I described would only apply if you had more than one network adapter was configured for the same subnet.  The best way to know if there is "adapter confusion" is to understand how your adapters are configured.  Or you could disable all adapters that you are not using to communicate to your PLC.

Please answer the following:
Title: Re: AHMI to AB micro 820 communication
Post by: jmuscat on January 29, 2021, 08:52:53 AM
Dmroeder,
My pc ip is 192.168.1.1 , the plc is responding when I ping from command promp, not sure what is the reply as I dont have the pc next to me,  and yes that's my plc address.
I dont know from where to get the port number....maybe thats the problem..
Title: Re: AHMI to AB micro 820 communication
Post by: Archie on January 29, 2021, 09:13:19 AM
I dont know from where to get the port number....maybe thats the problem..
Did you already change the port number from default? It's always 44818 for Ethernet/IP unless you are running through some kind of router.
Title: Re: AHMI to AB micro 820 communication
Post by: Godra on January 29, 2021, 04:45:20 PM
And just in case if you are wondering what Archie is talking about, attached is the picture of the EthernetIPforMicro800Com driver's properties window.
Title: Re: AHMI to AB micro 820 communication
Post by: spiceagent11 on February 21, 2022, 09:41:48 PM
Hi, I have a question What software did you use previously to configure and communicate with your PLC?
Title: Re: AHMI to AB micro 820 communication
Post by: bachphi on February 22, 2022, 11:49:12 AM
These one-posters are so dubious. Anyway CCW  Connected Components Workbench