39
Solutions for the Exercises

Siemens - S7-Bas-14

  • Upload
    chnandu

  • View
    90

  • Download
    6

Embed Size (px)

Citation preview

Page 1: Siemens - S7-Bas-14

Solutions for the Exercises

Page 2: Siemens - S7-Bas-14

Solutions for the Exercises

Page 3: Siemens - S7-Bas-14

Adapting the Actual Configuration (16 Bit Unit)

Page 4: Siemens - S7-Bas-14

Adapting the Actual Configuration (32 Bit Unit)

Page 5: Siemens - S7-Bas-14

Assign Parameters to CPU Clock Memory and Test

Page 6: Siemens - S7-Bas-14

Symbol Table (16 bit training unit)

Page 7: Siemens - S7-Bas-14

Symbol Table (16 bit training unit)

Page 8: Siemens - S7-Bas-14

Symbol Table (32 bit training unit)

Page 9: Siemens - S7-Bas-14

Symbol Table (32 bit training unit)

Page 10: Siemens - S7-Bas-14

Jog Motor (FC 16)

Page 11: Siemens - S7-Bas-14

Calling FC 16 in OB 1

Page 12: Siemens - S7-Bas-14

Normally Open and Normally Closed ContactsTask: In all three examples the light should be on when S1 is activated and S2 is not activated!

I 1.0 I 1.1 Q 4.0 I 1.0 I 1.1 Q 4.0

A I 1.0

AN I 1.1

= Q 4.0

Q 4.0

I 1.0

I 1.1

&

Q 4.0

I 1.0

I 1.1

&

Q 4.0

I 1.0

I 1.1

&

A I1.0

A I1.1

= Q 4.0

AN I 1.0

A I 1.1

= Q 4.0

Software

I1.0

S1

I1.1

S2

I1.0

S1

I1.1

S2

I1.0

S1

I1.1

S2

Q 4.0

Programmable controller

LightLight Light

Q 4.0

Programmable controller

Q 4.0

Programmable controller

FDB

STL

LAD

Hardware

I 1.0 I 1.1 Q 4.0

I 1.0 I 1.1 I 1.0 I 1.1 I 1.0 I 1.1

Page 13: Siemens - S7-Bas-14

Mode Section for the Distribution Conveyor

Page 14: Siemens - S7-Bas-14

Conveyor Movement in AUTO Mode

Page 15: Siemens - S7-Bas-14

Counting the Transported Parts (FC 18)

Page 16: Siemens - S7-Bas-14

Monitoring of the Transport Functions (FC 17)

Page 17: Siemens - S7-Bas-14

Counting the Transported Parts (FC 18)

Page 18: Siemens - S7-Bas-14

Interlock in FC 16 (Conveyor Operation)

Page 19: Siemens - S7-Bas-14

Counting the Transported Parts (Data Word in FC 18)

Page 20: Siemens - S7-Bas-14

Counting the Transported Parts (Data Word in FC 18)

Page 21: Siemens - S7-Bas-14

Using temporary Variables (FC 18)

Page 22: Siemens - S7-Bas-14

Editing a Parameter-assignable FC (FC 20)

Page 23: Siemens - S7-Bas-14

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

Page 24: Siemens - S7-Bas-14

Editing a Parameter-assignable FB (FB 20)

Page 25: Siemens - S7-Bas-14

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

Page 26: Siemens - S7-Bas-14

Exercise: Recognizing Types of Variables

Absolute Symbolic

XXXXX

XX

Temporary Static Parameter

XX

XX

X

L #Number_1

T #Max_value

T MW 40

Statement

L #Number_2

L #Intermediate_resultL “Number_1"

T #Number_2

Global

XX

Local

XXXX

X

Page 27: Siemens - S7-Bas-14

Overview: Stop Errors and Logical Errors

Incorrect -> Correct InstructionInterrupt PointError

CALL FC 20 CALL FC 20Flash freq.: DBX 10.3 Flash freq.: M 10.3FC 20, Network 11

= "K_Conv_ = "M_Jog_ RIGHT" right FC 16, Network 11

CALL FB 20, DB 3 CALL FB 20,DB3Flash freq.: Flash freq.: M 10.3FC 17, Network 42

: :L #Setpoint L 1FC 18, Network 23

Stop Errors:

Error Location

FC 17, Network 2

CALL FB 20, DB 2 Create and(Instance DB 2 Download not available) Instance DB 2

FC 17, Network 32 FC 17, Network 3

L DB 18.DBW 10 L DB 18.DBW 0L #Setpoint L #Setpoint>=I >=I

FC 18, Network 52 FC 18, Network 5

Incorrect -> Correct InstructionError LocationError

Logical Errors:

Jog Conveyor to rightnot possible

Evaluation Disturbance3:no flash frequency

Record and display act. Numb.of parts not correct

Fault Function

Page 28: Siemens - S7-Bas-14

Troubeshooting

Page 29: Siemens - S7-Bas-14

Troubeshooting

Page 30: Siemens - S7-Bas-14

Troubeshooting

Page 31: Siemens - S7-Bas-14

Troubeshooting

Page 32: Siemens - S7-Bas-14

Troubeshooting

Page 33: Siemens - S7-Bas-14

Troubeshooting

Page 34: Siemens - S7-Bas-14

Troubeshooting

Page 35: Siemens - S7-Bas-14

Troubeshooting

Page 36: Siemens - S7-Bas-14

Determing type of Startup (OB 100)

Page 37: Siemens - S7-Bas-14

Recording and Displaying Weight of the Transported Parts

Page 38: Siemens - S7-Bas-14

Recording and Displaying Weight of the Transported Parts

Page 39: Siemens - S7-Bas-14

Recording and Displaying Weight of the Transported Parts