Professional Documents
Culture Documents
Table of Contents
Learning U90 Ladder
The Sample Application
Getting Started
4
5
6
21
27
27
31
32
34
36
37
39
39
40
45
53
53
54
57
60
65
65
67
68
69
U9 0 La dde r Tutor i a l
Chapter 1
After completing this tutorial, you will be familiar with the use of:
Displays
Variables
T imers
Counters
Math Functions
Compare Functions
Store Functions
Once you are familiar with these principles and how they are used in U90 software, you will
be ready to begin writing and running your own project application.
U9 0 La dde r Tutor i a l
1 hour each day when the system will not be able to run
When the machine is running, the M90s LCD screen will display:
Error messages
Your program will also prevent the machine from running over the weekend.
Note that the function of the photocell in this application is filled by the +/- key on the M90
keypad. This allows you to download the tutorial into your M90 controller and run it without
connecting the M90 to anything other than your PC.
U9 0 La dde r Tutor i a l
Getting Started
First, you need to open a new project.
Figure 1.
New Icon
You can have only one U90 project open at a time. Before a new project will open, you will
be prompted to save any changes to a currently open project.
A new project will open with the M90 Hardware Configuration window.
3
Select your controller model from the M90 list. T he selected model name now appears
above the M90 picture.
Figure 2.
For this project you will not be using the Digital and Analog expansion options.
4
U9 0 La dde r Tutor i a l
To save a project:
5
Enter Factory Tutorial as the file name. Note that the file
extension will be .U90.
Figure 3.
9
Click Save.
U9 0 La dde r Tutor i a l
Chapter 2
T o allow operators to log in, you create an interactive user interface. T his means that the
messages displayed on the M90s screen tell the operator to enter certain information. T he
operator then enters the information using the M90s keypad.
How can y ou create an interactiv e user interface?
You need:
An initial Display
T o do this you will use Display screens, Variables, List Variables and Display Jumps.
Click the Display icon on the Ladder toolbar. Display 1 opens in the Display
editor.
Name the Display Initial Log-in Display by typing this title in the title bar and then
pressing ENTER. You will see the Display 1 title in the Project Navigation window.
Figure 4.
3
Initial Display
U9 0 La dde r Tutor i a l
Figure 5.
Enter ID Number
You have now created a Displaybut this Display is not yet an inte ractive Display. Your
initial Display asks the operator to enter his/her ID number. T o register the ID number, you
create a Linked Variable.
Figure 6.
U9 0 La dde r Tutor i a l
Figure 7.
4
Press OK
Figure 8.
6
Attach a Variable
Display 1 now appears with the Variable-linked spaces as red pound signs.
Figure 9.
You have attached a variable to a Display. Now you need to format the Variable for its use.
To format a Variable
T his Variable will accept a two-digit number between one and ninety. T he operator enters the
number using the M90 keypad.
1
10
U9 0 La dde r Tutor i a l
Figure 10.
2
Select Inte ge r from the Variable T ype list, then click on the Link To button. T he Se t
Link to Int box opens.
Figure 11.
3
Figure 12.
4
11
U9 0 La dde r Tutor i a l
5
Select Start w ith Clear Field. T his will erase any previous user ID numbers
entered, and prevent them from being viewed on the M90 display screen. If you do not
select Start w ith Clear Field, the last ID number entered will be displayed.
Set Entry Lim its from one to ninety.
Figure 13.
You have a Display. You have an attached Variable. T ogether, the Display and the attached
Variable create an interactive Display.
Now, after an operator has entered an ID number, you must approve the ID entry.
T o do this, you must create a Jump condition.
Figure 14.
12
U9 0 La dde r Tutor i a l
2
Click to open the first Jump Condition. T he Define Jump to Condition box opens.
Figure 15.
3
Figure 16.
4
13
U9 0 La dde r Tutor i a l
Figure 17.
6
T he Display now appears with the linked Variable and Jump condition.
Figure 18.
To review:
For one Display, you have created:
A keypad-enabled Variable.
Now you want to create a Display that will verify the entered ID number. T his will be Display
2. T here are two options for the ID number: access okayed or access denied. T hese two
options are similar to a bit option: on (1) or off (0). Depending on access permission, you
want to continue on to Display 3 or return to Display 1. Display 2 will contain two types of
text:
14
U9 0 La dde r Tutor i a l
To format Display 2:
1
Enter the text Access. T his will be Fixed text in the message.
Enter the text verify. T his will be variable text in the message.
Select verify.
Figure 19.
6
Figure 20.
Next, you want to set your JUMP Condition. Your JUMP Conditions will not depend on an
external keypad entry. T hey will be internal conditions in the Ladder project.
7
Click to open the first Jump Condition. T he Define Jum p to Condition box opens.
15
U9 0 La dde r Tutor i a l
Figure 21.
9
10
Figure 22.
Repeat the same process for Jump Condition 2 using MB 8 Time to return to 1 with Display 1.
16
U9 0 La dde r Tutor i a l
Figure 23.
Now you need to format the Variable attached to Display 2.
To format Variable 9:
1
2
Select Bit for the Variable T ype list. T he Set Link to Bit box
opens.
Enter MB 20 System can w ork. Click OK .
Figure 24.
4
17
U9 0 La dde r Tutor i a l
Figure 25.
You have created two Displays. If you will remember, at the beginning, you needed:
An initial Display
Now you see that the Display to confirm and the Display to deny ID entry are only one
Display with Variable conditions to change part of the text message.
Create one final Display for the log-in process. T his Display will read Welcome ______ with
the Operators name. T his is another Display where part of the text is constant and part is
variable. You cannot use a Bit Variable in this instance because you do not have an on or off
condition. Instead, you will use List Variables for the Operators names.
To format Display 3:
1
2
18
Select eight spaces for the variable text and attach Variable 7
Name of w orker.
U9 0 La dde r Tutor i a l
Figure 26.
Now you format the Variable attached to Display 3. You have ninety factory workers but
only three that are permitted to operate the conveyor belt. For the sake of expediency, you
will not enter ninety names in the List Variable.
To format Variable 7:
1
Select List from the Variable T ype list. T he Set Link to List box
opens.
Figure 27.
4
5
6
19
U9 0 La dde r Tutor i a l
Figure 28.
7
Scroll down to List Variables 10, 11 and 12. T hese will be the
three workers allowed to operate the conveyor belt.
Enter names in List Variables 10, 11 and 12.
Figure 29.
You have created all of the Displays needed for the Log-in process. If you download your
Factory T utorial project at this point, you will see your first Display: Enter ID no. _. No
matter what two-digit number you enter, you will see Display 2: Access denied. You have
not written Ladder conditions that could turn MB 20 ON, the Memory Bit linked to Display
2. T herefore, MB 20 remains OFF (logic 0).
You also have not written Ladder nets that could turn ON either MB7 or MB 8, your Display
2 Jump conditions. MB 7 and MB 8 remain OFF (logic 0). You cannot jump out of Display 2.
Now, you need to write the Ladder program that will create the conditions 6 to turn MB 7,
MB 8 and MB 20 ON.
20
U9 0 La dde r Tutor i a l
Chapter 3
In this section, you learn how to select Ladder elements and place them within a net. T o
learn about Ladder elements and their functions, please refer to U90 Ladders on-line help.
T he Ladder net in this example contains:
Click on the Compare menu, and then click on Equal as shown below. The Equal
function block is now attached to your cursor.
Figure 30.
2
Place the function block on the left side rung of the Ladder as shown below. Note that
in order to allow power to flow from the rung, the function block must touch the left
rung.
Figure 31.
3
Click on the rung. The Equal function block drops into place. The Select Operand and
Address box opens as shown below.
21
U9 0 La dde r Tutor i a l
Figure 32.
4
Click on the rung. The Equal function block drops into place. The Select Operand and
Address box opens.
Enter SI 2 Current HMI Display for the A integer value as shown below, then click OK .
The Select Operand and Address box opens.
Figure 33.
22
Select #, constant value as the B operand type. Constant values are values that you
enter when you create your project. They are not affected by your application.
Enter the constant integer value by typing 2, and then click OK as shown below.
U9 0 La dde r Tutor i a l
Figure 34.
8
The Equal function block now appears with both integer values in place as shown
below.
Figure 35.
Now create another Equal function block.
9
Click on the Compare menu, then click on Equal as shown below. The Equal function
block is attached to your cursor.
10 Place this function block so that it touches the first one as shown below. Note that in
order to allow power to flow between them, the function blocks must touch
Figure 36.
11 Enter MI 4 Worker Name List for the A integer value, then click OK . The Select
Operand and Address box opens.
12 Select #, constant value as the B operand type. Enter the constant integer value by
typing 10, then click OK .
Figure 37.
23
U9 0 La dde r Tutor i a l
13 The net now appears as shown below.
Figure 38.
Now you place a Direct Coil in the net.
14 Click on the Set Coil button as shown below. The Set Coil element is now attached to
your cursor.
Figure 39
15 Click in the net to place the Set Coil. The Select Operand and Address box opens.
16 Enter MB 10 Worker number 10 is in as shown below.
Figure 40
17 Click OK. The Set Coil now appears with its operand and address.
24
U9 0 La dde r Tutor i a l
Note the space between the Set Coil and the function block. If the elements do not touch,
there will be no power flow to the Set Coil. You can use the Draw Line tool to connect them.
18 Click on the Draw Line button as shown below.
Figure 41
19 Use the pencil to draw a line between the two elements as shown below.
Figure 42
Note that you can also use the Draw Line tool to use one condition to drive a number of coils
by connecting parallel elements within a net.
Net One, shown below, is now complete.
Net One reads:
If the Current Display (SI 2) is Display 2 (#2) and the entered integer value in MI 4 equals
10, then turn MB 10 ON.
Figure 36
25
U9 0 La dde r Tutor i a l
T his net is the first net used in the Ladder: Operator Log-in , section of this tutorial.
26
U9 0 La dde r Tutor i a l
Chapter 4
Display 1 comes up as soon as you turn on the controller and download your project. Display
1 does not need a Ladder net to work. Display 2 does. Display 2 has no Ladder conditions for:
MB 20
MB 7
MB 8
Condition 1
If y ou are in Display 2 and work er ID number is approv ed
then turn MB 20 ON.
Ladder net for worker ID number 10 consists of:
Figure 44.
Log-in Ladder
27
U9 0 La dde r Tutor i a l
1
Select the element(s) you want to copy by clicking and dragging the mouse.
Figure 45.
Figure 46.
Move the pointer to the net in which you want to paste, then click.
Figure 47.
28
U9 0 La dde r Tutor i a l
Figure 48.
5
Figure 49.
Figure 50.
29
U9 0 La dde r Tutor i a l
Figure 51.
T hese three nets create the condition if you are in Display 2 and worker ID number 12 is
entered. Now you need to create the resultthen turn MB 20 ON.
T his net consists of:
30
U9 0 La dde r Tutor i a l
Figure 52.
Condition 2
If y ou are in Display 2 and MB 20 is ON
then turn MB 7 ON and jump to Display 3.
T he Ladder nets for jumping to Display 3 consist of:
One Timer.
Figure 53.
U9 0 La dde r Tutor i a l
Figure 54.
Net Six reads:
When Tim er 7 counts dow n to 0 seconds and turns ON, turn ON MB 7.
Remember that MB 7 provides the Jump condition from Display 2 to Display 3.
T imer 7 allows the Display to be on the M90s screen for four seconds. Without this time
delay, the message Access okayed would flash on the screen too quickly to be read.
Condition 3
If y ou are in Display 2 and MB 20 is not ON
then turn MB 8 ON and jump to Display 1.
T he Ladder nets for jumping to Display 1 consist of:
32
U9 0 La dde r Tutor i a l
Figure 55.
Net Seven reads:
If the Current Display (SI 2) is Display 2 (#2) and MB 20 is 0, then turn Tim er 8
ON.
Remember that Direct coil T imer 8 will turn ON only when it has finished counting down
from 4 seconds and reaches 0.
Figure 56.
Net Eight reads:
When Tim er 8 counts dow n to 0 seconds and turns ON, turn MB 8 ON.
Remember that MB 8 provides the Jump condition from Display 2 to Display 1.
Without this time delay, the message Access denied would flash on the controller screen
too quickly to be read.
You have written the Displays for the Log-in process and you have built the Ladder nets to
activate the Display jump conditions.
Next, close the open loops in your Ladder nets.
33
U9 0 La dde r Tutor i a l
You used a Set coil for each allowed worker ID number. A Set coil must be used with a
Reset coil.
You used a Store Direct function block with the value of MI 4. T his value is stored
until overwritten by another value. T he MI 4 value should be cleared with each scan.
Build the reset conditions at the beginning of the project. T hen they will not be forgotten as
your project grows.
To reset coils
Each Set coil must:
Have a Reset coil with the same Operand and address - and -
Figure 57.
6
Click the INSERT NEW NET icon on the Ladder toolbar. The
cursor changes into cross-hairs.
Figure 58.
34
U9 0 La dde r Tutor i a l
8
Repeat the process and add another net for a total of 2 new nets. What was Ladder Net
1 is now Ladder Net 3.
Place Ladder elements into Net One as shown in the figure below.
Figure 59.
Net One reads:
When the Current Display (SI 2) is Display 1 (#1), turn MB 30 ON.
Place Ladder elements into Net Two as shown in the figure below. To allow the single, one-shot
conn ection to reset the parallel series of coils, you must connect them.
Double-click on the LINE DRAW icon. Connect the Reset coils to the Positive Transition
contact.
Figure 60.
35
U9 0 La dde r Tutor i a l
Figure 61.
Reset conditions
Net T wo reads:
When MB 30 turns ON, reset MB 10, MB 11 and MB 12.
You have given Reset coil conditions to each Set coil condition. T hose set reset loops are
closed.
Next, reset the MI 4 value to 0 after each scan.
To Reset MI 4
As the program is written now, when an access-okayed worker ID number is entered, that
number is stored in MI 4. When the full program (including operating the conveyor belt and
error handling) is run and completed, it will return to Display 1: Ente r ID no.
T he ID number entered at the beginning of the last scan is still stored in MI 4. If the next
worker does not enter an ID number and only pushes Enter while in Display 1, the worker will
be allowed access on the previous workers ID number.
T he zero condition will be built with:
You can include this function block in the same net as the reset coils, Net 2.
36
U9 0 La dde r Tutor i a l
Figure 62.
Net T wo now reads:
When MB 30 turns ON, reset MB 10, MB 11 and MB 12 AND store integer 0 in MI 4.
Your project now includes 11 nets and 4 HMI displays. You can now download your project and
test it. Keep in mind that, because you have not yet formatted Display 4, pressing ENTER after
Display 3 Welcom e _______ will bring up a blank screen. Use the Debug feature to reset SI 2
Current HMI Display to 1.
To download a project
Make sure that the controller is turned on and that U90 Ladder is in Ladder Editor view.
1
You will see Display 1. T he screen will go blank after you press Ente r. You can reset the
program on-line using the de-bugging feature.
3
Figure 63.
4
The net power flow will appear in red. The current Operand value of the CURRENT HMI
DISPLAY appears above the Operand and Address.
37
U9 0 La dde r Tutor i a l
Figure 64.
5
Figure 65.
T he new value of 1 will appear above the Operand and Address. T his causes Display 1 Enter
ID No: __ to return to the M90 display screen.
Figure 66.
38
U9 0 La dde r Tutor i a l
Chapter 5
Once an operators password is approved, the operator must set the number of boxes per
bundle. T o set this parameter, the operator enters a number using the M90 keypad. Note that
the maximum number of boxes per bundle is 99.
T he operators also need a running box count to allow them to track production.
T he operator will be able to set system maintenance times, during which the bundling
machine cannot run.
How can an operator enter program param eters?.
In this part of the application, you will:
T o allow the operator to set the number of boxes per bundle, you need to create a Display
and link it to a keypad entry variable.
Click the Display icon on the Ladder toolbar. Display 1 opens in the Display
editor.
Name this Display Set Box Quantity, by typing the name in the title bar, then
pressing ENTER . You will see the Display 1 title appear in the Project Navigation
window, as shown in Figure 67 below
Figure 67
3
Naming a Display
Enter the Display text Set Box Qty. in the Display window, as shown in Figure 68
below.
39
U9 0 La dde r Tutor i a l
Figure 68
T o allow the operator to set the number of boxes per bundle, you need to link a Variable to
your Display. T his Variable will contain a number entered from the M90 keypad. Remember
that the maximum number of boxes per bundle is 99, so you must create a space in your
Display that can hold two digits.
Select two spaces in the Display text by clicking and dragging, as shown below.
Figure 69.
2
40
U9 0 La dde r Tutor i a l
Figure 70.
3
Figure 71.
4
Attaching a Variable
Enter VR 5 Set Box Quantity, then press OK . Display 4 now appears with the
Variable-linked spaces as red pound signs as shown in Figure 72 below.
Figure 72.
41
U9 0 La dde r Tutor i a l
You have attached a variable to a Display. Now you need to format the Variable to accept a
number that the operator enters from the M90 keypad.
Figure 73.
2
Select Integer from the Variable Type list, then click on the Link To button. T he Set
Link to Int box opens as shown in Figure 74.
Figure 74.
3
42
Linking an MI to a Variable
Enter MI 11 Set Box Quantity, then Click OK . T he Variable is now linked to MI 11.
You will format MI 11 later.
U9 0 La dde r Tutor i a l
4
Select Start w ith Clear Field. If you do not select Start w ith Clear Field, the last
number entered in MI 11 will be displayed.
Select Enable Limits. In the Min box, enter 1; enter 99 in the Max box. When you are
finished formatting Variable 5, the screen will look like Figure 75, page 55 below.
Figure 75.
You have a Display. You have an attached Variable. T ogether, the Display and the attached
Variable create an interactive Display.
Now, after an operator has entered the number of boxes that are required for this bundle, you
want the operator to set maintenance time.
T o do this, you must create a Jump condition.
43
U9 0 La dde r Tutor i a l
Figure 76.
2
Click on the first Jump condition in the Jumps box. T he Define Jump to Condition
box opens.
Enter SB30 Keypad entries complete, as shown in Figure 77.
Figure 77.
44
U9 0 La dde r Tutor i a l
Figure 78.
6
Click OK . T he Display now contains the linked Variable and Jump condition as shown
below. You can also see Display 5, Enter Start T ime, in the Project Navigation
Window.
Figure 79.
Completed Display
To review:
For this Display, you have created:
A text Display.
A keypad-enabled Variable.
Now you need to create the Jumps destination Display. T his Display will allow the operator
to set a start time for maintenance procedures.
45
U9 0 La dde r Tutor i a l
2
Enter the Display text Start Time :_____ in the Display window, as shown in Figure
80 below.
Figure 80
Figure 81.
3
Attaching a Variable
Enter VR 2 Start Time, then press OK . Display 5 now appears with the Variable-linked
spaces as red pound signs as shown in Figure 82 below.
Figure 82.
You have attached a variable to a Display. Now you need to format the Variable for its use.
46
U9 0 La dde r Tutor i a l
Select Time Functions from the Variable Type list. T he Set Link
to Time function box opens.
Enter MI 2 Start Time, then click OK as shown below. Variable 2 is now linked to MI 2.
You will define MI 2 when you write the Ladder program for Maintenance T ime.
Figure 83
7
Linking a Variable
Select Hour (CT) and Keypad Entry from the Variable Information list as shown in
Figure 84.
Figure 84.
You now have an interactive display that enables the operator to enter a Start T ime for
maintenance. Once the operator has set the Start T ime, he must also set an End T ime. You
need to create a jump condition that will bring the operator to the End T ime Display.
To create a Jump
After an operator enters the Start T ime (s)he presses the ENTER key. T his will fulfill the
Jump condition and cause the Display to change.
47
U9 0 La dde r Tutor i a l
1
2
Click on the first Jump condition in the Jumps box. T he Define Jump to Condition
box opens. Now enter SB30 Keypad entries complete, as shown below.
Figure 85.
3
Figure 86.
5
48
Click OK . T he Display now appears together with the linked Variable and Jump
condition as shown below. You can also see Display 6, Enter End Time, in the Project
Navigation Window.
U9 0 La dde r Tutor i a l
Figure 87.
Completed Display
To review:
For this Display, you have created:
A text Display.
A keypad-enabled Variable.
Now, you need to create the destination screen for the Jump condition.
Now you need to create the Jumps destination Display. T his Display will allow the operator
to set an end time for the maintenance period.
Click Display 6 in the Project Navigation window. Display 6, Enter End Tim e,
opens in the Display editor.
Enter the Display text End Time : in the Display window, as shown in Figure 80
below.
Figure 88
49
U9 0 La dde r Tutor i a l
1
2
Figure 89.
3
Attaching a Variable
Enter VR 3 End Time, then press OK . Display 6 now appears with the Variable-linked
spaces as red pound signs as shown in Figure 82 below.
Figure 90.
You have attached a variable to a Display. Now you need to format the Variable for its use.
50
Select Time Functions from the Variable Type list. T he Set Link
to Time Function box opens.
Enter MI 32 End Time, then click OK as shown below. Variable 3 is now linked to MI 3.
You will define MI 3 when you write the Ladder program for Maintenance T ime.
U9 0 La dde r Tutor i a l
Figure 91
4
Linking a Variable
Select Hour (CT) and Keypad Entry from the Variable Information list as shown in
Figure 84, page 47.
Figure 92.
You now have an interactive display that enables the operator to enter an End T ime for
system maintenance. After an operator enters the End T ime (s)he presses the ENTER key.
T his will fulfill the Jump condition and cause the Display to change.
To review:
In this section, you made Interactive Displays that enable the operator to use the M90
keypad to:
U9 0 La dde r Tutor i a l
52
U9 0 La dde r Tutor i a l
Chapter 6
Data
Now, you must create Displays that will show the operator what is happening within the
system.
How do I display run-tim e Data?
In this part of the application, you will:
Create a Display that allows the operator to track events or errors within the system.
T he running box count display will contain 2 variable values. T he first variable is the actual
number of boxes that are counted as they pass a photocell. T his variable will be linked to an
MI which serves as a counter in your Ladder program. T he second variable is the number of
boxes per bundle. T his number has been set by the operator in Display 4, Set Box Quantity.
Click the Display icon on the Ladder toolbar. Display 7 opens in the Display
editor. We will name this Display Box Count.
T ype the name in the title bar, then press ENTER . You will see the name appear in the
Project Navigation window, as shown in Figure 67 below.
Figure 74
Naming a Display
53
U9 0 La dde r Tutor i a l
3
Enter the Display text Box___out of___ in the Display window, as shown in Figure 68
below. T he spaces in the text will contain the variable values.
Figure 75
Select 3 spaces in the Display text by clicking and dragging, as shown below.
Figure 76.
2
Figure 77.
4
Enter VR 4 Boxes Counted, then press OK . Display 7 now appears with the Variablelinked spaces as red pound signs as shown in Figure 72 below.
54
U9 0 La dde r Tutor i a l
5
Click on Variable 4 in the Program Navigation Window, and then select Integer as the
Variable T ype.
Click on the LINK TO button, and then link MI 10 Current Number of Boxes as shown
below.
You will use MI 10 to create the box counter in your Ladder application.
Figure 78.
Formatting a Variable
Now, you attach the second variable, which contains the preset number of boxes per bundle.
7
Select 3 spaces in the Display text by clicking and dragging, as shown below.
Figure 79.
55
U9 0 La dde r Tutor i a l
Figure 80.
10
Enter VR 1 Amount of Boxes per Bundle, then press OK . Display 7 now appears with
the Variable-linked spaces as green pound signs as shown in Figure 72 below.
Figure 81.
56
11
Click on Variable 1 in the Program Navigation Window, and then select Integer as the
Variable T ype.
12
Click on the LINK TO button, and then link MI 11 Set Box Quantity. Remember that
MI 11 contains the number of boxes per bundle that is set by the operator.
U9 0 La dde r Tutor i a l
13
Figure 82.
Formatting a Variable
To review:
In this section, you made a Display that enables the operator to:
View the counted number of boxesthe number of boxes that have passed a
photocell.
Compare it to the preset number of boxes per bundle.
Jump conditions
T here will be 3 Jump conditions that will cause a Jump to a new Display. Each condition will
cause Display 10, the message screen, to be displayed.
Click on the first Jump condition in the Jumps box. T he Define Jump to Condition
box opens. Now enter MB 41 Error Message 1, as shown below.
Figure 83.
57
U9 0 La dde r Tutor i a l
Figure 84.
5
Click OK . T he Display now appears together with the linked Variable and Jump
condition as shown below. You can also see Display 10, Operator Messages, in the
Project Navigation Window.
Figure 85.
Click on the second Jump condition in the Jumps box. T he Define Jump to Condition
box opens.
Enter MB 43 Error Message 2, then click OK. T he Define to Display Jump box
opens.
8
9
58
Enter DS 10 Operator Messages as shown in Figure 78, page 45, then click OK.
Click on the third Jump condition in the Jumps box. T he Define Jump to Condition
box opens. Now enter MB 2 Bundle Complete, as shown below.
U9 0 La dde r Tutor i a l
Figure 86.
10
11
Enter DS 8 Operator Messages as shown in Figure 78, page 45, then click OK.
12
T he completed display, together with all three Jump conditions, looks like Figure 79,
page 45 below.
Figure 87.
Completed Display
To review:
In this section, you made a Display that:
Enables the operator to receive messages regarding the status of the system.
59
U9 0 La dde r Tutor i a l
Now you will create the operator messages. Display 8 contains one variablewhich can show
one of 3 messages. T his is possible because the variable is a List Variable. T he text of a List
Variable changes according to the value of the MI to which it has been linked.
Create a placeholder for the message text by selecting the entire screen, then clicking
the Attach Variable button. T he Attach Variable box opens.
Enter Variable 8 Operator Messages as shown below.
Figure 88.
4
Attaching a Variable
Figure 89.
Attached Variable
60
Select List from the Variable T ype list. T he Set Link to List box
opens.
U9 0 La dde r Tutor i a l
Figure 90.
Figure 91.
61
U9 0 La dde r Tutor i a l
2
Click on the first Jump condition in the Jumps box. T he Define Jump to Condition
box opens. Now enter SB 53 Enter key is pressed.
Figure 92.
5
T he Display now appears together with the linked Variable and Jump condition.
62
Click on the second Jump condition in the Jumps box. T he Define Jump to Condition
box opens.
Enter MB 4 Return to Initial Log-in Display as shown below.
U9 0 La dde r Tutor i a l
Figure 93.
10
Click ENTER . T he screen appears with the two Jump conditions as shown below
Figure 94.
11
12
Click on the third Jump condition in the Jumps box. T he Define Jump to Condition
box opens.
Enter MB 5 Message Time Elapsed.
63
U9 0 La dde r Tutor i a l
13
14
15
Figure 95.
To review:
Your HMI is now complete. In this section, you:
64
Set Jump conditions that allow exit from this final display.
U9 0 La dde r Tutor i a l
Chapter 7
A Direct Coil
MI 2 and MI3 define the time range for this Indirect T ime function.
Remember that in the previous section, you defined two Displays to allow the operator to set
times for system maintenance. T hese Displays use variables to accept time values that are
entered by the operator via the M90 keypad. In Display 5, Variable 2 Start Time was linked
to MI32. In Display 6, Variable 3 End Time was linked to MI 3.
When the current RT C1 time is within this range, power will not flow through the function
block. T he power flow drives a direct coil, linked to MB 6. T his condition prevents the
machine from running during maintenance time.
RTC: Real Time Clock. The M90 has an internal RTC that is used to handle time and date functions.
65
U9 0 La dde r Tutor i a l
A Direct Contact linked to MB 20, which turns ON when an approved operator logs in
From the Clock Menu, select Direct Clock Functions, and then click Day Of The Week.
When you place the function block into the net, the Day Of The Week box opens as
shown below.
Select the days on which you want the application to run, then click OK.
The function block appears with the days of the week marked as shown below.
A Compare function block, which checks if the Current Display is higher than 6.
U9 0 La dde r Tutor i a l
Creating a Counter
You used the conditions in Net 12 to start the bundling machine. You can also use them to
drive the box counter. T he counter is connected to a photocell. Each time the photocell
sees a box, the counter increments by one.
SB 50, which is linked to the +/- key on the M89 keypad, acts as the photocell.
T he third part of this net fills these conditions:
When the box passes the photocell, the counter increments by one.
A Positive T ransition Contact linked to SB 50, which is turned ON when the +/- key is
pushed
Each time SB 50 is turns on, the constant 1 is added to the current number of boxes stored in
MI 10. T he result is stored in MI 10 as shown below.
In other words, each time you press the M90s +/- key, the counter increments by 1.
67
U9 0 La dde r Tutor i a l
When an approved operator has logged in, place the value 0 in the counter.
68
U9 0 La dde r Tutor i a l
Chapter 8
T he Ladder nets you create in this section enable the M90 to monitor the system. T he
Ladder program also enables the M90 to display the appropriate message to the operator.
T his part of the application covers the following events:
A box is stuck
T o build these nets, place the Ladder elements as shown in the figures below.
S tuck BoxTimer
T his net contains:
A Direct Coil.
T he net reads:
When a box passes the photocell and the m achine is running, start Tim er 0.
T he bit condition of this timer will be used in another net to display an operator message.
Conveyor S toppedTimer
69
U9 0 La dde r Tutor i a l
T he net shown below uses three contacts to activate T imer 1, Conveyor Stopped.
Note that SB 50, the photocell is now linked to an Inverted Contact, Normally Off. T his
means that power can flow to the other side only when the M90s +/- button is not pushed. In
other words, when the photocell does not detect a box.
T he net reads:
When the first box passes the photocell, and w hen the photocell does not
detect a box, and w hen the m achine is on, start Tim er 1. T he bit condition of this
timer will be used in another net to display an operator message.
About Display 8
Remember that Display 8 Operator Message is linked to List Variable 8, which
contains 3 text messages. T his variable is linked to MI 5. T he value in MI5 determines
which message is displayed on the M90s screen, according to the number of the message
U9 0 La dde r Tutor i a l
T he result is that message 0 of List Variable 8 is displayed on the M90s screen: Bundle
Complete.
71
U9 0 La dde r Tutor i a l
An Indirect Contact
A Coil
Determines the length of time an operator message is displayed on the M90s screen
72
U9 0 La dde r Tutor i a l
Box is Stuck!
Conveyor Stopped
T he error messages are displayed when MB 41 and MB42 are on. When the errors have been
fixed, these MBs will be off.
T he net below reads:
When MB 41 and MB42 are off, and the current Display is 8, turn on Tim er 4.
U9 0 La dde r Tutor i a l
Exit Display 8
T he net below allows a Jump from Display 8 Operator Messages.
T his net reads:
When Tim er 4 is finished, turn MB5 on.
MB 5 is used as a Jump condition in Display 8. When MB 5 turns on, the Jump condition will
be fulfilled and Display 7 Box Count will appear on the M90s screen.
74