Revision:
Version 2:
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 1 of 122
Table of Contents
TABLE OF CONTENTS .................................................................................................................2
CHAPTER 1, HOW TO GET STARTED..........................................................................................5
STEP 1: HOW TO START THE PROGRAMMING TOOL ON THE PC ...........................................................5
STEP 2: HOW TO START A NEW PROJECT .........................................................................................6
STEP 3: HOW START PROGRAMMING ...............................................................................................8
STEP 4: CONVERT THE PROGRAM ...................................................................................................8
STEP 5: STOP THE PLC.................................................................................................................9
STEP 6: UP LOADING THE PROGRAM TO THE PLC........................................................................... 10
STEP 7: SWITCH THE PLC TO RUN MODE ..................................................................................... 12
STEP 8: MONITOR THE PLC ......................................................................................................... 12
CHAPTER 2, STAGES IN DEVELOPING A PLC SYSTEM .......................................................... 13
CHAPTER 3, SOME OF THE MAIN SECTIONS OF THE PLC DEVELOPER SCREEN................ 14
LADDER FUNCTION KEYS: ............................................................................................................ 14
TOGGLE BETWEEN LADDER LOGIC AND LIST OF INSTRUCTIONS ........................................................ 15
READ AND WRITE MODE ............................................................................................................... 16
MONITORING .............................................................................................................................. 16
PROJECT DATA LIST .................................................................................................................... 17
DOCUMENTATION, COMMENTS, STATEMENTS AND NOTES ............................................................... 18
PLC STATUS DIAGNOSTIC ........................................................................................................... 20
CHAPTER 4, DOWN LOAD FROM THE PLC............................................................................... 21
CHAPTER 5, GX DEVELOPER SUB SCREENS .......................................................................... 22
PROJECT SUBMENU .................................................................................................................... 22
EDIT SUBMENU ........................................................................................................................... 23
FIND/REPLACE SUBMENU ............................................................................................................ 23
CONVERT SUBMENU .................................................................................................................... 24
VIEW SUBMENU .......................................................................................................................... 24
ONLINE SUBMENU ....................................................................................................................... 24
DIAGNOSTICS SUBMENU .............................................................................................................. 25
TOOLS SUBMENU ........................................................................................................................ 25
CHAPTER 6, GET STARTED AT SOME PROGRAMMING SAMPLES ....................................... 26
DONT FORGET THE FOLLOWING.................................................................................................... 26
MODULE 1, ON/OFF INPUT AND OUTPUT ....................................................................................... 27
MODULE 2, IN SERIES INPUT AND OUTPUT (AND) .......................................................................... 28
MODULE 3, IN PARALLEL INPUT AND OUTPUT (OR)......................................................................... 28
MODULE 4, UNIVERSAL STARTING HANDLE .................................................................................... 30
MODULE 5, INTERLOCKS .............................................................................................................. 31
MODULE 6, INTERNAL FLAGS ........................................................................................................ 32
MODULE 7, SET/RESET AND PULSE.......................................................................................... 33
MODULE 8, TIMERS ..................................................................................................................... 34
Operation of delay ON timer .................................................................................................. 35
Operation of delay OFF timer ................................................................................................ 35
MODULE 9, COUNTERS ................................................................................................................ 36
MODULE 10, INTERLOCKS II THE EXCLUSIVE OR ......................................................................... 37
MODULE 11, MULTIPLE BRANCH OUTPUTS ..................................................................................... 38
MODULE 12, SPECIAL RELAYS...................................................................................................... 39
M8013, 1 second clock pulse................................................................................................. 39
M8014, 1 minute clock pulse ................................................................................................. 39
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 2 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 3 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 4 of 122
A pop up menu should have been displayed as shown above. Now select the
program icon from the popped up menu.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 5 of 122
Direct the mouse pointer down to the MELSOFT Application icon, continuing on to
the GX Developer, where you click the mouse left button while hovering over the
GX Developer icon. A screen similar to the diagram below will be loaded.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 6 of 122
When the New Project Icon is selected you will be asked to select the PLC to
which the software is connected. The room K044 the PC is connected to the
FXO(S) PLC so this option should be chosen. Make sure Ladder is chosen under
the program type area.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 7 of 122
Ladder Logic
Step 4: Convert the program
Once the ladder logic is constructed it needs to be converted. When the code is
converted the ladder rung numbers appear automatically. If there are any ladder
construction faults in the code the software will give a warning at this time. Note
however that the ladder logic may be wrong but its construction may be correct
and thus no errors appear. If the converting is not completed when changing from
this screen the last converted ladder logic will be reloaded and all new changes will
be lost.
Convert
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 8 of 122
Input Terminals
Input LED
Indicators
The Switch
for Run/Stop
Output LED
Indicators
Output Terminals
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 9 of 122
When the Write to PLC is clicked you should see the dialogue box as shown
below.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 10 of 122
Before you click Execute make sure all the boxes are checked (or use Select All).
As you become expert and aware of the software limitations you can select only
the items you wish to change.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 11 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 12 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 13 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 14 of 122
The diagram below shows the instruction list for ladder logic.
List of instructions
and not Ladder Logic
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 15 of 122
Page 16 of 122
Program
This is where the ladder logic stored. The main program to run is usually
called main and any other subroutines would be given relevant names.
Device Comment
At the beginning of the projects design it is usual practice to complete a list
of the inputs and outputs that
are going to be required on the
project. The operator can then
type in at this location at the
start and avoid having to insert
them directly into the ladder
logic which can be time
consuming.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 17 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 18 of 122
In the screen shot below the green text in the ladder logic is the statement entered
so an understanding of why the code was constructed and some of its dangers or
benefits could also be included.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 19 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 20 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 21 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 22 of 122
Edit Submenu
Find/Replace Submenu
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 23 of 122
Convert Submenu
View Submenu
Online Submenu
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 24 of 122
Diagnostics Submenu
Tools Submenu
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 25 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 26 of 122
Y001
Switch
1
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Ground
Page 27 of 122
Y001
Ground
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 28 of 122
The first PLC program is stated below with a ladder logic and electrical equivalent.
This has three input switches X001, X002 and X003 wired in parallel and one
output switch Y001. Note only one of the three switches needs to be closed if the
system is to work.
X001
Y001
X002
X003
Switch 1
Switch 2
Ground
Switch 3
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 29 of 122
Y001
X002
Y001
Switch
1
Switch
2
Ground
Relay
Relay
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 30 of 122
Module 5, Interlocks
On some occasions it is necessary to provide a link between two processes in
order that they are related in some say, this is call Interlock. In the example below
you can see the first rung of the ladder. X001 closes and assuming activity Y002 is
not activated then the contact Y002 stays normally closed and Y001 is activated.
When this happens the normally closed contact Y001 in the second rung of the
ladder opens ensuring Y002 does not start at the same time. (Remember a rung
on a ladder diagram moves from the left vertical rail to the right vertical rail and not
the branches that dont make it fully across)
The same can be said for the second ladder rung. X002 closes and assuming
activity Y001 is not activated then the contact Y001 stays normally closed and
Y002 is activated. When this happens the normally closed contact Y002 in the first
rung of the ladder opens ensuring Y001 does not start at the same time.
X001
Y002
Y001
Y001
Y002
Y001
X002
Y002
Switch1
Relay 2
Ground
Relay 1
Relay 1
Switch 2
Relay 1
Ground
Relay 2
Relay 2
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 31 of 122
X001
M1
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
M1
Y001
Page 32 of 122
X001
SET Y005
X002
PLS M1
M1
RST Y005
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 33 of 122
Module 8, Timers
A PLC must be able to control systems which have a time component in their
operation. For example a traffic light system or even a duty/stand-by cycle
changer. Time is a major aspect of control systems and the following text should
be covered.
The FX0(S) has 56 timers which have the identification code of T0 to T55. All the
timers function with 100msec clock pulses, but timers T32 to T55 can also be set
to 10msec pulses. The longest period which can be pre-set to is:
K32767 X100Msec =3276.7 seconds = 54 minutes, 36 seconds.
The timer number Txx where xx is the timers no. and the timer duration Kxx where
xx is the number of pulses.
X001
T1 K120
In the example above Timer No.1 has a pre set value of K120. One clock pulse K
is equal to 100msec so 120 x 100msec is equal to 12000msec which is equal to 12
seconds.
A timer falls in to two categories.
1.
Delay ON timer
2.
Delay OFF timer
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 34 of 122
X001
T1 K120
T1
Y1
X001
T1 K120
T1
Y1
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 35 of 122
Module 9, Counters
A powerful feature of PLCs is there ability to count. In simple terms it is a pulse
counter.
The construction of the counter system has a similar format to that of the timers,
however, the K value is not multiplied by anything (i.e. the K for timers means
multiply by 10ms or 100ms depending on the system being used).
The Counter Identifier identifies the counter chosen. This can be assigned to
device comment in the same way as the inputs, timers, outputs and internal flags.
In this example C12 is used. The second number is the quantity of pulses before
the C12 counter activates. In this case K7 is shown meaning that after 7 pluses the
counter C12 will be activated.
The memory storage of the value in the counter is retentive (i.e. it retains the value
until reset or the PLC is switched into the stop mode.
Counter Identifier
C12 K7
Quantity before activation
In the ladder logic shown below the button X006 is used to pulse the C12 timer.
After 7 pulses the C12 timer will switch to the activate state. The only way to
deactivate this timer is to reset the C12 timer using the RST C12 instruction. You
can see that this reset instruction is connected to the X007 switch. An important
note to keep in mind is that if during counting the X007 is pressed it will reset the
C12 counter erasing what number was being stored at the time.
X007
RST C12
X006
C12 K7
C12
Y3
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 36 of 122
X007
X004
Y000
X004
X007
Y001
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 37 of 122
X007
Y000
Y001
Y002
Y003
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 38 of 122
1
0
0s
0.5s
1.0s
1.5s
2.0s
Time->
1
0
0s
30s
60s
90s
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
120s
Time->
Page 39 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 40 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 41 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 42 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 43 of 122
You have been asked to develop a specification for Operator Hand Pads that allow
the operator of a 100-ton press close the die tool only when both his hands are
free from the tool. Use an I/O list, sketch the ladder logic and written description.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 44 of 122
You have been asked to develop a specification for Operator Hand Pads that allow
the operator of a 100-ton press close the die tool only when both his hands are
free from the tool. The press on your instructions is now fitted with an emergency
stop and safety guard which need to be taken into consideration. Use an I/O list,
sketch the ladder logic and written description. (Should the emergency stop be
hardwired or soft wired?)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 45 of 122
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 46 of 122
Label Stamping
cylinder
Product
Optical Sensor No 1
Optical Sensor No 2
Conveyor
Conveyor
Drive Motor
Use an I/O list, sketch the ladder logic and written description.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 47 of 122
Conveyor
Conveyor
Drive Motor
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 48 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 49 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 50 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 51 of 122
Y003
Y004
Y005
Specification
Red is on for 10 seconds, Amber is on for 5 seconds and Green is on for 15
seconds and then the cycle starts again.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 52 of 122
Y003
Y004
Y005
Specification
Red is on for 10 seconds, Amber on for 5 seconds and Green is on for 15 seconds
and then the cycle starts again.
When a push button is pressed the sequence changes to Blue on for 12 seconds,
Amber and Green is on for 15 seconds and then the cycle starts again and after
one cycle the lights revert back to the original operation.
FX PLC
Relay
From
Y1
Relay
From
Y2
Relay
From
Y3
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 53 of 122
McGrory
McGrory
Use an I/O list, sketch the ladder logic and written description.
Conveyor
Conveyor
Drive Motor
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 54 of 122
Use an I/O list, sketch the ladder logic and written description.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 55 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 56 of 122
Tank 1
Pump 1
Tank 2
Pump 2
Tank 3
Pump 3
Product
Conveyor
Conveyor
Drive Motor
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 57 of 122
X001
X000
Mains
Address Data
X000 0
X001
Y000
Y000
24V
Switch wired
in from a 24V
supply
Relay
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 58 of 122
Input LEDs
Output LEDs
One way of overcoming this is by using the operator panel usually called any of the
three titles below.
HMI Human Machine Interface
MMI Man Machine Interface
OMI Operator Machine Interface
A digital image of the E200 HMI as used in the Laboratory is shown below.
Dont worry about all the different names as they all in essence mean the same
thing. The HMI is a component to assist the processing automation system that
allows the operator view the process and interact with it.
Some of the standard features of the HMI is as follows;
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 59 of 122
To design a good system its always a good idea to construct a storyboard from
which the system will be developed.
It is important to note at this point that the HMI and the PLC are both connected to
the one port at the back of the computer. It is therefore impossible to have the PLC
in monitoring mode and upload the E-Designer files at the same time. You will see
an error appear stating that the port is being used by another package.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 60 of 122
It would be advisable to set up a simple ladder logic code running on the PLC
before running the E-Designer Software.
In this case X007 the green button starts the conveyor Y001. X006 the red button
stops the conveyor. Of course the universal starting switch will keep the conveyor
running for us.
X004 will be used for the Counter C1. Every time the X004 button is pressed it will
increment the C1 counter by one. If you wish to put in a reset for the counter that is
up to you but not needed for this example.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 61 of 122
From there the following screen should be loaded on to the computer screen
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 62 of 122
The following screen will be displayed and you will be able to choose the model of
the HMI unit installed in the Laboratory
Remember the Terminal is a E200 6.0x and the Controller system is a FX0(S)CPU.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 63 of 122
When the above is completed you will then be shown the screen below:
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 64 of 122
The screen displays an emulation of what the user will see when their code is
uploaded to the HMI.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 65 of 122
Enter in something like Y1 (Which we know is the conveyor running signal, on the
PLCs provided) and when it is at off we want the Stopped word to appear and
when it is on we want the Running words to appear. Then press Apply and OK.
You can then see the software would have placed in a piece of text as shown
below.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 66 of 122
Transfer the code to the HMI unit by choosing Transfer from the top menu and
Project from the sub menu.
The following screen will appear and allow you send your programme up to the
HMI
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 67 of 122
When Send is pressed the you will be asked to confirm if you want to upload and
when yes is pressed the code is then transferred across to the HMI
At the same time you will see the HMI screen change indicating that the code is
changing.
When this is completed you will see.
Main Conveyor
Conveyor Off
If you now start the conveyor by pressing the green button the following text is
displayed:
Main Conveyor
Conveyor On
This simple program shows us two important things about HMIs.
1.
We can add descriptive text about processes for the operator to see.
2.
We can have a dynamic changing of text linked to a changing process.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 68 of 122
Type in C1 (at the beginning of this section I asked you to upload a simple ladder
logic program to the PLC, C1 was the counter, a number between 1 and 20 linked
to X004) and leave the rest the same as shown.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 69 of 122
Transfer the code to the HMI unit by choosing Transfer from the top menu and
Project from the sub menu.
Now your system will operate as before and you will see.
Main Conveyor
Conveyor Off
Counter 0
As you start the system you will then be able to have the conveyor change from Off
to On using X007 and X006 and increment the counter by pressing X004.
Step 5: Bar Charts
If you wish to place a bar chart it can also be completed using the HMI. This would
be used where a number is just not enough. Consider the following example. A
tank of liquid ranges between 0 and 10 meters in height. By just stating that the
height is 2 to an unfamiliar operator would mean nothing but when the graph
shows 2 out of 10 it would mean more.
Return to the E-Designer Main screen and at the end of the counter number
information press return. Then click on the --# icon.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 70 of 122
When the dialogue box appears put C1 in the Analogue Signal section and click on
Calc.. to fill in the upper and lower values for this case choose lower 0 and upper
20 as that is what we have put in the PLC ladder logic. Of course this could be
changed showing a scale if that is necessary.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 71 of 122
Transfer the code to the HMI unit by choosing Transfer from the top menu and
Project from the sub menu.
Now your system will operate as before and you will see.
Main Conveyor
Conveyor Off
Counter 10
XXXXXXXXXXXXXXX
As you start the system you will then be able to have the conveyor change from Off
to On using X007 and X006 and increment the counter by pressing X004. As you
get closer to the 10 the more panels will be darkened.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 72 of 122
As a way of reminding you, this simple program shows us three important things
about HMIs.
1.
We can add descriptive text about processes for the operator to see.
2.
We can have a dynamic changing of text linked to a changing process.
3.
We can have Graphical features.
Step 6: Force Outputs
The particular screen used in the laboratory has five Text spaces, Five LEDS and
Five Buttons. If we want to edit any of these Items all we have to do is double click
on the element needed. If it is the Text then you can fill in what you want the
operator to see. If you wish to use the LEDS for something then you can assign
them.
The five buttons below the screen can be used to force Outputs.
If you double click on any of the buttons a dialogue box appears asking you do you
want this to be a local or global key. A Global Key would be something that will
appear on every screen designed and using a Local Key would mean it is only for
this screen. For our case choose Local Key.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 73 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 74 of 122
Reminding you again, this simple program shows us four important things about
HMIs.
1.
We can add descriptive text about processes for the operator to see.
2.
We can have a dynamic changing of text linked to a changing process.
3.
We can have Graphical features
4.
We have a way of providing output control.
Step 7: Now connecting this together, Storyboard
As you have experienced the above features of a HMI allow for interaction of the
operator and the previous inaccessible PLC. But to use this tool effectively some
planning is needed.
I would suggest making a storyboard of how you feel the system should be
designed and them implement and test it. In this way the operator can drill through
relevant screens, making the best of the limited space (screen size, buttons and
LEDs) on the HMI.
Firstly identify the locations on the HMI you wish to use. For this illustration I
assume the following:
Screen Title
Main
Screen
No.1
No.2
No.3
No.4
No.5
Text:
Text:
Text:
Text:
Text:
LED:
LED:
LED:
LED:
LED:
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 75 of 122
The detail of the screens can now be written in typed text as shown in the sample
below. You fill in the detail you wish to enter into the HMI. Using this method it is
possible to develop a system that flows, allowing the operator access the
information in a meaning full way (a fully documented way as well) and avoid any
possible pitfalls or delays when coding. The testing of this is following the story
board and seeing if it works
Block 1
Block 2
Screen Title:
Main Screen
Screen Title:
Main Screen
Main Screen:
Conveyor System
Main Screen:
Conveyor System
No.1
No.1
Text:
Text:
LED:
N/A
LED:
N/A
Button:
Button:
No.2
No.2
Text:
Alarms
Text:
HVAC 1
LED:
N/A
LED:
N/A
Button:
Button:
No.3
No.3
Text:
Trends
Text:
HVAC 2
LED:
N/A
LED:
N/A
Button:
Button:
No.4
No.4
Text:
N/A
Text:
HVAC 3
LED:
N/A
LED:
N/A
Button:
N/A
Button:
No.5
No.5
Text:
N/A
Text:
HVAC 4
LED:
N/A
LED:
N/A
Button:
N/A
Button:
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 76 of 122
When each screen is developed it can be arranged using the Block Manager which
allows the flow from one block to another using arrows. The following screen
shows what a fully implemented system would look like before it is up loaded to the
HMI
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 77 of 122
You can see that every event is date and time stamped so the operator is kept full
aware of what is happening at all times.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 78 of 122
Step 2:
Add a Channel
The channel refers to the communication link from the PC to the PLC.
You will need to enter in all the details about the serial port, baud rate and so on.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 79 of 122
The channel name will appear in the dialogue box on the left of the screen showing
that it is available.
Step 3:
Add a Device
Then you will be asked to confirm the type of device running on the Channel (in our
case it is a Mitsubishi FX, other units available by using the scroll down menu).
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 80 of 122
You will be asked to call it a name so you could identify it over the network. For
example this could be PLC_MMC1_Building_1.
As the FX PLC we use has a number of different models FX0S, FX1N etc. you
need to confirm the exact Device model.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 81 of 122
The timeouts and number of fails in the communications should also be entered so
the SCADA system can be alerted of any error when they happen.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 82 of 122
Step 4:
Add a Group
You can see as we perform changes to the program it lists the date and time of
each event with a brief summary of it.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 83 of 122
For us we will enter a group called K044 which is of course the laboratory you are
in at the moment.
Step 5:
Add a Tag
The tag group is similar to a folder but we need now to select tags on the PLC. We
type in a Name we wish to use, the PLC address and a brief description of what it
does. Remember when we up loaded a program to the PLC and read it back from
the PLC it lost all its statements and notes. All that came back was the Address
and the ladder logic nothing else. The same happens here. So this tag entry is
where we fill in this detail again.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 84 of 122
Once entered the following line appears on the OPC server giving the Tag Name,
Address, Data type, DDE Scan cycle, Scaling if any and lastly the description.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 85 of 122
Step 6:
Run OPC Client
Now the hard work is done and we can start the OPC client running by choosing
the Hammer from the Icon menu.
A new screen appear which shows the KEPware Server on the left and all the
channel and device and group items. Click on the DeviceK044 and you will then
see the I/O entered into it
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 86 of 122
You can now see the data stored at the address which in this case is a 0 or a 1.
Step 7:
Genesis
This information can now be accessed through the SCADA package Genesis using
the OPC Universal Tag and Browser.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 87 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 88 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 89 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 90 of 122
Lets start with a simple screen to let the as shown below. It looks complex but its
only make up of a number of components connected together.
Batch Display
CompA
CompB
Batch Start/Stop ?
Tank Level
????????
Discharge Pump
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 91 of 122
In the sketch below you can see some of the components used to construct the
screen. The elbow is drawn once and copied and rotated. The same is for the pipe
and switches and valve. In fact these objects can be imported from the symbol
library in the package and if you develop a great drawing you could save it to the
library as well. The graphical display is only limited by your imagination.
Batch Display
CompA
CompB
Batch Start/Stop ?
Batch Start/Stop ?
Tank Level
????????
Discharge Pump
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 92 of 122
Step3: Dynamics
You can uses the dynamics feature of the SCADA package to make objects move,
flash change color, rotate and change size etc.
If you take the sample of the mixer shown in the sample batch it is simply made
up of four separate images which are displayed in an animated sequence.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 93 of 122
Slide 1
Slide 2
Slide 3
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Slide 4
Page 94 of 122
Any image or component in the process can be made dynamic. By choosing the
Dynamics menu from the top bar and choosing Action you have a choice of
different aspects that can be used.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 95 of 122
Lets take a simple example. If you draw the following components and select all
you will be automatically shown the following icons
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 96 of 122
Selection of options
Vertical
Circular
Horizontal
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
I/O Tag
Page 97 of 122
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 98 of 122
Rotate
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Page 99 of 122
Digital Display
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Digital Display
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Step9: Buttons
Buttons in a good SCADA system can be used for many things. In this package the
list of what can be done is displayed when you choose the down scroll arrow on
the action.
Digital Display
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Step11: Trending
Choice of Chart
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Step13: Arithmetic
If your are able to get the height in a tank and wish to display the volume, it is
possible by using the arithmetic feature.
Height
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Volume would
be height x area
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Another very good example of using the buttons or other diagrams is the
Notebook1.gdf example. The folder tabs are used to load up the screens from No1,
2, 3, 4, 5 and also back to No.1 if available.
No 1
No 2
No 3
No 4
No 5
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Storyboard
Another good design tool when using SCADA systems is the use of storyboards
showing where one screen would be linking on to another. Using the folder
example you can see how it works. It identifies what is going to be displayed on
each screen and how it links from one to the other.
No 1
No 2
No 3
No 4
No 5
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Exercise Laboratory 1
Batch Display
CompA
CompB
Batch Start/Stop ?
Tank Level
????????
Discharge Pump
Aim:
Procedure:
1
2.
3.
4.
5.
6.
7.
8.
9.
10.
Start the Genesis GraphWorks module. Move the mouse arrow to the
windows start button and press with the left button. Go into programs,
Iconics Genesis 32, Graphworks and finally Graphworks32.
Press OK on the Licence and note the time on when the package expires.
Set the background to white.
Using the symbol library given, start constructing the screen as shown
above. Remember to save the screen as you go along.
Make sure you use the zoom-in and zoom-out command to ensure that all
the images are joined together.
The button, switches and level indicators and be put into the mimic using
the bottom icon bar of the Graph works package.
The text can also be put on to the mimic using the icon bar provided.
When the graphics are in place and completed you may begin to add
animation. Use the top tool menu and choose Dynamics and then Actions.
Ensure that the Dynamic actions are linked to the OPC Server as
demonstrated by the instructor.
Use the tools, Runtime menu to start the system mimic and use the
configure to return to the GraphWorks editor.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Exercise Laboratory 2
Batch Display
Batch Display
CompA
CompA
CompB
CompB
Batch1
BUTTON
Batch Start/Stop ?
Batch Start/Stop ?
Tank Level
Tank Level
????????
????????
Discharge Pump
Discharge Pump
Aim:
Procedure:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Start the Genesis GraphWorks module. Move the mouse arrow to the
windows start button and press with the left button. Go into programs,
Iconics Genesis 32, Graphworks and finally Graphworks32.
Begin a new file using, FILE NEW .
Change the background to white.
Load up the batch file as before.
Add in a button and call it Batch 2.
Now make changes to the file and save the file as Batch 1.
Make more changes to the Batch file and call it Batch 2.
Enter Batch 1 again and ensure the button when clicked loads up batch 2.
Save Batch 1 again.
Enter Batch 2 again and ensure the button when clicked loads up batch 1.
Runtime should interchange between the files.
Check out the features of GENESIS like Dials and gauges and switches.
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Exercise Laboratory 3
Produce a dynamic animated image.
Aim:
Slide 1
Slide 2
Slide 3
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Slide 4
Exercise Laboratory 4
Aim:
Height
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Volume would
be height x area
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02
Kicker
Conveyor Belt
Blue Lamp
Red Lamp
Yellow Lamp
Green Lamp
Y1 Conveyor
Y4 Yellow
Y3 Red
Y5 Green
PLC
X6 Red P.B.
X7 Green P.B.
HMI, OMI
or MMI
Operator
Control
Station
X3 Option Switch
Dr. J.McGrory, DIT Kevin Street. Version 2.0, File: plc_manual_laboratory V02