Toaz - Info Itacr E311 Multiprog Exercises and Solutions Festo PLC Double Side PR - PDF
Toaz - Info Itacr E311 Multiprog Exercises and Solutions Festo PLC Double Side PR - PDF
Toaz - Info Itacr E311 Multiprog Exercises and Solutions Festo PLC Double Side PR - PDF
Exercises
Solutions
Festo Didactic
E311 Fundamentals and Applications of Programmable Logic Controllers
3
Exercise 1
Exercise 1
Problem Description
Festo Didactic
4
Exercise 1
Solution 1
Electrical Circuit Diagram
24V
0V
S1
24V
PLC
0V
H1
0V
Variables
Festo Didactic
6
Solution 1
Ladder Programming
Input0_0 Output0_0
IL Programming
LD Input0_0
ST Output0_0
ST Programming
Output0_0:=Input0_0;
FBD Programming
Input0_ Output0_
0 0
Exercise 2
Problem Description
Festo Didactic
8
Exercise 2
Solution 2
Electrical Circuit Diagram
24V
0V
S1
24V
PLC
0V
H1
0V
Variables
Festo Didactic
10
Solution 2
Ladder Programming
Input0_ Output0_
0 0
IL Programming
LDN Input0_0
ST Output0_0
ST Programming
FBD Programming
Input0_ Output0_
0 0
OR
NOT
Input0_ Output0_
0 0
Exercise 3
Problem Description
Festo Didactic
12
Exercise 3
Festo Didactic
14
Solution 3
Solution 3
Electro-Pneumatic Circuit Diagram
Variables
Ladder Programming
IL Programming
LD Input0_0
AND Input0_1
ST Output0_0
ST Programming
FBD Programming
AN
D
Input0_
0
Input0_ Output0_
1 0
Festo Didactic
16
Exercise 4
Exercise 4
The OR Function
Problem Description
Festo Didactic
18
Solution 4
Solution 4
Electrical Circuit Diagram
Variables
Ladder Programming
Input0_ Output0_
0 0
LDInput0_
Input0_1
1
OR Input0_2
ST Outuput0
IL Programming
LD Input0_0
OR Input0_1
ST Output0_0
ST Programming
OR
Input0_
0
Input0_ Output0_
1 0
Festo Didactic
20
Exercise 5
Exercise 5
Problem Description
Festo Didactic
22
Exercise 5
Solution 5
Electro-Pneumatic Circuit Diagram
Festo Didactic
24
Solution 5
Variables
Ladder Programming
LD Input0_0
AND Input0_1
ANDN Input0_2
ST Flag1
LD Input0_0
AND Input0_2
ANDN Input0_1
ST Flag2
LD Input0_1
AND Input0_2
ANDN Input0_0
ST Flag3
LD Flag1
OR Flag2
OR Flag3
ST Output0_0
OR
Festo Didactic
26
Solution 5
FBD Programming
AND
Input0_
0
Input0_
1
Input0_
2
AND OR
Input0_
0
Input0_
1
Input0_ Output0_
2 0
AND
Input0_
0
Input0_
1
Input0_
2
Exercise 6
Problem Description
Festo Didactic
28
Exercise 6
Festo Didactic
30
Solution 6
Solution 6
Electro-Pneumatic Circuit Diagram
Variables
Ladder Programming
IL Programming
LD Input0_0
ANDN Input0_1
ST Output0_0
LD Input0_0
AND Input0_1
ST Output0_1
Festo Didactic
32
Solution 6
ST Programming
FBD Programming
AND
Input0_
0
Input0_ Output0_
1 0
AND
Input0_
0
Input0_ Output0_
1 1
Festo Didactic
34
Exercise 7
Exercise 7
Setting and Resetting of an Output
Technical Knowledge
Problem Description
Festo Didactic
36
Exercise 7
Festo Didactic
38
Solution 7
Solution 7
Electrical Circuit Diagram
Variables
Function or Function
Name Comment
Block
RS_1 RS RS Function Block 1
Ladder Diagram
Output0_0
Input0_1
S
Output0_0
Input0_0
IL Programming
LDN Input0_1
S Output0_0
LD Input0_0
R Output0_0
OR
LDN Input0_1
ST RS_1.SET
LD Input0_0
ST RS_1.RESET1
CAL RS_1
LD RS_1.Q1
ST Output0_0
ST Programming
Festo Didactic
40
Solution 7
FBD Programming
RS_1
RS
SET
Input0_
1
Input0_ RESET1 Q1 Output0_
0 0
RS-1
RS
Input0_1 Output0_0
SET Q1
Input0_0 RESET1
Festo Didactic
42
Exercise 8
Exercise 8
Transfer of a Part
Problem Description
Festo Didactic
44
Solution 8
Solution 8
Electro-Pneumatic Circuit Diagram
B1 B2
Y2
Variables
Ladder Diagram
Output0_0
Input0_0 Input0_1
S
Output0_1
Output0_1
Input0_2
S
Output0_0
IL Programming
LD Input0_0
AND Input0_1
ST Output0_0
LD Input0_2
ST Output0_1
Festo Didactic
46
Solution 8
OR
LD Input0_0
AND Input0_1
S Output0_0
R Output0_1
LD Input0_2
S Output0_1
R Output0_0
ST Programming
FBD Programming
AND
Input0_
0
Input0_ Output0_0
1
Input0_ Output0_1
2
OR
RS_1
AND
Input0_0 RS
Input0_1 SET Q1 Output0_0
Input0_2 RESET1
Input0_2 Output0_1
Festo Didactic
48
Exercise 9
Exercise 9
Activating a Cylinder
Signal Edges
Technical Knowledge
Problem Description
Festo Didactic
50
Exercise 9
• You can use any one or all of the five languages
available.
Festo Didactic
52
Solution 9
Solution 9
Electro-Pneumatic Circuit Diagram
B1 B2
Variables
Function or Function
Name Comment
Block
R_TRIG_1 R_TRIG Rising Edge 1
RS_1 RS Reset-Set 1
Ladder Diagram
R_TRIG_1
Output0_0
Input0_0 R_TRIG Input0_1
CLK Q
S
Output0_0
Input0_2
R
LD Input0_0
ST R_TRIG_1.CLK
CAL R_TRIG_1
LD R_TRIG_1.Q
AND Input0_1
S Output0_0
LD R_TRIG_1.Q
AND Input0_2
R Output0_0
Festo Didactic
54
Solution 9
ST Programming
R_TRIG_1(CLK:=Input0_0);
RS_1(SET:=R_TRIG1_1.Q AND
Input0_1,RESET1:=R_TRIG_1.Q AND Input0_2);
Output0_0:= RS_1.Q1;
FBD Programming
RS_1
AND
Input0_
RS
1 R_TRIG_1
R_TRIG SET
Q1 Output0_
Input0_ CLK Q RESET1 0
0 AND
Input0_
2
Festo Didactic
56
Exercise 10
Exercise 10
Bonding of Components
Pulse Timer
Technical Knowledge
Problem Description
Festo Didactic
58
Exercise 10
Festo Didactic
60
Solution 10
Solution 10
Electro-Pneumatic Circuit Diagram
B1
Variables
Function or Function
Name Comment
Block
TP_1 TP Timer Preset 1
Ladder Diagram
TP_1
Input0_0 Input0_1 TP Output0_0
IN Q
T#5s PT ET
IL Programming
LD Input0_0
AND Input0_1
ST TP_1.IN
LD T#5s
ST TP_1.PT
CAL TP_1
LD TP_1.Q
ST Output0_0
Festo Didactic
62
Solution 10
ST Programming
Festo Didactic
64
Exercise 11
Exercise 11
Embossing Device
Technical Knowledge
Problem Description
Festo Didactic
66
Exercise 11
Festo Didactic
68
Solution 11
Solution 11
Electro-Pneumatic Circuit Diagram
B1 B2
Variables
Function or Function
Name Comment
Block
TON_1 TON Timer Delay On 1
RS_1 RS Reset-Set 1
Ladder Diagram
TON_1
Input0_0 Input0_1 TON Output0_0
IN Q S
T#3s PT ET
Input0_2 Output0_0
R
Festo Didactic
70
Solution 11
IL Programming
LD Input0_0
AND Input0_1
ST TON_1.IN
LD T#3s
ST TON_1.PT
CAL TON_1
LD TON_1.Q
S Output0_0
LD Input0_2
R Output0_0
ST Programming
TON_1 RS_1
AND
Input0_
TON RS
0
Input0_
1
IN Q SET Q1 Output0_0
T#3s PT ET RESET1
Input0_
2
Festo Didactic
72
Exercise 12
Exercise 12
Clamping Device
Technical Knowledge
Problem Description
Festo Didactic
74
Exercise 12
Festo Didactic
76
Solution 12
Solution 12
Electro-Pneumatic Circuit Diagram
B1 B2
Variables
Function or Function
Name Comment
Block
TOF_1 TOF Timer Delay Off 1
R_TRIG_1 R_TRIG Rising Edge 1
RS_1 RS Reset-Set 1
RS_2 RS Reset-Set 2
Festo Didactic
78
Solution 12
Ladder Diagram
TOF_1
Input0_0 Input0_1 Input0_3 TOF Output0_0
IN Q
T#3s PT ET
R_TRIG_1
Input0_4 Output0_1
Output0_2
Input0_3 Output0_2
IL Programming
LD Input0_0
AND Input0_1
AND Input0_3
ST TOF_1.IN
LD T#3s
ST TOF_1.PT
CAL TOF_1
LD TOF_1.Q
ST Output0_0
LD Input0_2
ST R_Trig_1.CLK
CAL R_Trig_1
LD R_Trig_1.Q
AND Input0_3
S Output0_1
LD Input0_4
R Output0_1
S Output0_2
LD Input0_3
R Output0_2
ST Programming
Festo Didactic
80
Solution 12
FBD Programming
AND TOF_1
Input0_
0 TOF
Input0_
1
Input0_ IN Q Output0_
3 0
T#3s PT ET
R_TRIG_1
R_TRIG
RS_1
AND
Input0_ CLK Q RS
2
Input0_ SET Q1 Output0_
3 1
Input0_ RESET1
4
RS_2
RS
Festo Didactic
82
Exercise 13
Exercise 13
Counters
Technical Background
output parameters.
Problem Description
Festo Didactic
84
Exercise 13
Festo Didactic
86
Solution 13
Solution 13
Electro-Pneumatic Circuit Diagram
B1 B2
Variables
Function or Function
Name Comment
Block
CTU_1 CTU Counter Up 1
R_TRIG_1 R_TRIG Rising Edge 1
R_TRIG_2 R_TRIG Rising Edge 2
RS_1 RS Reset-Set 1
RS_2 RS Reset-Set 2
Festo Didactic
88
Solution 13
Ladder Diagram
Input0_0 Flag1
R_TRIG_1
CLK Q R
R_TRIG_2 CTU_1
Input0_2 R_TRIG CTU Flag2
CLK Q CU Q
Flag2 RESET
CV
5 PV
Flag2 Flag1
IL Programming
LD Input0_0
S Flag1
LD Input0_1
AND Flag1
S Output0_0
LD Input0_2
ST R_TRIG_1.CLK
CAL R_TRIG_1
LD R_TRIG_1.Q
R Output0_0
LD Input0_2
ST R_TRIG_2.CLK
CAL R_TRIG_2
LD R_TRIG_2.Q
ST CTU_1.CU
LD Flag2
ST CTU_1.Reset
LD 5
ST CTU_1.PV
CAL CTU_1
LD CTU_1.Q
ST Flag2
LD Flag2
R Flag1
Festo Didactic
90
Solution 13
ST Programming
RS_1
RS
AND
RS_2
Input0_
RS
1
Flag1
R_TRIG_1 SET Q1 Output0_
R_TRIG RESET1
0
Input0_ CLK Q
2
CTU_1
R_TRIG_2 CTU
R_TRIG
Input0_ CLK Q CU
2 Q Flag2
Flag2 RESET
CV
5 PV
Festo Didactic
92
Exercise 14
Exercise 14
Linear Sequence
Technical Knowledge
21 Initial Step
Transition Step
1
2 Action Step
Transition Step
2
3 Action Step
Transition Step
3
4 Action Step
Transition Step
4
1 Initialize
Run
1
true
3
1
Festo Didactic
94
Exercise 14
Problem Description
Festo Didactic
96
Exercise 14
Solution 14
Electro-Pneumatic Circuit Diagram
B1 B2 B3 B4
Festo Didactic
98
Solution 14
Variables
Function or Function
Name Comment
Block
SR_1 SR Set-Reset 1
SR_2 SR Set-Reset 2
SR_3 SR Set-Reset 3
SR_4 SR Set-Reset 4
SR_5 SR Set-Reset 5
SR_6 SR Set-Reset 6
SR_7 SR Set-Reset 7
Ladder Diagram
Flag1
Flag2
Flag3
Flag4
Festo Didactic
100
Solution 14
SR_1
RS
Input0_1 Input0_3 Flag1
SET1 Q1
RESET
Flag2
SR_2
RS
Flag1 Input0_0 Flag2
SET1 Q1
RESET
Flag3
SR_3
RS
Flag1 Flag2 Input0_2 Flag3
SET1 Q1
RESET
Flag4
SR_4
RS
Flag2 Flag3 Input0_4 Flag4
SET1 Q1
RESET
Flag5
SR_5
RS
Flag3 Flag4 Input0_1 Flag5
SET1 Q1
RESET
Flag1
SR_6
RS
Flag2 Output0_0
SET1 Q1
RESET
Flag4
SR_7
RS
Flag3 Output0_1
SET1 Q1
RESET
Flag5
Structured Text
102
Solution 14
SR_1
AND
SR
Input0_
1 SET1 Q1 Flag1
Input0_
3
Flag2 RESET
SR_2
AND
SR
Flag1
Input0_ SET1 Q1 Flag2
0
Flag3 RESET
SR_3
Flag1 AND
SR
Flag2
Input0_ SET1 Q1 Flag3
2
Flag4 RESET
SR_4
Flag2 AND
SR
Flag3
Input0_ SET1 Q1 Flag4
4
Flag5 RESET
SR_5
Flag3 AND
SR
Flag4
Input0_ SET1 Q1 Flag5
1
Flag1 RESET
E311 Fundamentals and Applications of Programmable Logic Controllers
103
Solution 14
SR_6
SR
Flag4 RESET
SR_7
SR
Flag5 RESET
Instruction List
LD Input0_1
AND Input0_3
ST SR_1.SET1
LD Flag2
ST SR_1.RESET
CAL SR_1
LD SR_1.Q1
ST Flag1
LD Input0_0
AND Flag1
ST SR_2.SET1
LD Flag3
ST SR_2.RESET
CAL SR_2
LD SR_2.Q1
ST Didactic
Festo Flag2
104
Solution 14
LD Input0_2
ANDN Flag1
AND Flag2
ST SR_3.SET1
LD Flag4
ST SR_3.RESET
CAL SR_3
LD SR_3.Q1
ST Flag3
LD Input0_4
ANDN Flag2
AND Flag3
ST SR_4.SET1
LD Flag5
ST SR_4.RESET
CAL SR_4
LD SR_4.Q1
ST Flag4
LD Input0_1
ANDN Flag3
AND Flag4
ST SR_5.SET1
LD Flag1
ST SR_5.RESET
CAL SR_5
LD SR_5.Q1
ST Flag5
LD Flag2
ST SR_6.SET1
LD Flag4
ST SR_6.RESET
CAL SR_6
ST Output0_0
LD Flag3
ST SR_7.SET1
LD Flag5 E311 Fundamentals and Applications of Programmable Logic Controllers
ST SR_7.RESET
CAL SR_7
ST Output0_1
105
Solution 14
S001 R Output0_0
R Output0_1
Input0_0
S002 S Output0_0
Input0_2
S003 S Output0_1
Input0_4
S004 R Output0_0
Input0_1
S005 R Output0_1
Input0_3
Festo Didactic
106
Solution 14
Exercise 15
Problem Description
Sequence abbreviation: A+ B+ B- C+ C- A-
Festo Didactic
108
Exercise 15
Solution 15
For Festo PLC
Festo Didactic
110
Solution 15
Ladder Diagram
Flag1
Flag2
Flag3
Flag4
Flag5
Flag6
Festo Didactic
112
Solution 15
S001 R Output0_0
R Output0_1
Input0_0
R Output0_2
S002 S Output0_0
Input0_2
S003 S Output0_1
Input0_4
S004 R Output0_1
Input0_3
S005 S Output0_2
Input0_6
S006 R Output0_2
Input0_5
S007 R Output0_0
Input0_1
Festo Didactic