Siemens - S7-Bas-14

Post on 30-Nov-2014

90 views 6 download

Transcript of Siemens - S7-Bas-14

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 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

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

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

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

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