Experiment No2 HMI
Experiment No2 HMI
Fourth Year
Experiment no.2
Prepared by:
Dr Mofeed T. Rashid
Dr Auday Basheer
Dr Ammar A. Aldair
Introduction
There many ways for interfacing between HMI and PLC in order to control the operation of PLC
concerning input, monitoring output, and tuning parameters, therefore in this experiment, we will start
to use some of these methods that used for input and monitoring output as follows:
1. Bit Lamp:
Bit lamp is used to display the ON/OFF state of the relevant PLC bit address. Its default
Shape is lamp shape, but it can be assigned any shape from the programming
environment library or new created shapes.
Example: Design HMI interface screen to enable the operator to on/off and monitor
star/delta starter. Also attach the relevant PLC ladder program.
Bit switch
Word switch is used to modify the content of 16 bit or 32-bit size PLC memory address.
As 16-bit switch, it can support Signed and Unsigned DEC PLC data types, and as 32-bit
size supports Signed DEC, Unsigned DEC and Float PLC data types. It can take any shape
from the programming environment shape's libraries or assigned new shape according
to the designer understanding. The -operation margin of this~ switch extends to four
mode of operations. These are Set mode, ADD, SUB, Digit ADD, Digit SUB, and Script.
Set mode:
Pressing the word switch under this configuration writes the direct or indirect set value
in the PLC relevant address. With direct set value (constant), it preserves that value
whether the switch is still pressed or not. With indirect one (content of another device),
the relevant PLC address receives that of another at the pressing instance.
Example: In ice cream filling machine, the quantity of drawn ice cream
depends upon the tune interval, the outlet solenoid valve is activated. Assume
there are three cone sizes, design PLC ladder program and HMI interface
screen to enable the operator to select the proper filling utility.
Solution:
Device Caption Type Set value Address Display
Fill-Solenoid (out) Bit lamp QX0.0.0 Visible
Family size Word switch 400 MW4 Image
medium size Word switch 200 MW4 Image
Small size Word switch 100 MW4 Image
Bit switch
Fill MW1.0 Transparent
(Momentary)
(a) Device Characteristics
1) Draw three Ice cream images with different sizes by paint as shown in figure
4) Above each Word switch, draw Bit switch make its parameter as in table (a), and then make the
display is transparent (for both on state and off state) as shown in figure below
Exercises:
Q1: Design logic circuit by HMI and PLC for testing the function of XOR.
A B
Fill Cup