Lab02-Basic Logic Operations
Lab02-Basic Logic Operations
Exercise 3
Each programmable logic controller has a certain number of inputs and Technical knowledge
outputs, through which it is connected with the sensors and actuators.
The program transferred to the controller contains the commands which
interconnect the individual inputs and assigns these to the correspond-
ing outputs.
Table A3.2:
The assignment function LD
%IX1 %QX2
Current rung with normally
open contact and non-stored coil.
FBD
IL
Storage of contents of
ST %QX2
accumulator to specified output.
ST
Actuation of a push button (S1) is to cause a lamp (H1) to be switched Problem description
on. The lamp is to be illuminated as long as the push button is actuated.
Positional sketch
S1
H1
1. Drawing up the electrical circuit diagram and constructing the circuit Exercise definition
2. Describing the control task by means of the function table and the
boolean equation
3. Declaration of PLC program variables
4. Formulation of the PLC program in the various programming lan-
guages
5. Testing and commissioning of the PLC program and system
Implementation 3.1 Drawing up the electrical circuit diagram and constructing the
circuit
Complete the electrical circuit diagram on the worksheet.
Assemble the required equipment on the slotted assembly board:
3.2 Describe the control task by means of the function table and
the boolean equation
Describe the behaviour of the control system irrespective of technolo-
gy by means of the function table and the associated boolean equa-
tion.
3.4 Formulation of the PLC program into one of the PLC program-
ming languages
Select one of the programming languages supported by your PLC
system. Suitable languages for the formulation of logic control sys-
tems are LD, FBD, IL and ST.
WORKSHEET
I
24V
PLC
0V
Q
0V
3.2 Describing the control task by means of the function table and
the boolean equation
Create the function table
S1 H1 Function table
0
1
Booleam equation
3.4 Formulation of the PLC program into one of the PLC program-
ming languages
Formulate the solution of the control task in one of these languages:
Function block diagram (FBD)
Ladder diagram (LD)
Instruction list (IL)
Structured text (ST)
Worksheet
PLC program
Question 1:
What is the behaviour of a non-stored programmed output, if the input
signal is no longer applied?
Question 2:
Describe the basic design of an output module.
To be able to realise the logic NOT function with a PLC Training aim Training aim
Technical knowledge
The NOT function
The NOT function is used to convert binary signals into opposing
signals:
If the signal is 0, it is evaluated as 1
If the signal is 1, it is evaluated as 0
Table A4.1 illustrates an example of the behaviour of the NOT function
or an input %IX1 and an output %QX2.
Table A4.2 contains the commands for the implementation of the NOT
function in the individual programming languages.
Table A4.2:
The NOT function LD
%IX1 %QX2
Current rung with normally
/ closed contact and non-stored coil.
FBD
IL
Storage of contents of
ST %QX2
accumulator to specified output.
ST
A thin wire has been stretched behind a display window, which breaks if Problem description
a burglary is attempted. A closed circuit is interrupted as a result of this
and a buzzer is sounded.
Positional sketch
H1
S1
1. Drawing up the electrical circuit diagram and constructing the circuit Exercise definition
2. Describing the control task by means of the function table and the
boolean equation
3. Declaration of the PLC program variables
4. Formulation of the PLC program into one of the PLC programming
languages
5. Testing and commissioning of the PLC program and system
Implementation 4.1 Drawing up the electrical circuit diagram and constructing the
circuit
Complete the electrical circuit diagram on the worksheet.
Assemble the required equipment on the slotted profile plate:
4.2 Describing the control task by means of the function table and
the boolean equation
Describe the behaviour of the control system irrespective of technolo-
gy by means of a function table and the associated boolean equation.
4.4 Formulation of the PLC program into one of the PLC program-
ming languages
Select one of the programming languages supported by your PLC
system. Suitable languages for the formulation of logic control sys-
tems are LD, FBD, IL and ST.
WORKSHEET
I
24V
PLC
0V
Q
0V
4.2 Describing the control task by means of the function table and
the boolean equation
Create the function table:
S1 H1 Function table
0
1
Boolean equation
4.4 Formulation of the PLC program into one of the PLC program-
ming languages
Formulate the solution of the control task in one of these languages:
Function block diagram (FBD)
Ladder diagram (LD)
Instruction list (IL)
Structured text (ST)
WORKSHEET
PLC-program
Question:
The output is set non-stored. What is the effect on the output signal, if
the wire is broken and has to be repaired?
Functions are part of the program organisation units and therefore Technical knowledge
represent a means for configuring PLC programs. EN 61131-3
(IEC 61131-3) provides standardised functions for the solution of basic
control technology tasks.
The function table for the AND function is illustrated below for the two
inputs %IX1 and %IX2 as well as %QX3.
Table A5.2 contains the commands for the realisation of the AND func-
tion in the individual programming languages.
Table A5.2:
The AND function LD
FBD
IL
ST
A press stamp 1A1 is to advance only if a push button S1 is actuated Problem description
and a protective guard is closed. If one of these conditions is not met,
the press tool is to return immediately.
The position of the closed protective guard B1 is monitored by a proximi-
ty switch B1. The press tool is advanced or retracted by means of a
spring return solenoid valve (coil 1Y1).
Positional sketch
1A1
S1
B1
1. Drawing up the electrical circuit diagram and constructing the circuit Exercise definition
2. Describing the control task by means of the function table and the
boolean equation
3. Declaration of the PLC program variables
4. Formulation of the PLC program into one of the PLC programming
languages
5. Testing and commissioning of the PLC program and system
Implementation 5.1 Drawing up the electrical circuit diagram and constructing the
circuit
Complete the electrical circuit diagram on the worksheet.
Assemble the required equipment on the slotted profile plate:
5.2 Describing the control task by means of the function table and
the boolean equation
Describe the behaviour of the control system irrespective of technolo-
gy by means of a function table and the associated boolean equation.
5.4 Formulation of the PLC program into one of the PLC program-
ming languages
Select one of the languages supported by your PLC system for pro-
gramming. Suitable languages for the formulation of logic control sys-
tems are LD, FBD, IL and ST.
WORKSHEET
I
24V
PLC
0V
Q
0V
Circuit diagram,
electro-pneumatic 1A1
1V1 4 2
1Y1
5 3
1
5.2 Describing the control task by means of the function table and
the boolean equation
Create the function table
Function table S1 B1 1Y1
Boolean equation
WORKSHEET
5.4 Formulation of the PLC program into one of the PLC program-
ming languages
Formulate the solution of the control task into one of these languages:
Function block diagram (FBD)
Ladder diagram (LD)
Instruction list (IL)
Structured text (ST)
PLC-Program
Question:
Does output 1Y1 have to be set stored or non-stored?
Technical knowledge
The OR function
If at least one of the connected signals is 1, the result is also 1. Only if
all the connected signals are 0 is the result also 0.
Table A6.1 contains the function table for the OR connection of the sig-
nal from input %IX1 and input %IX2. The result is mapped to output
%QX3.
Table A6.2 contains the commands for the realisation of the OR function
in the individual programming languages.
Table A6.2:
The OR function LD
%IX1 %QX3
Rung with parallel switching
normally open contacts.
%IX2
FBD
IL
ST
An apartment bell is to ring if bell button S1 at the front door is pressed Problem description
or bell button S2 at the apartment door.
Positional sketch
S2
H1
S1
1. Drawing up the electrical circuit diagram and constructing the circuit Exercise definition
2. Describing the control task by means of the function table and the
boolean equation
3. Declaration of the PLC program variables
4. Formulation of the PLC program into one of the PLC programming
languages
5. Testing and commissioning of PLC program and system
Implementation 6.1 Drawing up the electrical circuit diagram and constructing the
circuit
Complete the electrical circuit diagram on the worksheet.
Assemble the required equipment on the slotted profile plate:
6.2 Describing the control task by means of the function table and
the boolean equation
Describe the behaviour of the control system irrespective of technolo-
gy by means of a function table and the associated boolean equation.
6.4 Formulation of the PLC program into one of the PLC program-
ming languages
Select one of the programming languages supported by your PLC
system. Suitable languages for the formulation of logic control sys-
tems are LD, FBD, IL and ST.
WORKSHEET
I
24V
PLC
0V
Q
0V
6.2 Describing the control task by means of the function table and
the boolean equation
Create the function table:
Function table S1 S2 H1
Boolean equation
WORKSHEET
PLC program
Question:
In the case of the OR function, the output is set if at least one input
signal is set. With the exclusive OR unction, the output is set only if
exactly one of the connected inputs is set. Complets the function table.
Function table S1 S2 H1
0 0
0 1
1 0
1 1