understanding siemens plc s7-200 xp

31
PLC Siemens S7 200 www.nfiautomation.org nf i

Upload: nfi-industrial-automation-training-academy

Post on 16-Apr-2017

3.411 views

Category:

Education


5 download

TRANSCRIPT

Page 1: Understanding Siemens PLC S7-200 XP

PLC Siemens S7 200 www.nfiautomation.org

nfi

Page 2: Understanding Siemens PLC S7-200 XP

S7 200 PLC Wiring Diagramwww.nfiautomation.

org

Page 3: Understanding Siemens PLC S7-200 XP

www.nfiautomation.org

PLC Programming Software Step 7

USB PPI Cable for

Programming

Page 4: Understanding Siemens PLC S7-200 XP

Input/ Output Addressing

I 0.0 First InputI 0.1 Second Input

AIW0

First InputAIW

2Second Input

Analog Input Addressing (AIW0 ~ AIW30)

Digital Input Addressing (I 0.0 ~ I 15.7)

Q 0.0

First OutputQ

0.1Second Output

Digital Output Addressing (Q 0.0 ~ Q 15.7)

AQW0

First OutputAQW

2Second Output

Analog Output Addressing (AQW0 ~ AQW30)

M 0.0 ~ M31.7

Bit Memory (M)

LB0 ~ LB63Local Memory (L) - Volatile

VB0 ~ VB2047

Variable Memory (V) – Non Volatile

SM0.0~ SM299.7

Special Memory (SM)

www.nfiautomation.org

Page 5: Understanding Siemens PLC S7-200 XP

Timers, Counters & Other AddressingTime Base ON/OFF Timer Retentive Timer

1 ms T32, T97 T0, T64

10 ms T33 ~ T36, T97 ~ T100

T1 ~ T4T65 ~ T68

100 ms T37 ~ T63T101 ~ T255

T5 ~ T31T69 ~ T95

Elements AddressesCounters C0 C255

High Speed Counters HC0 ~ HC25

Sequential Control Relays S0.0 ~ S31.7

Positive/ Negative Transition 256

Jump/Label 0 ~ 255Call/ Subroutine 0 ~ 63

www.nfiautomation.org

Page 6: Understanding Siemens PLC S7-200 XP

System Status BitsSPECIAL MEMORY

BITDESCRIPTIONS

SM 0.0 Always ONSM 0.1 First SCAN ON- On for only one scan cycle

SM 0.3 RUN Power Up – ON for 1 scan cycle when PLC goes to RUN mode

SM 0.4 60s Clock Pulse – ON for 30 seconds & OFF for 30 seconds SM 0.5 1s Clock Pulse – ON for 0.5 second & OFF for 0.5 secondSM 0.6 Clock Scan – ON for 1st Scan & Off for 2nd Scan & so on…

SM 0.7 Mode Switch – Indicate Current position of Mode SwitchOFF = TERM Position ON = RUN Position

SM 4.7 Force ON – Turn ON when any memory location is ForcedSMW22 Word provide SCAN time of Last scan

SMW24 Word provide min. SCAN time recorded since entering RUN Mode

SMW26Word provide max. SCAN time recorded since entering RUN Mode

SMB28 Pot_0_Value = Stores the value entered with analog adjustment

SMB29 Pot_1_Value = Stores the value entered with analog adjustment

www.nfiautomation.org

Page 7: Understanding Siemens PLC S7-200 XP

Range of BitsType Range

(Unsigned)Byte, B 0 ~ 255; 0 ~ FF

Word, W 0 ~ 65535; 0 ~ FFFF

Double Word, D 0 ~ 4294967295 0 ~ FFFFFFFF

www.nfiautomation.org

Page 8: Understanding Siemens PLC S7-200 XP

PLC software view

Page 9: Understanding Siemens PLC S7-200 XP

Dragging symbols

Symbols in parallel

Blocks are connected

Page 10: Understanding Siemens PLC S7-200 XP

SIEMENS INSTRUCTIONSInputs are written as : I0.0 - first input, I0.1- second input and so on, for first card. I1.0 - first input, I1.1 - second input and so on, for 2nd card.

Outputs are written as :Q0.0 – first output, Q0.1 – second output and so on, for first card. Q1.0 - first output, Q1.1 - second output and so on, for 2nd card.

NO, during off state

NO, during on state

Page 11: Understanding Siemens PLC S7-200 XP

NORMALLY CLOSED CONTACT NC, during off state

NC, during on state

O/P, during off state

O/P, during on state

OUTPUT COIL

Page 12: Understanding Siemens PLC S7-200 XP

NORMALLY OPEN IMMEDIATE contact:

NORMALLY CLOSED IMMEDIATE contact:

OUTPUT IMMEDIATE:

NOI, during off state NOI, during on state

NCI, during off state NCI, during on state

OPI, during off state OPI, during on state

Page 13: Understanding Siemens PLC S7-200 XP

NOT command:

SET / RESET immediate:

When button is not pressed

When button is pressed

SI, during on state RI, when button is pressed

Page 14: Understanding Siemens PLC S7-200 XP

SET Command:

RESET command

Set during active state

Page 15: Understanding Siemens PLC S7-200 XP

POSITIVE transition:

NEGATIVE transition:

When button is pressed, it gives one pulse

When button is released, it gives one pulse

Page 16: Understanding Siemens PLC S7-200 XP

SET RESET dominate bi stable:

RESET SET dominate bi stable:

When both buttons are pressed

When both buttons are pressed

Page 17: Understanding Siemens PLC S7-200 XP

T38 is timer number, PT is preset timing value

ON delay timer

Timers:

Page 18: Understanding Siemens PLC S7-200 XP

OFF delay timer:

RETENTIVE timer:

When PLC is on When PLC is stopped

Page 19: Understanding Siemens PLC S7-200 XP

COUNTERS:

UP Counter

Down counter, loading contact

Down counter, counting reverse

Page 20: Understanding Siemens PLC S7-200 XP

UP-DOWN Counter:

UP counter is active DOWN counter is active

Page 21: Understanding Siemens PLC S7-200 XP

INC/DEC command:

MOVE Command:

Button is pressed Data register is incremented

Button is pressed Data register is decremented

Before execution After execution

Page 22: Understanding Siemens PLC S7-200 XP

ARITHMATIC Commands:ADD

Similarly for SUB, DIV and MUL.

BLOCK MOVE command:

Before execution After execution

Before execution After execution

Page 23: Understanding Siemens PLC S7-200 XP

MOVE byte immediate read:

MOVE byte immediate write:7 shows, 1st 2nd 3rd inputs are ON

5 shows, 1st and 3rd outputs are ON

Page 24: Understanding Siemens PLC S7-200 XP

COMPARE instructions:

Equal to command

Greater than commandSimilarly for Less than, Not equal to and Less or Greater than equal to.

Page 25: Understanding Siemens PLC S7-200 XP

JUMP LABEL instruction:

Page 26: Understanding Siemens PLC S7-200 XP

Exercise 1Devise a circuit that can be used to start a motor (Q0.0) and then after a delay of 10 sec start a pump (Q0.1).

When the motor is switched off there should be delay of 10 sec before the pump is off.

Exercise 2Device a circuit in which When I0.0 is pressed once– Q0.0 gets ON, Q0.1,Q0,2 get off, When I0.1 is pressed again – Q0.1 gets ON and Q0.0, Q0.2

get OFF When I0.1 is pressed again – Q0.2 gets ON and Q0.0, Q0.1

get OFF When pressed again, Cycle should repeat

Page 27: Understanding Siemens PLC S7-200 XP

Exercise 3Device a circuit in which When I0.0 is pressed – Q0.0 gets ON, Q0.1,Q0,2 get

off, When I0.1 is pressed again – Q0.1 gets ON and Q0.0,

Q0.2 get OFF When I0.1 is pressed again – Q0.2 gets ON and Q0.0,

Q0.1 get OFF

Exercise 4Device a circuit in which Q0.0 is on only when I0.0 is pressed in 10 sec. just after start of the machine(I0.1). Otherwise if I0.0 is pressed after 10 sec. Nothing should happen.

Page 28: Understanding Siemens PLC S7-200 XP

Exercise 5Device a circuit, in which if I0.0 is pressed once Q0.0 should ON and when I0.0 is pressed again Q0.0 should turn off.

Exercise 6Use one push button (I0.0) turn ON Q0.0 in following sequence:Q0.0 ON for 2 sec. then OFF for 2 sec. then ON for 3 sec. then OFF for 3 sec then ON for 4 sec. then continuously off.

Page 29: Understanding Siemens PLC S7-200 XP

Exercise 7When you press I0.0, Q0.0 and Q0.1 should blink with a delay of 2 sec continuously and when you press I0.1 , Q0.0 and Q0.1 should blink with a delay of 3 sec.

Exercise 8Start a bulb as soon as PLC run and stop the bulb as soon as PLC stops.

Page 30: Understanding Siemens PLC S7-200 XP

Exercise 9I have a constant 10 in VW0

Multiply it with 100 Add 45 to it Subtract 14 from it Finally store it in VW10

Exercise 10In dangerous processes it is common to use two palm buttons that require a operator to use both hands to start a process (this keeps hands out of presses, etc.).

To develop this there are two inputs (I0.0, I0.1) that must be turned on within 3s of each other before a machine (Q0.0) turned ON.

Page 31: Understanding Siemens PLC S7-200 XP

Thanks

nfi

www.nfiautomation.org