The Concept of Logic Algebra
The Concept of Logic Algebra
Lecture 1
The concept of logic algebra
Table 1.1
N 1 2 3 4 Note
N 2 4 8 16 N 2n
M 4 16 256 65536 M 2N
Table 1.2
n=1 M=4
N= 2 X Y1 Y2 Y3 Y4
0 0 1 0 1
1 0 0 1 1
2
Table 1.3
n=2 M = 16
X X Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
1 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
N =4
1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
0 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
Table 1.4
n=3 M = 256
X X X Y Y Y Y Y Y Y Y
Y Y Y . . Y Y
1 2 3 1 2 3 4 5 6 7 8 9 10 11 .. .. 255 256
0 0 0 0 1 0 1 0 1 0 1 0 1 0 0 1
1 0 0 0 0 1 1 0 0 1 1 0 0 1 1 1
0 1 0 0 0 0 0 1 1 1 1 0 0 0 1 1
N =8
1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1
1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1
0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1
1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1
Table 1.5
Contact
equivavalent
Cədvəl 1.8
Contact equivavalent of disjunction operation
Table 1.9
Lecture 2
(X1*X2)+X3=(X1+X3)*(X2+X3) (1.10)
4) Inversion (de Morqan) laws(закон инверсии)
X 1* X 2 X 1 X 2; (1.11)
X 1 X 2 X 1* X 2 (1.12)
Commmutative , associative and distributive laws for logical addition matches
with that of ordinary algebra. That is why there is no need to prove them. The
distributive laws for logical multiplication and inversion doesnot match with that of
ordinary algebra. To prove these kind of equations table method is used.at the same
time they can be proved by analytical and logical methods. For example,for
distributive:
(X1*X2)+X3=(X1+X3)*(X2+X3)=X1*X2+X1*X3+
+X3*X2+X3*X3=X1*X2+X1*X3+X3*X2+X3=X1*X2+
+(X1+X2+1)*X3=X1*X2+1*X3=(X1*X2)+X3;
The below equationscan be derived basedon distributive laws:
(X1*X2)+(X1* X 2 )=X1*(X2+ X 2 )=X1*1=X1; (X1+X2)*(X1+ X 2 )=X1*X1+X1*
X 2 +X2*X1+X2* X 2 =
=X1+X1*( X 2 +X2)+0=X1+X1*1=X1+X1=X1;
X1+(X1*X2)=X1*(1+X2)=X1*1=X1;
X1*(X1+X2)=X1*X1+X1*X2=X1+X1*X2=
=X1*(1+X2)=X1*1=X1;
X1+( X 1 *X2)=X1*1+ X 1 *X2=X1(1+ X2)+ X 1 *X2=X1+X1*X2+ X 1
*X2=X1+X2(X1+ X 1 )=X1+X2;
X1*( X 1 +X2)=X1* X 1 +X1*X2=0+X1*X2=X1*X2.
Lets look at below examples to prove the inversion laws:
1) Let us denote by D that any course process takes place. In order for this process
to occur, it is necessary to have a teacher (M) and a student's participation (T). The
interpretation is logically expressed as follows:
D = M * T
This expression can also be written as below:
D M *T (1.13)
At the same time, for the classroom to fail ( D ) it is enough for the student ( T ) or the
teacher ( M ) to be absent. This comment can be logically written as follows:
D = M +T (1.14)
Based on expressions (1.13) and (1.14) below equation can be written
M *T = M + T (1.15)
2) lets assume that ,we have both electric heaters(E) and water radiator(R) for
heating any room (İ). For heating the room, it is enough to connect an electric heater
(E) or a radiator (R). So :
İ=E+R və ya I = E R (1.16)
In order not to heat it is necessary not to connect the electric heater () and the
radiator at the same time,
I = E*R (1.17)
6
Lecture 3
As can be seen from the tables (1.1) - (1.4) as the number of boolean variables
increases their description in table form becomes more and more difficult.For
example, for 3 variables it will be 256 and for 4 variables it will be 65536. That is
why to express the logic functions with analytic equations is more convinent. The
most convinent method is the standard way of describing the logic function. The
basis of standard description is elementary conjunction and disjunction .
When said elementar conjunction (minterm), the all possible variants of products
of logic variablesare considered (table 1.10).
When said elementary disjunction(maxterms) all possible variants of logical sums
of logic variables (table 1.10).
As can be seen from the table 1.10 elementary conjunction returns 1 only in
minterms from all possible variants. And elementary disjunction returns 0 only in
maxterms from all possible variantsElementar dizyunksiya isə giriş arqumentlərinin
bütün mümkün variantlarında ancaq bir halda sıfır qiymətini (maksterm) alır. If
boolean expression is expressed only with inversion, disjunction and conjunction
then this kind of boolean function is called normal function.
The boolean expression can be given in both disjunctive and conjunctive forms.
Disjunctive normal form means the sum of minterms (elementary conjunctions).For
example, Y=X1*X2+ X 1 *X2. Conjunctive normal form means the product of
maxterms (elementary conjunctions). For example, (X1+X2)*( X 1 +X2). The number
of elementary conjunctions and disjunctions are called its rank.
7
Table 1.10
The
values of The values of the elementar The values of the elementar
the conjunctions disjunctions
literals
X1 X2 Y= X 1 Y=X1* X 2 Y= X 1 * X 2 Y= X 1 + Y=X1+ Y= X 1 +
Y=X1*X2*X2 Y=X1+X2 +X2 +X2 +X2
0 0 0 0 0 1 0 1 1 1
1 0 0 0 1 0 1 0 1 1
0 1 0 1 0 0 1 1 0 1
1 1 1 0 0 0 1 1 1 0
8
Table 1.11
The values
The
of literals
value Minter Makster FDNF
of m m and
functio FCNF
n
X1 X2 X3 Y
0 0 0 1 X1* X 2 _
* X3
FDNF:
1 0 0 0 _ X1 Y= X 1 *
+X2+X X 2 * X 3 +
3 X 1 *X2*
X 3 +X1*
0 1 0 1 X 1 *X2 _
X2* X 3 +
* X3 X1* X 2 *
1 1 0 1 X1*X2 _ X3+
* X3 X1*X2*
0 0 1 0 _ X1+X2 X3;
+ X3
1 0 1 1 X1* X 2 _
*X3 MKNF:
0 1 1 0 _ Y=( X 1 +
X1+ X 2
9
+ X3 X2+X3)
*
1 1 1 1 X1*X2 _ (X1+X2
*X3 + X 3 )*
(X1+ X 2
+ X 3)
X1 X2 Y
0 0 0
1 0 0
0 1 1
1 1 1
İn above table 2 values for the result of 2 logic variables(X1, X2). Using these
values lets write analytic expression of this logic function. The FDNF form will be
like below:
Y= X 1 X2 + X1X2.
Lets simplfy this expression Н= X 1 X2 + X1X2=X2( X 1 +X2)=X2*1=X2
The analytic form of this logic function in FCNF form will be like below:
Y=(X1 +X2)( X 1 +X2).
Lets simplfy this expression:
Y=(X1 +X2)( X 1 +X2) =X1 X 1 +X1X2 + X2 X 1 + X2X2=
=0+X1X2 + X2 X 1 +X2 =X2(X1+ X 1 )= X2*1=X2.
As can be seen from the obtained equations both forms of logic functions are
exactly same with each other.
Lecture 4
If the logical function of any process is presented in a table, then the analytical
expression of that function is obtained by writing MDNF or MKNF forms. To
simplify the obtained analytical expression, it is necessary to use the basic rules of
logic function to minimize it.
10
Table 1.1
1 should be written into the cells of Karnaugh map where the minterms of logic
function returns 1 . To minimize the logic expression by this method you should
follow the below rules:
1) If the "1" is located in rows and columns corresponding to the adjacent cell, then
the conjunctions corresponding to these "1"-s will be reduced to one grouped term,
and in this conjunction variables of the same character are stored.
2) if the cells in which 1-s have been stored make square form then the
corresponding conjunctions are reduced by 2 rank. In this conjunction the variables of
the same type are stored.
3) if conjunction contains only 1 cell then logic expression remains same.
Example: simplfy the 3 variable logic expression corresponding table 1.12s.
Lets write down analytic expression of logic function corresponding to Table 1.12
Table 1.12.
X1 X2 X3 Y
0 0 0 0
1 0 0 0
0 1 0 0
1 1 0 1
0 0 1 1
1 0 1 1
0 1 1 0
1 1 1 1
11
Let’s first simplfy this expression by using the basic laws of booean algebra
X1 X1
X3 1
X3 1 1 1
X2 X2 X2
The terms that return 1-s in the Karnaugh map are X1X2 X 3 and X1X2X3. İf we
reduce these conjunctions by 1 rank and keep the same variables we will get the term
X1X2. The cells in which 1-s have been stored are conjunctions X1 X 2 X3 , X 1 X 2
X3. İf we decrease these conjunctions by 1 rank and keep the same variables we will
get conjunction X 2 X3. As a result , the function simplified by using Karnaugh map
is shown below.
Y= X1X2+ X 2 X3 (1.21)
This expression is same with the expression (1.20). So, the logic funtion written with
the expression (1.19) can be expressed as boolean expression 1.20 or 1.21 after
simplification process.
Examples:
1. simplfy the functions of boolean algebra.
* Y= X 1 X2+X1X2=X2( X 1 +X1)=X2;
* Y=X1+X1X2+X3=X1(1+X2)+X3=X1+X3;
* Y= X 1 X 2 +X1 X 2 = X 2 ( X 1 +X1)= X 2 ;
Y=X1( X 1 +X2)+X2( X 2 +X3)+X3=X1 X 1 +X1X2+X2 X 2 +X2X3+X3=0+X1X2+0+X
2X3+X3=X1X2+X3(X2+1)=
12
=X1X2+X3;
Lecture 5
memory. Programmable logic controllers that have some certain limited capacity are
also called as programmable intellectual relays.
The name of some PLC-s and PIR produced by different companies have been
given below:
PLC called ‘Simatic S5’ and ‘Simatic S7’ by Simens ;
PLC called ‘Modicon’ by Schneider Electric;
PLC called ‘LOGO’ by Simens
PIR called ‘Zelio logic’ by Schneider Electric
PIR called ‘EASY’ by Moeller;
The programming languages used for PLC and PIR are shown below:
Graphical languages:
LD (Ladder Diagram) – relay, schematic language for electric contacts;
FBD (Function Block Diaqram) – functional block diagram;
SFC (Sequential Function Chart) – sequantial function chart;
Text languages:
- STL (Statement list) – operator sheet.
The programme so called “Zelio Soft 2” is used in order to know the working
capacity and principle of this relay. “Greate new program” button is pressed to create
a new program and to select the module of programmable intellectual relay (picture
2.1).
Picture 2.2. the selection of type and module of Programmable Intellectual Relays
The programming language of the selected PIR (LADDER or FBD )is determined.
(picture 2.3).After programming language is selected the window according to
selection is opened. The window selected according to LADDER language is shown
in picture 2.4. Here, there are 1 column for placing windings and 5 columns for
placing contacts. The number of lines is 120. You can write your explanations at the
end of each line in the Comment box. The elements are placed at the bottom of screen
for writing programme. These elements serve for the following functions:
15
- input signals;
- input switches;
- inbetween relays;
- meter comparators;
-output relays;
- analog comparators;
-timers;
- clocks;
-meters;
-fast meters;
-text block;
- illumination of display;
16
- summer/winter;
17
If you bring the cursor onto each element you can see its name , quantity and
symbol. For example, in picture 20.4 the number of input signals and their syymbols
are shown.
Lecture 6
Intermediate relays:
These relays perfors certain functions at intermediate stages. However, they dont
have any connection to other devices. İn figure 2.5 the number of intermediate relays
(28) , contacts of PLC named as SR2B121BD and their symbols are shown. For
example, symbol M1 of intermediate relays M1 shows its contact and symbols in
remaining 4 cells show its windings. As seen from the figure each intermediate relay
has 4 different typed windings.it should be noted that, there is no limitation in the
number of contacts of relays. Windings perform the following functions:
[ this winding closes its contacts when power is given and opens when power is
removed;
performs the function of impulse type relay, that is, the contact switches its
position every time the winding is energized;
S (Set) this winding closes its contacts when energized and stays closed even after
power is removed;
R (Reset) when this winding is energized the relay will return to its original state.
In order to get a clear view of the operation of the windings the intermediate relay,
it is necessary to collect the schematic depicted in Figure 2.6 and view it in the
"Simulation" mode.
It should be noted that the output windings of the relays have the same function as
(Q1-Q4).
Timers:
Figure 2.7 shows the number of timers, contacts and their symbols. As you can
see from the picture, the SR2B121BD PIR has 16 timers. Each timer has two
windings:
Winding T. It performs basic functions of the timer;
Winding R. This will reset the timer (Reset)
The contacts of each timer (T1-TG) are unlimited. To select the timer features and
settings, you need to highlight the "Parameters window" by pressing the right
button on the T or R windings. After this option, the window in Figure 2.8 opens.
As you can see from the picture, the timers perform 11 functions. For each
selected function, the window depicts diagrams corresponding to the timer
winding and contact. It should be noted that the diagram in the upper line refers to
the timer winding, and the diagram in the bottom line refers to the timer contact.
The timer that will be created when the timer operates is obtained by using the
Unit and Time buttons. The features that the timers implement are the following:
Lecture 7
Timers
Figure 2.8. the window for selecting functions and parameters of timers
Function A:
21
The contacts of timer is closed after time period of ‘t’ after power is given.when
power is removed contacts are opened.
Function a :
When power is applied contacts are connected. Contacts remain closed for time
period t after power is removed. Then after time t they are opened.
Function B:
As soon as you apply the impulse voltage contacts are closed and after time t they
are opened.
Function W:
Contacts are opened and closed after time t after power has been given and
removed.
Function D:
22
While the timer is energized, the contact of the timer opens with a time interval "t".
When the voltage of the timer is removed, the process ends and the timer contacts
remain open.
Function PD :
After impulse voltage is applied to the timer winding, its contact is opened with a
"t" time interval. When the impulse voltage is applied to the R (Reset), the process
ends and the timer contacts remain open.
Function T:
Signals can be applied to the windings of the timers multiple times. If the
sum(t1+t2+t3) of periods that these signals continue is equal to the preset time t then
contacts of timer are connected. Contacts of timer will be opened when the impulse
voltage is applied to winding R. İf the signals is applied once to the main winding and
the time that it continues is equal to t then after time t it will be connected again.to
open contacts the impulse must be applied to winding R.
Function AC:
The contacts of timers are closed after time tA after the power is applied. After
time tB the power is removed contacts are opened.
Function L:
23
After power is applied to the winding of timer the contacts will be connected in
time tA and opened in time tB. This process continues periodically until voltage is
removed from its windings.
Function I:
After the impulse voltage is applied to the winding of the timer its contacts will be
connected in time tA and opened in time tB.this process will periodically continue
until impulse voltage is applied to the winding R of timer.
To analyze the timer operation, the program described in Figure 2.9 should be
explored in Simulation mode.
The following buttons illustrated in Figure 2.10 are used to select the timer
settings: The Unit button selects s-seconds, M-minutes, H-hour units. The numeric
values of these units are recorded using the Time button. If the "Latching" button is
as shown in the picture, it means that if the voltage is interrupted and restored, the
timer will resume its operation. Otherwise, that is , if there is no ‘v’ on the latching
button then timer will resume its work from beginning. If ‘v’ is placed on the latching
button then it is not possible to change selected parameters of timer from PIR panel.
24
Figure 2.9. The program written in LADDER to analyze the operation of timers.
Lecture 8
Figure 2.3 shows the selection of LADDER software language. To select FBD
software language it is necessary to click the button “FBD” in section “Select the
programming type” from the window “Module selection” . Then following window is
popped up. (Figure 2.28).
In the figure, 8 inputs of the SR2B121BD PIR are shown on the left, and 4 outputs
on the left. The IE, I2, I3, and I4 inputs can only be discrete signals, and discrete and
analog signals may be sent the IB, IB, ID, IE inputs.
The symbols and total number of input signals are shown in figure 2.29
The symbol shows that it can be discrete input signals and can be set to inputs
(İ1, İ2, İ3, İ4). The options for discrete input pulses are displayed in the settings
window (Figure 2.30) to describe the field and input signals in different ways and to
write explanations.
İn case of need for filtering the discrete input signals before sending this
symbol is used. İn parameters window the parameters of the filter must be set. İn
case of need for filtering the analog input signals before sending this symbol is
used.in parameters window . cut-off frequency of analog signal must be set in
parameters window.
26
Other input signals are placed in the program area. These input signals are as
follows:
Timers:
The symbol of A/C timers and its parameters window are shown in figure 2.33.
connection and disconnection time is adjustable.
The symbol of B/H timers and its parameters window are shown in figure 2.34. as
cann be seen from parameters window it has two functions :
- function B. In this case, the duration of the output signal (T), regardless of the
duration of the input signal, does not change.
-function H. In this case, the duration of the input signal must be greater than the
duration of the output signal (T).
The symbol and parameters window of LI timer are shown in figure 2.35. this
timer has the following functions:
- Function Li. In this mode, during the duration of the input signal, the output signal
receives "1" and then "0" periodically, depending on the time of connection and
disconnection
- Function L. İn this mode during the duration of input signal output signal
becomes ‘0’ and ‘1’ periodically for connecting and disconnecting times respectively.
- İn Parameters window when “number of flashes” is pressed the number of
periods of output signal is shown. Note that connecting and disconnecting time is
29
considered beforehand. Timer stops after the number of periods which are set when
input signal is given are completed.
When you press the “Duration of flashes” button in the Settings window, you will
see the duration of the output signal, taking into account predicted connection and
disconnection times. When the timer is activated it stops after the preset time has
elapsed.
When you click the “Continuous of flashes” button in the Settings window, it is
assumed that the output signal will continue periodically, taking into account the
predefined connection and disconnection times. When the timer is activated, the
output signal continues periodically during the duration of the input signal.
The symbol of the BW-type timer and the settings window are shown in Figure
2.36. This timer has the following features:
- “from OFF to ON” –when input signal is sent to input there is an impulse
signal at the output;
- “from ON to OFF” - When the signal is removed from the timer input, the output
pulse is triggered;
- “from OFF to ON” and “from ON to OFF” – the output impulse is triggered
when input signal is given and when the input signal is removed
Figure 2.37. the program which shows the effect of output signal of BW timer
A / C Additional Input Time: This timer differs from the previous A / C timer
because it has a green line on the timer and has 4 inputs. The difference in the
working principle is that the values of connection and opening time for this kind of
timer is set in green inputs (figure 2.39).
B/H additional input timer: the differnece between this timer and previous one is
that you can set the connection value from green line in its side(figure 2.40).
31
Li additional input timer: the difference between this Li timer and previous Li
timer is that the values for parameters of the timer can be set from green inputs in its
side (Figure 2.41). It should be noted that incoming signals can be discrete or analog.
Lecture 10
Project
This is the first step in creating/opening an
application. The Application Steps/Substeps
Bar displays the name of the open application
in the top-right corner.
Describe
This is the second step in building the Twido
automation application. The Describe step lets
you select hardware resources from the catalog
and describe how equipment interconnect with
one-another via networks.
Program
This is the third step in setting up your Twido
application. It provides access to the following
3 substeps.
1.Configure
This substep lets you view/set:
Hardware Configuration for
the base controller, expansion
modules, communication modules
and hardware options
Data Objects Configuration
for Simple Objects, Function Blocks,
I/O Objects, and Professional
Objects
Controller Behavior
Application Program /
Password Protections
2.Program
33
3.Debug
Lets you manage the TwidoSuite-to-
PLC connection and provides access
to Animation Tables Editor and
Monitoring tasks.
Report
This is the final step in setting up your
application. It opens the Report Manager
window to select report components, configure
printing options, and export the application
report to HTML format.
Miscellaneous
Provides access General Help and information
About TwidoSuite.
Preference
Opens the User Preferences window.
Return to previous
you left it
Analyze Program
Launches and stops the Simulator.
35
Setting Preferences
Displaying Preferences
Click the Preference icon on the Steps bar to display the Preferences
window as shown below.
Preferences Window
Overvie
w
In this section, you will learn how to create and edit a program with
TwidoSuite.
2
Create/Edit Program
To Page
pic
Step 1: Create a New Project 25
Step 2: Describe Application 27
Step 3: Define Application I/O Wiring 30
Specifications
Step 4: Configure Hardware and Software 32
Resources
Step 5: Write the Program 37
Step 6: Test the Program 46
Step 7: Transfer and Run the Program 54
Step 8: Debug the Program 57
Step 9: Manage the Program Report 61
Step 1: Create a New Project
Project Window
How to Create a New Project
1. Click Create a new project in the "Project Management Actions Pane."
2. Enter a descriptive name for the project in the File Information
frame. A valid project name can contain up to 36 alphanumeric
characters (spaces allowed).
3. Specify the new path for the project directory or use the default path.
In the Directory text box, either enter directly the storage directory
path or click the Browse button located immediately to the right of the
Directory text box to locate the folder where the project files will be
stored.
4. Enter project authoring information in the Project Information
frame. This includes providing Author’s name, Department name,
project version number in Index field and Industrial Property.
5. In the Comments tab, include the name of the project and write
a brief description. Use the right scrollbar to read the complete
text.
6. If you are updating an existing project, click the Description tab
to view a thumbnail representation of the system architecture (see
Step 2: Describe Application, page 27).
7. Select the Image tab and click Modify to customize the project
picture, or use the default picture. The project picture is printed on the
front cover of the project report (see Step 9: Manage the Program
Report, page 61). A valid picture file must be in the .BMP format.
8. Click Create to save your changes to the new project file.
Note: If you are updating information of an existing project, click
Apply to save your changes.
Step 2: Describe Application
Describe
Window In the Describe window, you declare the Twido automation system
elements selecting hardware resources from the catalog and describing
how equipment interconnect with one-another via networks.
Lecture 11
Introductio
n
Before you proceed with programming of your application, you must
set your application I/O wiring specifications.
Introduction
Now that you have declared the hardware elements in the Describe step,
you will need to configure hardware and software resources.
To have access to hardware and software configuration options, select
6.
Lecture 12
Use the
Progra
m program which is the core of your Twido automation application.
Editor Major programming and configuration features include reversible
to ladder and list language programming.
develop
This section will focus on providing you the basics of Ladder language
the
programming in TwidoSuite program editor. For details on List
main
language programming and Ladder/List reversibility features, please
refer to the TwidoSuite Programming Guide on the CD-ROM.
on the TwidoSuite Steps bar and click Edit Program on the task bar.
NOTE: In program mode, the task bar provides access to the Symbol
Editor as well.
1 Add rung
2 Insert rung
3 Add normally open contact
4 Add normally closed contact
5 Add coil
6 Add inverse coil
7 Add link
8 Remove link
9 Add Comparison block
10Add Operation block
11Add Timer block
12Add Counter block
13Add Jump or Subroutine Call
14Extended Ladder Palette buttons (see below)
Lecture 13
Note: At this stage, you will note that the red color bar shows that the rung
is still invalid.
ou must specify an address to each element in the
8. Y rung. Click the address field above each element
a r the input contact and %Q0.0 for output coil
n (example). Note that you may also optionally
d specify a symbol and comment for each element.
e
n
t
e
r
Result: The yellow color bar indicates that this rung
t is valid, but has not been analyzed (compiled with the
h program) yet.
e 9. Click the Analyze icon to start the program
validation process and check for possible program
d errors in the Error list box.
e
NOTE: To find out more about program edition rules
s
and procedures, please refer to the TwidoSuite
i
Operation Guide - Online Help.
r
e
Example Program for the Automatic-Watering System
d
This section gives you the ladder program that applies
a to the automatic-watering system example. This
d application consists of 2 independent processes:
d Water tank level management
r Watering Count
e This wil require to create 2 sections in the program, one
s for each process.
s
Water tank level management section
.
Insert the first section of the program, and create the
E following program.
n
t
e
r
%
I
0 Description of the water tank level regulation
. process:
0 1 Whenever the water low-level is reached (%I0.1
is closed), the water-pump is started (%Q0.0 is
f
closed). Note that %I0.0 remains normally
o
c hed (%I0.0 is open), the water-pump is stopped
l (%Q0.0 coil is activated and %Q0.0 contact is
o closed). Note that the %Q0.0 contact allows to
s keep the water-pump running until the water high-
e level is reached.
d
.
2 W
h
e
n
e
v
e
r
t
h
e
w
a
t
e
r
h
i
g
h
-
l
e
v
e
l
r
e
a
c
Project Save current project task and click the Save button.
Result: The project files containing the application program are
saved to the disk in the project directory which location has been
Lecture 14
specified in the project file information
window.
NOTE: It is good practice to frequently save your project to the PC
disk as you are writing larger ladder/list instructions programs to
prevent any significant loss of work due to power shut-down or other
computer problems.
Once you
have finished
writing your
program, you
can save
your
program in
any of 2
ways:
Provided
that you
have
already
given a
name to
your
application
and
specified
the project
directory
(see Step
1: Create a
New
Project,
page 25),
click the
Save
current
project
shortcut on
the Quick
Access Bar.
Select
Step 6: Test the Program
Introductio
n
TwidoSuite offers a simulator function that enables you to test a newly
written program without loading it on a controller. The Twido
Simulator lets you run the program and test different parameters in
order to see if the expected responses are occurring.
RUN, ERR, and STAT LEDs are simulated in the Twido Simulator
dashboard as they would appear on a connected base controller (for
details about these LEDs, see the Twido Hardware Reference Guide).
Using Twido Simulator Dashboard
To close the control panel dashboard:
Lecture 15
Introduction
In this section, you will find out how to transfer the program to the
Twido PLC and start running your program on the controller. Note that
a program must be saved before it can be transferred to the PLC.
Run the
Program
Use the PLC Soft Control Panel to Run/Stop/Initialize a program that
has been downloaded to the PLC (see Transfer the Program, page 54.)
To run the program that you have just tranferred to the PLC, follow this
procedure:
1. If the connection between TwidoSuite and the PLC is not active,
select a connection from the connections table in Program
Debug Connect task and click OK to establish a connection.
2. When a successful connection is established between
TwidoSuite and the controller, the PLC Soft Control Panel
dialog box appears in the form of a dashboard, always on top of
your TwidoSuite workspace.
It features the following command buttons:
RUN
STOP
INTIALIZE
3. Click RUN to execute the TwidoSuite application program currently
in controller’s RAM.
Note: Each command requires confirmation before execution.
Result: 3 soft panel LEDs (RUN, Error, Stat) provide live diagnostics.
(See
TwidoSuite Operation Guide -Online Help for details.)
Overvie
w
TwidoSuite provides many options to help you debug and adjust your
program:
Cross-Reference browser
Animation tables
Forcing I/Os
Program animation
For more details, please refer to Debugging Online via the Program
Animation in
TwidoSuite Operation Guide - Online Help.
Forcing
I/Os
Forcing I/Os means that you forcibly set the values of one or more
input or output bits to either 0 or 1.
NOTE: You can force I/Os when TwidoSuite is in online mode, with
the controller either in Run or Stop mode.
How to Force I/Os in an Animation Table
The animation table tool bar provides Force Commands:
Force to 1
Force to 0
Clear Force
Clear All Force
To force a value to 0 or 1, or clear a forced value:
1. Highlight a variable in the animation table.
2. Click the desired Force to 0, Force to 1 or Clear Force
command on the animation table tool bar.
Result: In the column labeled Current in the animation table, the
forced variable displays with a "F" prefix paired with the forced state
"0" or "1": "F 0" or "F 1".
Animating a Program
You can animate both Ladder and List programs when online. This
section describes how to animate a Ladder language program. For more
details, please refer to Animating a Program in TwidoSuite Operation
Guide - Online Help.
How to Animate a Ladder Program
1. Select the Program Debug Animate program task to open the
program editor in animated mode.
Result: The program editor displays animated ladder elements.
2. Watch the animated ladder elements during program execution.
How Ladder Animation Works
You can watch the backlight of logical objects such as contacts, coils
and special objects turn on as their logical value becomes 1.
You can keep track of data variables of fonction blocks, comparison
blocks and operation blocks, including current and preset values.
NOTE: Binary operands are displayed as 0 or 1, while all other values
are displayed in hexadecimal or decimal, depending on the format
selected in Preferences
(see page 22).
Display/hide the Animation tables
Click the icon in the functions bar to display/hide the Animation tables
in the lower part of the window.
Copying Rung Objects to an Animation Table
Introductio
n
With TwidoSuite report, you create custom printouts and html exports
(to .htm file) by selecting report items from the report manager
browser.
Report
Manager
Use the report manager to select report components, configure printing
options, and export the application report to HTML format.
To configure the report, select an item from the report browser and set
the options that appear in the configuration window. For details on
report options, please refer to the TwidoSuite Operation Guide - Online
Help.
Page
Setup
Select the Report Page Setup task to set the information you want
to display in page headers and footers, and the page margins as well.
You can configure your report pages to show up to nine different types
of information in three seperate fields per header and footer line,
including:
You can configure in your report page to show up to three different
type of information in three seperate fields per header and footer,
including:
Print date
Creation date
Modification date
Project name
Any text (Free)
No text (None)
Page number/Total number of pages (Page i/n)
Page number (Page i)
TwidoSuite version
File name
Print the
Report
Select the Report Print task to prepare the report for sending to
the printer and/or to an HTML export file.
The print window allows you to:
preview the report with several page format and zooming options,
choose the destination printer and access the printer properties,
repaginate your report according to selected printing options
send your report for printing on the selected print device,
export your report to a HTML file.
Monitoring an Application
Monitoring an Application
Monitoring
Features
you to perform the following tasks:
T 1. See memory information
h 2. Set RTC time
e 3. Configure RTC correction factor
4. See Ethernet statistics
M 5. Modify modem configuration
o For details on how to use the various monitoring
n features, please refer to Hardware Monitoring
i chapter in TwidoSuite Operation Guide - Online
t help.
o
r
i
n
g
U
t
i
l
i
t
y
a
l
l
o
w
s Lecture 9
plication Launcher constitutes the launch center for the TwidoSuite software
suite.
How to Start the
The TwidoSuite application comes in several language pairs available from the
Programou can either
Schneider Electric download site:
start the program via the
English-French
TwidoSuite Application
Launcher: English-German
fro English-Spanish
m English-Italian
English-Chinese(simplified)
Depending on which language pair you installed, it lets you run TwidoSuite in
English (default language) or the other installation language.
the Use the Application Launcher to start TwidoSuite in:
Sta
Programming Mode
rt
Monitoring Mode
PLC Firmware Update
Pro
gra
ms
Sch
nei
der
Ele
ctri
c
Ap
pli
ca
Application Launcher
Options
T
h
e
A
p
NOTE: The Schneider Electric Twido PLC is delivered with firmware installed. The procedures described for
loading new firmware are only required if an update is being made. Before replacing the firmware, you should
carefully study the corresponding instructions and contact the Schneider Electric support center.
When the TwidoSuite software is connected to the PLC, the firmware version that you are currently using for your
Twido PLC can be found via the Miscellaneous button:
The Twido Windows Executive Loader Wizard is a Windows-based program that guides you through the steps
needed to update the Firmware Executive in your Schneider Electric Twido programmable controller. The
Firmware Executive is the operating system that runs your applications and manages controller operation.
The wizard provides an intuitive, point-and-click user interface that guides you through the steps of the update
procedure. It provides directions to quickly download the latest version of the executive for your controller.
See the Executive Loader Wizard User Guide for detailed instructions. This guide can be accessed using the
Exec Loader utility online help.
NOTE: Loading the firmware may not be interrupted under any circumstances as it means the module can no
longer be accessed, including via the Executive Loader Wizard. Ensure that neither the communication connection
nor the main power input is disconnected or deactivated in any way and do not deactivate the procedure with
Abort.
35011385 05/2009
1
The TwidoSuite Interface
4
Overview
Topic Page
Main Window 18
Setting Preferences 22
Main Window
TwidoSuite Workspace
Display Options