AdvancedHMI Software
General Category => Support Questions => Topic started by: Charles 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,
-
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.
-
The labels did not return anything...
Oddly clicking the label opens a calculator?
-
Are you by any chance using a physical input for your address (e.g. I:0/0) ?
-
Yes.. I am using I:0/0 for the label and for a button.
I'm thinking that is not correct?
-
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
-
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"
-
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.
-
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...
-
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.
-
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,
-
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.
-
I have done that but I get a similar result..
I have attached some screenshots..
The basic Label says the same thing...
Any ideas?
-
What do you have in the PLCAddress properties of the buttons?
-
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...
-
Have you tried shutting down RSLinx when you are using AHMI?
The buttons show "Invalid SLC/Micro Address" which means that your addresses are not in correct format.
Your address shows as I0:0 and the format should be I:0/0 but as Archie mentioned, you can not control physical inputs through AHMI (you have to bypass them with B3:0/x bits in your rungs).
-
I0:0 is not a valid address. I am assuming you mean to use I:0/0
However you cannot use physical inputs for HMI buttons unless you intend to never put the PLC in run mode. If it is not put in run mode, then your ladder logic is irrelevant because it will never execute therefore never turn on outputs.
I recommend you watch the PLC Training videos on YouTube by Ron Beaufort. He does a very good job at explaining the PLC cycle and Input/ Output data tables.
The proper way is to use internal bits such as B3/0 and B3/1 for your buttons