Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 39

Solutions for the Exercises

Solutions for the Exercises

Adapting the Actual Configuration (16 Bit Unit)

Adapting the Actual Configuration (32 Bit Unit)

Assign Parameters to CPU Clock Memory and Test

Symbol Table (16 bit training unit)

Symbol Table (16 bit training unit)

Symbol Table (32 bit training unit)

Symbol Table (32 bit training unit)

Jog Motor (FC 16)

Calling FC 16 in OB 1

Normally Open and Normally Closed Contacts


Task: In all three examples the light should be on when S1 is activated and S2 is not activated! Hardware S1 I 1.0 I1.0 Q 4.0
Light

S2 I 1.1 I1.1

S1 I1.0 I 1.0 Q 4.0


Light

S2 I 1.1 I1.1 I 1.0 I1.0

S1 I1.1 I 1.1 Q 4.0


Light

S2

Programmable controller

Programmable controller

Programmable controller

Software I 1.0 I 1.1 Q 4.0

I 1.0

I 1.1

Q 4.0

I 1.0

I 1.1

Q 4.0

LAD

I 1.0

& Q 4.0

I 1.0 I 1.1 A A =

& Q 4.0

I 1.0 I 1.1 AN A =

& Q 4.0

FDB
I 1.1 A AN = I 1.0 I 1.1 Q 4.0

STL

I1.0 I1.1 Q 4.0

I 1.0 I 1.1 Q 4.0

Mode Section for the Distribution Conveyor

Conveyor Movement in AUTO Mode

Counting the Transported Parts (FC 18)

Monitoring of the Transport Functions (FC 17)

Counting the Transported Parts (FC 18)

Interlock in FC 16 (Conveyor Operation)

Counting the Transported Parts (Data Word in FC 18)

Counting the Transported Parts (Data Word in FC 18)

Using temporary Variables (FC 18)

Editing a Parameter-assignable FC (FC 20)

Calling a Parameter-assignable FC (FC 20) in FC 17

Editing a Parameter-assignable FB (FB 20)

Calling a Parameter-assignable FB (FB 20) in FC 17

Exercise: Recognizing Types of Variables

Global Local L #Number_1 X L #Number_2 X T #Max_value X L #Intermediate_result X L Number_1" X T MW 40 X T #Number_2 X

Statement

Absolute Symbolic X X X X X X X

Temporary

Static

Parameter X X

X X

Overview: Stop Errors and Logical Errors


Stop Errors: Error 1 2 Interrupt Point FC 20, Network 1 FC 17, Network 3 Error Location FC 17, Network 2 FC 17, Network 3 Incorrect -> Correct Instruction CALL FC 20 Flash freq.: DBX 10.3 CALL FB 20, DB 2 (Instance DB 2 not available) L DB 18.DBW 10 L #Setpoint >=I CALL FC 20 Flash freq.: M 10.3 Create and Download Instance DB 2 L DB 18.DBW 0 L #Setpoint >=I

FC 18, Network 5

FC 18, Network 5

Logical Errors: Error 1 2 3 Fault Function Jog Conveyor to right not possible Error Location FC 16, Network 1 Incorrect -> Correct Instruction = "K_Conv_ RIGHT" CALL FB 20, DB 3 Flash freq.: : L #Setpoint = "M_Jog_ right CALL FB 20,DB3 Flash freq.: M 10.3 : L 1

Evaluation Disturbance3: FC 17, Network 4 no flash frequency Record and display act. FC 18, Network 2 Numb.of parts not correct

Troubeshooting

Troubeshooting

Troubeshooting

Troubeshooting

Troubeshooting

Troubeshooting

Troubeshooting

Troubeshooting

Determing type of Startup (OB 100)

Recording and Displaying Weight of the Transported Parts

Recording and Displaying Weight of the Transported Parts

Recording and Displaying Weight of the Transported Parts

You might also like