67
Siemens S7-200 PLC training courses

plcsiemenstrainingnotes-090415065750-phpapp01(2)

Embed Size (px)

Citation preview

Page 1: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 1/67

SiemensS7-200 PLC training courses

Page 2: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 2/67

PLC history

• Classical control 

- More complicated - Longer time for maintenance 

- Time consuming troubleshooting 

- Occupies larger area in switchboards 

- Requires more wiring 

- Standard reliability  

Page 3: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 3/67

History

• Large projects requirements 

- More inputs and outputs points 

-Large program memory 

-Several programming instructions 

-Communication with other equipments 

-Deal with analogue signals 

-Deal with large number of counters, timers and markers 

Page 4: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 4/67

History

• Historical view 

Page 5: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 5/67

Course contents

• Introduction to PLC 

• Bit logic • compare 

• Timers 

• Counters 

• Memory instructions 

• Analog I/O 

• Move , shift 

• Practical examples 

Page 6: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 6/67

Introduction

• What is a PLC 

Page 7: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 7/67

Introduction

• Basic PLC operation 

Page 8: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 8/67

introduction

• S7 200 family 

Page 9: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 9/67

introduction

• S7-200 configuration 

Page 10: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 10/67

introduction

• S7-200 configuration 

mode switch and analog adjustment 

Page 11: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 11/67

introduction

• S7-200 configuration 

optional cartidge 

Page 12: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 12/67

Introduction

• S7-200 configuration 

expansion modules 

I t d ti

Page 13: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 13/67

Introduction

• S7-200 configuration 

status indicator 

I t d ti

Page 14: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 14/67

Introduction

• S7-200 configuration 

I/O numbering 

I t d ti

Page 15: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 15/67

Introduction

• S7-200 configuration 

inputs 

I t d ti

Page 16: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 16/67

Introduction

• S7-200 configuration 

outputs 

I t d ti

Page 17: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 17/67

Introduction

• S7-200 configuration 

programming software 

Page 18: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 18/67

Analogue I/O = Typical analogue signals from 0-10 VDC or 4-20 mA

= They are used to represent changing values such asspeed, temperature, weight and level

I t d ti

Page 19: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 19/67

Introduction

Analogue outputs may be used to produce 

variable reference signals for devices such as: 

# Control valves 

# Chart recorders # Electric motor drives 

# Pressure transducers 

# Analogue meters 

I t d ti

Page 20: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 20/67

Introduction

I t d ti

Page 21: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 21/67

Introduction

I t d ti

Page 22: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 22/67

Introduction

PLC P i

Page 23: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 23/67

PLC Programming

Programming lang ages

Page 24: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 24/67

Programming languages

Statement list Function block

Ladder diagram

The instructions are representedby graphic symbols:

Contacts, Coils & Boxes

The ladder diagram is the mostpopular programming language 

Instructions

Page 25: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 25/67

Instructions

Standard instructions: 

They are used in most programs.

Examples: timer, counter, math, logical, incr., decr. and move

 High speed instructions: 

They allow for events and interrupts to occur independently ofthe PLC scan time.

Examples: High speed counters and interrupts

 Special instructions: 

They are used to manipulate data

Shift, table, conversion, real time instruction.

Bit Logic instruction

Page 26: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 26/67

Bit Logic instruction

 Normally Open contact

Normally Open Immediate contact

Normally Closed contact

Not contact

Normally Closed Immediate contact

Positive Transition contact

Negative Transition contact

Input Instructions

Input contacts example

Page 27: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 27/67

Input contacts example

Output instructions

Page 28: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 28/67

Output instructions

Output Instruction

No Operation instruction

Output Immediate instruction

Set (N bits) instruction

Reset (N bits) instruction

Set Immediate (N bits) instruction

Reset Immediate (N bits) instruction

Output Set & Reset example

Page 29: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 29/67

Output, Set & Reset example

 

Starting a motor

Page 30: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 30/67

Starting a motor 

Hard wired DOL starting

Page 31: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 31/67

Hard-wired DOL starting

Induction Motor

Circuit Breaker

Contactor

ThermalOverload

InductionMotor

Aux. contact

Contact coil

Stop

O.L. contact

Start

Using PLC

Page 32: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 32/67

Using PLC

 Before start

Starting

After start

Page 33: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 33/67

 

Stopping

Input & Output connections

Page 34: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 34/67

Input & Output connections

 

Timer instructions

Page 35: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 35/67

Timer instructions

On-Delay Timer

Retentive On-Delay Timer

Off-Delay Timer

Page 36: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 36/67

Off-Delay timer

Page 37: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 37/67

Off-Delay timer 

 

The Off-Delay Timer is used to delay turning an output OFF for afixed period of time after the input turns OFF.

When (IN) turns ON, the timer bit turns ON immediately, and thecurrent value is set to 0.When (IN) turns OFF, the timer counts till PT and the timer bitturns OFF and the current value stops counting.

 

If the input is OFF for a time shorter than PT, the timer bitremains ON.

 

Timers numbers & resolutions

Page 38: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 38/67

Timers numbers & resolutions

Note 

You cannot share the same timer numbers for TOF and TON.For example, you cannot have both a TON T32 and a TOF T32.

 

Timer examples

Page 39: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 39/67

Timer examples

On-Delay

Off-Delay

Retentive

On-Delay

Hard-wired on-delay timer

Page 40: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 40/67

Hard-wired on-delay timer 

Timer example

Page 41: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 41/67

Timer example

TONR example

Page 42: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 42/67

TONR example

 

Timer example

Page 43: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 43/67

Timer example

 

Counter instructions

Page 44: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 44/67

Counter instructions

Up counter

Up/down counter

Down counter

A bottling machine, for example, may use a counter to countbottles into groups of six for packaging.

Up-counter

Page 45: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 45/67

Up counter 

It counts up on the rising edges of the Count Up (CU)

input. 

(PV), the counter bit>When the current value (Cxxx)(Cxxx) turns on.

 

The counter is reset when the Reset (R) input turns on. 

Up/Down counter

Page 46: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 46/67

Up/Down counter 

It counts up on rising edges of the Count Up (CU) input.It counts down on the rising edges of the Count Down(CD) input.

 

(PV), the counter bit>When the current value (Cxxx)

(Cxxx) turns on. 

The counter is reset when the Reset (R) input turns on.

Down counter

Page 47: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 47/67

Down counter 

 

It counts down from the PV on the rising edges of the (CD) input . 

When the current value is equal to zero, the counter bit (Cxxx)turns on.

 

The counter resets the counter bit (Cxxx) and loads the currentvalue with the (PV) when the load input (LD) turns on.

Down-counter example

Page 48: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 48/67

Down counter example

Up/down-counter example

Page 49: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 49/67

Up/down counter example

 

Counter example

Page 50: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 50/67

Counter example

A counter might be used to keep track of the number of vehiclesin a parking lot. As vehicles enter the lot through an entrancegate, the counter counts up. As vehicles exit the lot through anexit gate, the counter counts down. When the lot is full a sign atthe entrance gate turns on indicating the lot is full.

The ladder logic

Page 51: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 51/67

The ladder logic

 

Memory types

Page 52: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 52/67

Memory types

• You can access data in many CPU memory areas

- process image input register (I)

- process image output register (Q)

- variable memory area (V)

- Bit memory area (M)

- sequence control relay memory area (S)- special memory bits (SM)

- local memory area (L)

- Timer memory area (T)- counter memory area (C)

- Analog inputs (AI)

Memory addressing

Page 53: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 53/67

Accessing a Bit of Data in the CPU Memory (Byte.bit Addressing)

e o y add ess g

Memory addressing

Page 54: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 54/67

y g

You can access data in many CPU memory areas (V, I, Q, M, S, L,and SM) as:bytes, words, or double words by using the byte-address format.

Memory types

Page 55: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 55/67

y yp

• Process-image input register  (I)

Format:

Bit I[byte address].[bit address] I0.1Byte, Word, Double Word I[size][starting byte address] IB4

• Process-image output register  (Q)Format:Bit Q[byte address].[bit address] Q1.1

Byte, Word, Double Word Q[size][starting byte address] QB5

• Variable memory area (V)You can use V memory to:

•store intermediate results of the control logic operations.•store other data pertaining to your process or task.

Format:Bit V[byte address].[bit address] V10.2Byte, Word, Double Word V[size][starting byte address] VW100

 

Memory types

Page 56: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 56/67

y yp

• Sequence control relay area (S) 

They are used to organize machine operations or steps into equivalent

program segments. SCRs allow logical segmentation of the controlFormat:Bit S[byte address].[bit address] S3.1Byte, Word, Double Word S[size][starting byte address] SB4

 

• Special memory bits (SM)

The SM bits provide a means for communicating information between theCPU and your program. You can use these bits to select and control someof the special functions of the S7-200 CPU, such as:• A bit that turns on for the first scan cycle

• Bits that toggle at fixed rates

• Bits that show the status of math or operational instructionsFormat:Bit SM[byte address].[bit address] SM0.1Byte, Word, Double Word SM[size][starting byte address] SMB86

 

Memory types

Page 57: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 57/67

y yp

• Local memory area (L) 

The S7-200 PLCs provide 64 bytes of local (L) memory of which 60 can be

used as scratchpad memory or for passing formal parameters to subroutines.Format:Bit L [byte address].[bit address] L0.0Byte, Word, Double Word L [size] [starting byte address] LB33

Memory types

Page 58: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 58/67

y yp

• Analog inputs (AI)

The S7-200 converts a real-world, analog value (such as temperatureor voltage) into a word-length (16-bit) digital value. You access thesevalues by the area identifier (AI), size of the data (W), and the startingbyte address. Since analog inputs are words and always start oneven-number bytes (such as 0, 2, or 4), you access them with even-number byte addresses (such as AIW0, AIW2, or AIW4),as shown inFigure Analog input values are read-only values.

Format: AIW [starting byte address] AIW4 

Memory types

Page 59: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 59/67

y yp

 The S7-200 converts a word-length (16-bit) digital value into a currentor voltage, proportional to the digital value (such as for a current or

voltage). You write these values by the area identifier (AQ), size of thedata (W), and the starting by address. Since analog outputs are wordsand always start on even-number bytes (such as 0, 2, or 4), you writethem with even-number byte addresses (AQW0, AQW2, AQW4),

Format: AQW [starting byte address] AQW4

•Analog outputs (AQ)

Move instructions

Page 60: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 60/67

The Move Byte instruction moves the input byte(IN) to the output byte (OUT). The input byte is notaltered by the move.

The Move Word instruction moves the input word(IN) to the output word (OUT). The input word isnot altered by the move.

The Move Double Word instruction moves the inputdouble word (IN) to the output double word (OUT).The input double word is not altered by the move.

The Move Real instruction moves a 32-bit, real inputdouble word (IN) to the output double word (OUT).The input double word is not altered by the move.

The block move instructions

Page 61: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 61/67

The Block Move Byte instruction moves the number of

bytes (N) from the input address IN to the output addressOUT. N has a range of 1 to 255.

Example

Move byte immediate instructions

Page 62: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 62/67

The Move Byte Immediate Write instruction reads fromlocation IN and writes to physical output OUT.

The Move Byte Immediate Read instruction readsphysical input IN and writes the result in OUT.

Analogue I/O

Page 63: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 63/67

= Typical analogue signals from 0-10 VDC or 4-20 mA

= They are used to represent changing values such asspeed, temperature, weight and level

g

=The expansion module converts the standard voltage andcurrent values to 12-bit digital representation. These digital

values are transferred to the PLC for use in its program

Page 64: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 64/67

Analogue outputs may be used to produce 

variable reference signals for devices such as: 

# Control valves 

# Chart recorders # Electric motor drives 

# Pressure transducers 

# Analogue meters 

Analog o/p example

Page 65: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 65/67

g p p

Analog i/p example

Page 66: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 66/67

g p p

Analog i/p example

Page 67: plcsiemenstrainingnotes-090415065750-phpapp01(2)

8/2/2019 plcsiemenstrainingnotes-090415065750-phpapp01(2)

http://slidepdf.com/reader/full/plcsiemenstrainingnotes-090415065750-phpapp012 67/67

g p p