General Category > Support Questions

Micrologix 1100 I/O addressing issues

(1/2) > >>

Swarfster:
I have installed Visual Studio 2015 Express and opened the AdvancedHMI V3.99a project successfully.

My aim is to build a HMI for training purposes and after adding the driver EthernetIPforSLCMicro1, a Momentary Button and Pilot Light and all is looking good.
The Ethernet connection is working fine, as the Ethernet port status LED's and COMM1 indicators are lighting up when I click on a Momentary Button.

The issue is the first output pilot light is correctly working on O:0/0 however the PLCAddress I:0/0 is not working for the first input button.
I also noticed that the Momemtary Button only has a PLCAddressClick value to be set, not a PLCAdressValue like the Pilot Light.

Am I missing something? or has anyone else experienced the same issue with this configuration?

Thanks for the great automation tool.

pal:
Hi Swarfster ,
I:0/0 is a physical wired connection from external input and cannot be written by an HMI . To get data from the HMI , you need to use either a binary or integer file . It is good practice to create a new file solely for comms from the HMI such as B20 and make the file larger than you need to allow future expansion . In this example you could set the length as 10 which would give you addresses B20:0/0 to B20: 9/15 . The same method could be used for data being read by the HMI . I.E. B21:0/0 to B21:9/15 . The advantage of having files specifically for comms to / from the HMI is that debugging and expansion / modifications to comms is so much easier if the comms are all in one place .
Paul

Swarfster:
Hi Paul, thank you for your speedy and helpful reply.
What started as a seemingly straight forward (seems so easy on the AdvancedHMI video) creation of a virtual HMI has rapidly exceeded my knowledge/experience.
I created the two new Data Files as you suggested.
Data Files>New
File: 20
Type: Binary
Name: B20 - HMI-IN
Elements:10
I repeated the process (B21 - HMI-OUT) and ended up with the ranges you suggested, however after checking out the manuals and online I am struggling with what to do next.
Would you be able to point me in the right direction please? I'm enjoying the learning experience as this is my first efforts at interfacing with a HMI.
Thanks again for your assistance, I look forward to your reply.
Neil

pal:
Hi Swarfster ,
You haven't mentioned which plc model or software you're using so what follows may be a bit vague .
Since you have got the pilot light working , you've overcome the comms set-up just fine . In your PLC program , change the output address from O:0/0 to B21:0/0 . Write a new rung and use an XIC instruction with address B20:0/0 and an output ( OTE ) with address O:0/1 .
In the HMI program , change the pilot light address from O:0/0 to B21:0/0 . Change the button click address to B20:0/0 . Build the Project and try . The physical output O:0/1 on the PLC should turn on when the button is pressed .

In the AdvancedHMI \Documents folder you should find a motor control pdf which Archie has included as another simple example of getting started with the HMI .
Paul

Swarfster:
Hi Paul,

I'm using an Allen Bradley Micrologix 1100 (8 digital inputs/2 analogue inputs/6 relay outputs) and expansion module with 8 digital inputs/6 relay outputs (1762-IQ80W6).
Your recommendations worked perfectly. Do I need the second file (B21 - HMI-OUT) at all since I'm using only physical outputs in the HMI program?
I have a simulation box (8 I/O) wired up to the PLC as well and it was good to see the HMI commands control the outputs on both the HMI and PLC. Only issue is since changing my PLC program to run with the HMI, the physical inputs no longer work (realise now that I must decide what inputs need for control, unless both are put in the program and use the HMI as a remote control)

Thanks again for your ongoing support, I'm enjoying exploring PLCs even more now.

Neil

Navigation

[0] Message Index

[#] Next page

Go to full version