• No results found

Systems integration using Siemens' PC based automation technology

N/A
N/A
Protected

Academic year: 2019

Share "Systems integration using Siemens' PC based automation technology"

Copied!
138
0
0

Loading.... (view fulltext now)

Full text

(1)

Rochester Institute of Technology

RIT Scholar Works

Theses

Thesis/Dissertation Collections

8-1-2002

Systems integration using Siemens' PC based

automation technology

Adwait Palsule

Follow this and additional works at:

http://scholarworks.rit.edu/theses

This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion

in Theses by an authorized administrator of RIT Scholar Works. For more information, please contact

[email protected].

Recommended Citation

(2)

Systems

Integration

Using

Siemens'

PC

Based

Automation

Technology

Adwait Arvind Palsule

M.S. (Computer Integrated

Manufacturing)

Thesis

submitted

in

partial

fulfillment

oftherequirements

for

the

Master

of

Science in

department

of

Manufacturing Engineering Technology

in

the

College

ofApplied

Science

and

Technology

ofthe

Rochester Institute

of

Technology

(3)

COLLEGE OF APPLIED SCIENCE & TECHNOLOGY

ROCHESTER INSTITUTE OF TECHNOLOGY

ROCHESTER, NEW YORK

CERTIFICATE OF APPROVAL

MASTER OF SCIENCE DEGREE THESIS

The M.S. Degree Thesis of Adwait Arvind Palsule has been examined and

approved by the thesis committee as satisfactory for the Thesis requirement

for the Master of Science Degree in Computer Integrated Manufacturing

Dr. Sudhakar R. Paidy

Dept. of Industrial and Systems Engineering

Kate Gleason College of Engineering

Prof. S. Manian Ramkumar

Dept. of Manufacturing Engineering Technology

(4)

Permission granted

Systems Integration Using Siemens'

PC Based Automation Technology

I, Adwait Arvind Palsule, hereby grant the permission to the

Wallace Library of the Rochester Institute of Technology to

reproduce my thesis in whole or part. Any reproduction will not be

for commercial use or profit.

(5)

Dedication

To my

parents and

family,

(6)

Acknowledgement

Throughout

the time

I

have been

working

in

this

applied research

study,

many

people

have

assisted me.

It

is impossible

to

acknowledge

them

all.

Nevertheless,

I

would

like

to

specifically

thank the

following

individuals:

Dr.

Sudhakar

Paidy,

for

all

the time

he

dedicated

to

my

research work and

for

the

knowledge he

shared with me

throughout the

course of

this

study.

This

thesis

wouldnot

have

been

possible without

his help.

Prof.

S.

Manian

Ramkumar,

for his

continuous support and valuable

comments on

my

work.

Mr. Dennis

Wilk,

Mr.

Barry

Hawley,

and

Mr. Peter

Stansky

of Siemens'

Energy

and

Automation

for

their

constant

help

and

technical

support.

To Prakash

Gandhi,

fellow

graduate research

assistant,

for his

support,

advice and comments

throughout the

course of

this

study.

To

all

my

friends

who

helped

me

from

the

beginning

of

my

thesis

for giving

valuable support and comments and

those

who

helped

me

to

prepare

for

the

(7)

Table

of

Contents

Sections

Page No

Abstract

1

Introduction

1

2

Data Communication for Process Control

4

2.1

Introduction

4

2.2

Data Transfer Modes

4

2.3

Serial Communication Standards

5

2.4

Parallel Communication Standard

7

2.5

Network

Interfaces

8

2.6

ISO OSI

seven

layer

model

10

2.7

Topology

of

Simatic NET Profibus

network used

in CAMCELL

12

2.8

Glossary

of

Terms

13

3

Programming

Languages

for Process Control

16

3.1

Introduction

16

3.2

Graphical

Programming

Languages

16

3.3

Statement Lists

19

3.4

Sequential

Programming

Languages

20

3.5

Structured Control Language

23

4

Simatic PC Based Automation System

25

4.1

Introduction

25

4.2

General Architecture

of

Simatic Automation System

25

(8)

4.4

Simatic NET

26

4.5

Simatic

Distributed I/Os

27

4.6

Simatic HMIs

27

4.7

Step7 Software

27

5

Description

ofthe

CAMCELL Architecture

39

5.1

Description

of

CAMCELL

39

5.2

Manufacturing

and

Material

Handling

System

39

5.3

Product/Process Flow

40

5.4

Computer Hardware Architecture

40

6

Control

ofthe

CAMCELL Material

Handling

System

43

6.1

Introduction

43

6.2

Components

ofthe

Material

Handling

System

43

6.3

Control

ofthe

CAMCELL Material

Handling

System

44

7

CAMCELL Automation

50

7.1

Introduction

50

7.2

Simulation

of a

Flexible

Manufacturing

System

50

7.3

WTNCC

tagsused

in

the

CAMCELL

Control Software

51

7.4

Inquire

52

7.5

Pallet Controller

54

8

Conclusions

57

(9)

List

of

Figures

Fig

No.

Name

of

Figure

Page No.

2

Data Communication for Process Control

6

2. 1

Structure

of a shielded

2-core Profibus Cable

6

2.2

Profibus

Access

Techniques

7

2.3

Star

Topology

8

2.4

Ring Topology

9

2.5

ISO OSI Seven-Layer

model

1

1

2.6

Simatic NET

topology

asused

in

the

CAMCELL

application

12

3

Programming

Languages

for Process Control

16

3.1

A rung in

a

ladder logic

program

1

6

3

.2

An

example of a

rung in

a

LAD

program

1 7

3.3

An

exampleofa

block

in

a

Functional Block Diagram

18

3.4

An

example of

STL instruction

1 9

3.5

Grafcet Program

20

3.6

A Graph

program

22

3.7

A function block in SCL

23

4

Simatic PC Based Automation System

25

4.1

Components/architecture

ofthe

Simatic Automation System

25

4.2

Using

Step7

tocombinethe

hardware

withthesoftware

28

4.3

Basic

tasks

in

an automation project

using

Step

7

29

4.4

Basic

architecture

in

control application

in

Siemens'

Technology

30

4.5

Project

Structure

within

Simatic Manager

3 1

4.6

Components

of

WinLC

32

4.7

Absolute

Addressing

33

4.8

Project

Structure

within

WTNCC Explorer

35

(10)

Fig

No.

Name

of

Figure

Page No.

5

Description

ofthe

CAMCELL

architecture

39

5.1

CAMCELL

Hardware

Architecture

41

6

Control

ofthe

CAMCELL Material

Handling

System

43

6. 1

Schematic

ofthe

CAMCELL Material

Handling

System

43

6.2

List

of

Inputs

used

in

thecontrol program

45

6.3

List

of

Flags

used

in

thecontrol program

45

6.4

List

of outputs used

in

thecontrol program

46

6.5

List

ofregisters used

in

thecontrol program

48

6.6

List

ofpassthroughoutputs

49

6.7

List

of passthrough

inputs

49

7

CAMCELL Automation

50

7. 1

Schematic

of

OPC Client-Server Architecture

used

in CAMCELL

5 1

7.2

WTNCC Screen for

the

Inquire

module

53

(11)

Appendices

No.

Appendix

A

Siemens'

Software Installation

B

Hardware Configuration

C

Communicating

Step7

with

WTNCC

D

Accessing

the

WTNCC

tagsviathe

OPC

channel

E

Quickstep

program

for

theconveyor control

F

Symbols

tableused

in

the

Step7

G

LAD

program

for

the

Inquire

and

Pallet Controller

module
(12)

Abstract

Manufacturing

Systems Integration is theprogressive

linking

and combination ofthevarious components

ofthe systemto merge their functional and technicalcharacteristics into a comprehensive interoperable

unit.Itrequires onetowork withdifferenthardwareand software.Thereare a number of vendorsproviding alargenumber of products.

Integrating

thesevarieties of products provides a greater valuethan thesum of thevalue provided

by

theindividualproducts. Whathinderstheeffectiveintegration ofthese components

isthe

diversity

inthedesignandtheuse oftheseproducts.Systems Integration iseased

by

well-established

standards in data communication, programming

languages,

application development environments and computeroperating systems.

Many

vendors have attemptedto come upwith standardsthatarerelatively open.

However,

when one has to integrate data among multiple

vendors'

architecture, a new set of

challenges emerge.

The Siemens'

PC-based automation

technology

is anemerging

technology

thatappears to provide robust

architecture for

integrating

all elements ofthe manufacturing environment. Applications ranging from simple controlto distributedcontrol andfull-fledged

Manufacturing

ExecutionSystems canbe developed

using

Siemens'

architecture. The primary focusofthisapplied research workisto

develop

a

Manufacturing

Execution System to control a flexible manufacturing system using Siemens PC-based automation technology. Thistechnology is implemented ina Flexible

Manufacturing

cell namedtheCAMCELL. The CAMCELLconsists oftwoCNC machiningcenters,assemblyrobots, and a visionsystem,all of which are

interlinked

by

a material

handling

system.Thesoftware architecture oftheCAMCELL is basedonNIST's five level

hierarchy,

discussed

briefly

in the report.

Specifically

it contains functionalmodules for order entry, schedulingand routing. Inadditionto these functionalmodules, thereare various support modules such as orderentrymodule, scheduler,routeretc, twoof which namedtheInquireandthePallet Controller

that are implemented in this study. Siemens'

Step

7 and WTNCC software are used forthe control and
(13)

Section

1.

Introduction

A systemis defined as a collection of elements or components thatare organizedtogetherfor a common purpose. [1]

Manufacturing

Systems Integrationis theprogressive

linking

and combination ofthe various components ofthe system to merge their functional and technical characteristics into a comprehensive interoperable unit. [2] System Integrationrequires us towork withdifferenthardware and software.There

are a number of vendors providing a large number of products.

Integrating

these varieties of products provides a greater valuethan the sum ofthe value provided

by

theindividual products. Whathindersthe effective integration of these components is the

diversity

in the design and the use ofthese products.

Computersystems arecontinuouslyevolving,operatingsystems arerapidly changingandtheprogramming languagesaregettingmore and more object oriented.

Systems Integration is eased

by

well-established standards in data communication, programming

languages,

application development environments and computer operating systems.

Many

vendors have attemptedto comeupwith standardsthatarerelativelyopen.Forexample, theSimatic PCS 7 isa process control systembasedon standardtechnologiesandthusoffers openness and also allowsittobe linked upto systems made

by

other manufacturers. Ithas a flexible architecture that facilitates horizontal integration among the processes as well as vertical integration in the company-wide information network and

integration to field engineering. [3]

Industrial17

Solutions from ABB are designed to perform as a

fully

integrated set of solutions across common

hardware,

software, engineering, spare parts, project management,

training

and service components.

They

are scaleable and open andhenceyou canimplement

only what you require now, and add

functionality

over time, as needs evolve. [41 The Westinghouse

Distributed

Processing Family

(WDPF)

distributedcontrol andinformationsystem providesmodulating

control, sequentialcontrol, and data acquisition fora wide variety of process applications. Ithas a dual

network architecture thatprovides effective and reliable communications and a deterministic networkfor real-time process control data and anopenEthernet Information

Highway

for file transfer, remoteaccess, and enterprise integration. It also offers the

flexibility

to

fully

integrate plant process control, local and wide area SCADA systems, PLC networks, and maintenance management and

laboratory

computer systemsin asingle,unified architecture. [5]IBM's SiView

Standard,

an advancedmanufacturing execution systemforsemiconductormanufacturers,provides a complete open, multi-platform environment with the

industry's richest

functionality

andlargestrangeof

Manufacturing

ExecutionSystems

(MES)

applications,

including

material management, equipment and process management, schedule management, process control,and

factory

automation. SiView Standardintegrateswith avarietyofthird-partysoftware to offer an end-to-end MES solution. [6]

However,

when one has to integrate data among multiple

vendors'

architecture,a new set of challenges emerge.

The Siemens' PC-basedautomationtechnology is anemerging

technology

that appears toprovide robust architecture for

integrating

all elements ofthe manufacturing environment. Applications ranging from simple controltodistributedcontrolandfull-fledged MEScanbe developedusingSiemens'
(14)

The primaryfocus ofthis thesis isapplied research

leading

is tounderstandand

develop

a

Manufacturing

Execution System to control a manufacturing cell named the CAMCELL. CAMCELL is a flexible

manufacturingsystemcontainingtwoCNC machiningcenters,assemblyrobots,anda visionsystem,all of which areinterlinked

by

a material

handling

system.Thesoftware architecture oftheCAMCELLis based

on

NIST'

fivelevel

hierarchy

[7]

Specifically

itcontainsfunctionalmodulesfororderentry,schedulingand

routing. Inadditiontothesefunctionalmodules, there are various support modules(order entry, scheduler, routeretc.)twoof which namedtheInquireandthePalletControllerareimplemented inthisstudy.

This study aims to evaluate the Siemens' Automation System in terms ofits important features in the

context of Systems Integration. There are many communication standards that govern the data communication within a manufacturing cell. Such communication standards range fromdevice-to-device standardsliketheRS-232serial communication standardtoadistributednetwork communication standards like Industrial Ethernet.

Similarly,

there are varieties ofprogramminglanguagesstandards thatare popular in the process control field. Fromsimple graphicalprogramming languages like the Ladder Logic or the

functional block diagramtoSequential

Programming

languagesand complexStructuredControl

languages,

thereare a number ofprogramming languagesthata control solutiondevelopercan chosefrom. Thesetwo

aspects ofSystems Integration inaddition to other problems faced inthe multi-vendor integrationare a

huge challenge to

bring

about effective Systems Integration. This study aims at studying the Siemens' AutomationSystemthrough theseperspectives.

In section number two, we discussthe data communication standards popular within the process control field. Suchstandardsinclude Serial Communicationstandardslike

RS-232, RS-422,

RS-485,

andProfibus

networks communication standards, Parallel Communication standards like IEEE-488 communication standardanddistributednetwork communication standardslike EthernetandTCP-IP.

Here,

we alsodiscuss

the ISO OSI 7-layer model, which specifies the functions that are to be fulfilled at each level in communication systems. Inthissection we alsodescribetheSimatic NET Profibusnetworkthatisusedin

theCAMCELL.

In section numberthree, we discuss the programming languages currently inuse in the process control field. Such languages include Graphical

Programming

languages like the Ladder Logic

(LAD)

and the

Functional Block Diagram

(FBD),

Textual

Programming

language like the Statement Lists

(STL),

Sequential

Programming

languagesliketheGrafcetand

Graph,

and alsoStructured Control languages.

In section number

four,

we describe the General Architecture of the Siemens' Simatic PC-based Automation System. The various components ofthis architecture are Simatic

Controllers,

Simatic

HMIs,

Distributed

I/Os,

the Simatic NETcommunication networkandthe

Step

7configurationandprogramming

software. Inthis section, we alsodescribethe Simatic Managerarchitecture. SimaticManager isthebasic applicationfor configuringthehardwareandprogramminglogicina control application.Maincomponents in this architecture are the Simatic PC

Station,

Operator

Station, WinLC,

which is the logic controller,
(15)

Automation system. This section contains a brief descriptionofthese components ofthe overall Simatic

system architecture as well astheSimaticManagerarchitecture.

In section number

five,

we describe the CAMCELL through three different perspectives viz. the

Manufacturing

and Material

Handling

perspective, Product/Process flow perspective and the Computer

hardware

hierarchy

perspective.

Insection numbersix,wedescribethematerial

handling

system ofthe

CAMCELL,

itscomponents andits

functions. We also describe the control program that runs the material

handling

system written in the

Quickstep

programminglanguage.

In section number seven, we describe the CAMCELL automation system. Here we describe the actual implementation of the Siemens' automation

technology

in the CAMCELL. Here we describe the implementationoftwofunctionalmodules oftheCAMCELLviz.theInquireandthePallet Controller.

References:

[llhttp://searchwin2000.techtarget.com/sDefinition/0sidl_gci213083,00.html

[21www.its.bldrdoc.gov/fs-1037/dir-036/_5625.htm

[3]

http://www.sea.siemens.com/process/product/pa7ovrvw.html

[4]

http://www.abb.com/global/

[5]

http://www.westinghousepc.corn/wdpf-control/descriptions.cfm

[6]

www.ibm.com
(16)

Section

2.

Data Communication for Process Control

2.1 Introduction

Inthissection,we willfocuson various communication standards that arerelativelymore popularinthe

process control field. Communication standards are an agreed upon set of rules and guidelines that

govern communication between two

devices,

or two systems. There are two aspects to any

communicationstandard, viz. the hardware aspect and the software aspect. The hardware aspect ofa

communication standard deals with such things as physical characteristics, electrical characteristics,

types of connectors and so on. On the other

hand,

the software aspect deals with the ways in which

information ispackagedandtransferred.Inthis section we willdescribe boththeseaspectsofthevarious

communication standards

leading

tothediscussionoftheSimatic NET Profibusnetwork,whichis a part

oftheSiemens' SystemandisusedintheCAMCELLapplication.

2.2 Data Transfer Modes

m

Therearetwodifferent kindsofdatatransfer modes,

1. Serialtransfer mode,or serialcommunication,

2. Paralleltransfer mode,or parallel communication.

2.2.1. Serial Communication

In Serial

Communication,

data istransferredfromsender toreceiver onebit at atimethrough a single

line or circuit.Thenameserial communication comesfromthefactthatthe serial porttakes

8,

16or32

parallel bits from a computer bus and converts it as an

8,

16 or 32 bit serial stream. Each bit of

information istransferredin seriesfromone locationto another. Eachstream ofbitsis broken upto8

bitscalled words.Serialcommunicationisoftwo types.

Synchronous Serial Communication

Inthis typeof serialcommunication, thesending andreceivingends ofthecommunication are

synchronizedusinga clockthatpreciselytimes theperiodseparatingeachbit.

Asynchronous Serial Communication

By

introducing

a startbitthatindicatesthestart ofa shortdata stream, theposition of eachbit

canbe determined

by

timing

thebitsat regularintervals. Thetwosystems thendon'thavetobe

synchronized

by

a clock signal.Whenthereceivingend ofthecommunication receivesthestart

bit itstartsashort-termtimer.

By

keeping

streamsshort, there'snot enoughtimeforthe timer to

get out of sync. This method is known as asynchronous communication because the sending

(17)

2.2.2. ParallelCommunication

Simultaneous transmission of the eight bit-voltages that constitute a byte is referred to as "parallel transfer".Whenbitshavetobemoved about withinthecomputer

itself,

theyaretransmittedalongwires. If the data to be transmitted is in 8-bits format

bytes,

then eight separate, discrete wires must

simultaneously carrytheeight representative electrical voltagesbetweenthetwopoints.Paralleltransfer, then, is done byte-by-byte. Sinceall eightbitsarrive attheirdestinationatthe same

instant,

paralleldata transfercanbeaccomplished atextremelyhighspeeds.

2.3 Serial Communication Standards

|21 Themost popular serial communication standardsare,

1. RS 232communicationstandard, 2. RS 485communicationstandard, 3. RS422communicationstandard,and 4. Profibusnetworks

2.3.1. RS 232communication standard

RS-232communication standard wasintroduced in 1960

by

theElectronic Industries Association

(EIA),

and is currently the most widely used communication protocol. It is simple and inexpensive to implement. Even thoughrelatively slow, it is adequate for most simple serial communication devices such as keyboards and mice. RS-232 is a single-ended datatransmission system, which means that it uses a single wirefor datatransmission. Sinceuseful communicationis generallytwo ways, atwo-wire systemis employed, one to transmitand oneto receive. Because signals

traveling

this single wire are vulnerable to

degradation,

RS-232 systems are recommended for communication over short distances

(up

to 50

feet)

and at relativelyslowdata rates

(up

to 20 kbps). RS-232 is usedto connectonlytwo systems.'I2'

2.3.2. RS 422communicationstandard

RS-422 (EIA RS-422-A

Standard)

is a serial communication standard used on Apple Macintosh computers. RS-422 uses adifferential electrical signal, as opposedtounbalanced signals referenced to ground with the RS-232. Differentialtransmission, which uses twolines each to transmit and receive signals,results ingreater noise

immunity

andlongerdistances as comparedto theRS-232. Thegreater noise

immunity

and distance are

big

advantages in industries.

RS-422,

like RS-232 is also used to connecttwosystems.[1 ]

2.3.3. RS485communicationstandard

(18)

PC or other controller for data collection,

HMI,

or other operations. RS-485 is a superset of

RS-422;

thus, all RS-422 devices may be controlled

by

RS-485. RS-485 hardware may be used for serial communicationfor upto4000feetof cable.

2.3.4. Profibus|9'

2.3.4.1 OverviewofProfibus Network

Profibus is an acronymfor "Process Field Bus". It isa modified version of the RS 485 standard and followstheinternationalstandards EN

50170,

EN 50254andIEC 61158[10]. It is a vendor-independent

standarddocumentedin thevolume 2ofEN 50170. Thetransmissionmediumis either a coppercable networkbasedon a shielded2-corecable or afiber-opticcable network as showninfigure2.1.

PVCouter sheath

Cores,solidcopper s^-f-^^Z^

'V^CX

Copper braidshield

Aluminum foil

Plastic foil Cellular PE insulation

Filler

Fig

2.1 Structureof a shielded2-core ProfibusCable

Thetransmissionspeeddeterminesthelengthofthecable within a segment.Themaximumlengthatthe highest transmission speed (12

Mbit/sec)

is 100m and the minimum cable length at the lowest transmissionspeed(9

kbit/sec)

is 1000m.Thenetwork canbeexpanded with repeaters.

The Profibus supports the exchangeofinformation between field devicesand with systems at a higher

system level. It is mainlyused to transfer small to medium quantities ofdata. Itoffers a standardized

interface forthe transferof process inputand process output data between Simatic S7 stations andthe field devices.

2.3.4.2 Accesstechniques

Thenetwork access techniquefor PROFIBUS corresponds to the"Tokenbus"

(19)

Matterftto* assignment

Fig

2.2. Profibus Access Technique

When a station receives the token (addressed to

it),

it has permission to send telegrams. The time

allowed is specified

by

the so-called token

holding

time. Once this has elapsed, the station is only permitted to send one more

high-priority

message. Ifthe station is not waiting to send a message, it

passesthe tokenontothenext station inthelogical

ring

immediately. The corresponding token timers

("maximum token

holding

time",

etc.) are configured for all active stations. Ifan active stationis in

possession ofthe token and connections to passive stations are configured for it (master/slave

links),

thesepassive stationsare queried(e.g. variables areread) ordatais sentto them(e.g.set point values).

Passivestations never receivethe token.Thisaccesstechnique allows stationstobeadded and removed underoperatingconditions.

2.4

Parallel

Communication

Standards

Parallelcommunicationis characterized

by

multiplebitstransfer thatleadstohigher datatransfer rates,

overrelativelyshorterdistances.

Theparallel communication greatly increases transfer speeds

by

using an eight-wire connector, which

transmitstheeightbits inabyteofdatasimultaneously, thussendingan entirebyteofdata inthe timeit

takes to send a single bit in a serial system. This byte of data is supplemented

by

several other

handshaking

signals,eachsent onitsownwire,which ensurethatdatatransfer takesplacesmoothly[3]

2.4.1. IEEE488

(GPIB)

'4|

The IEEE-488bus was developedto connectand control programmable

instruments,

andtoprovide a standard interface for communication between instruments from different sources. Hewlett-Packard

originally developedthe

interfacing

technique, and calledit HP-IB. Sincetheinterfacewas soversatile,

thattheIEEE committee renameditasGPIB (General Purpose Interface Bus). The IEEE-488 interface

systemconsists of16 signallines and 8 groundlines. The 16 signallines are dividedinto 3 groups(8 data

lines,

3 handshake

lines,

and 5 interfacemanagementlines). ThestandardIEEE-488 cablehas both
(20)

The IEEE-488 bus specifies a maximumtotal cable lengthof20 meters with no morethan20 devices connected to the bus and at least two-thirds ofthe devices powered on. Amaximum separation of4 metersbetween devicesand an average separation of2meters overthefull busshouldbe followed.

2.5 Network Interfaces

2.5.1. Network Topologies

Therearetwowidelyused networktopologies

Star

Topology

Ring Topology

2.5.1.1. Star

Topology

'5|

Star

topology

isa network configurationinwhichthereisa central pointtowhichagroupof systemsare [image:20.545.202.390.310.476.2]

directly

connected.Withthestartopology,alltransmissionsfromone systemtoanother passthroughthe central point, which may consist of a device that plays a role in managing and controlling communications.

Fig. 2.3 Star

Topology

2.5.1.2.

Ring Topology

|6'

A ring is a network

topology

or circuit arrangementin which each device is attached alongthe same signal pathto two other

devices,

forming

a path inthe shape of a ring. Eachdevice inthe ringhas a unique address. Information flowisunidirectional anda controllingdevice intercepts and managesthe
(21)

gi

Ring

Network

Topology

'I'rrmriJl

Fig

2.4

Ring Topology

2.5.2 TCP/IP

TCPandIPweredeveloped

by

aDepartmentofDefense

(DOD)

research projecttoconnect a number of

differentnetworks designed

by

differentvendors into a network of networks (the "Internet"). Several

computersina smalldepartmentcan useTCP/IP

(along

with otherprotocols) on a singleLAN. The IP

component provides routing fromthe departmentto theenterprise network, then toregionalnetworks, and

finally

to the global Internet. As with all other communications protocol, TCP/IP is composed of

layers:

IP - isresponsiblefor movingpacket ofdata fromnodetonode.IP forwardseach packetbased onafour-byte destinationaddress(the IPnumber).

TCP- isresponsible

for verifyingthecorrect

delivery

ofdata fromclienttoserver.Datacanbe lost intheintermediatenetwork.TCP isused

by

applicationsthatrequire reliabledatadelivery. TCPuses a check-sum withthedata sentthat theTCPlayerattheother end usestoverifythat the data arrived undamaged. If the data checks out, the receiving TCP layer sends an

acknowledgment back to the sender. Ifit arrives

damaged,

the receiver discards it and the sender,afteran appropriatetime-out period,resendsit.

But beforedata is transmitted,the twohostsexchange a

three-way

handshake. Thesender sends a signal

telling

the receiverit wantsto setupa connection andhowthe datawillbe sequenced. The receiving

host sends a signal back acknowledging receiving the signal. The sending host sends a signal back

acknowledging the acknowledgement and begins data transmission. The connection at the end ofthe

[image:21.545.137.457.50.305.2]
(22)

2.5.3 Ethernet

Ethernet is a local area network

(LAN)

technology

that transmits information between computers at

speeds of10and100millionbitsper second(Mbps).

Currently

themostwidelyused version ofEthernet

technology

isthe 10-Mbpstwisted-pairvariety.

The 10-MbpsEthernetmedia varietiesincludetheoriginalthickcoaxialsystem,as well asthincoaxial,

twisted-pair, andfiberoptic systems.Themost recentEthernetstandarddefinesthe new 100-Mbps Fast

Ethernetsystems,which operates overtwisted-pairandfiberoptic media.

Each Ethernet-equipped computer, alsoknownas a station, operates

independently

of all other stations

onthenetwork andthere isno central controller. Allstations attachedtoanEthernetare connectedtoa

shared signalingsystem, also calledthe medium. Ethernetsignals are transmitted serially, onebitat a

time, overthe shared signal channelto everyattached station. To senddataa stationfirstlistensto the

channel, and whenthechannelis idlethestationtransmitsits data intheformof anEthernet

frame,

or

packet.

After each frame transmission, all stations on the network must contend equally for the next frame

transmission opportunity. This ensures that access to the network channel is

fair,

and that no single

station canlockouttheother stations.Accesstotheshared channelisdetermined

by

themedium access

control

(MAC)

mechanism embedded in the Ethernet interface located in each station. The medium

access control mechanismis based on a system called Carrier Sense Multiple Access with Collision

Detection (CSMA/CD).

2.6. ISO OSI Seven-Layer Model

[8]

The Open Systems Interconnection

(OSI)

7 Layer Model is the product of years of work

by

many

organizations.The InternationalStandards Organization

(ISO)

hascompiled alltheresults.Thisstandard is called a reference model. It specifies the functions that are to be fulfilled at each level in

communicationbetweentelephone systems, or computers. These 7 layersarethought tobe adequateto

encompass all communicationsfunctions.

Layer 1: The Physical Layer is concerned with

transmitting

raw

bits,

electrical

impulses, tight,

and

radio signals over a communications medium. The primary concern of a designer for this layer is

mechanical, electrical, or optical matters. Specifications for wave shapes, signaling rates, cables and

connectorsareinvolvedinthislayer

Layer 2: The Data Link Layertakes the bitspassed

by

the physicallayerand creates and recognizes

frame

boundaries;

by

this techniqueittransfersunitsofinformationto theother end ofthephysicallink

It also contains the rulesgoverning access to thenetworkcable,Media Access Control

(MAC)

which
(23)

Network

mi

m\

mm mini

in

mini

Telephone Switches And Routers

Working

at Layer2

Data Link

Network

DataLink

Network

Data Link

Transport

Network

Data Link

F,

Physical *- * Physical *- ? Physical ? Physical

Intornotworkinq

Fig

2.5 OSI ISO 7 layermodel

Layer3: The Network Layercontrols operations of sub networks that mightintervene betweenthe two

communicationdevices.This layerroutesinformation among differentnetworks.

Layer 4: The Transport Layersplitsup information intoappropriate sizes(segments

information)

soit

willfit intopackets oftherightsizeforthe networks

being

used.In manycases,itensures allthepackets

arrive attheother end with errors and assembledinorder and withoutduplication.

Therefore,

itprovides

end-to-enddata

integrity

andqualityof service.

Layer 5: The Session Layercontrolstheestablishment and continuation of a particularcommunication

between devices. Itcoordinates interaction betweenend-applicationprocesses,

keeping

thetwodevices

talking

toeach other andmaintaininga connection.

Layer 6: The Presentation Layerperforms conversions oninformation. These include conversionof

code sets, encryption, text compression, andprotocol conversion for virtual terminal communication.

Thislayermayalsotranslatefile formatsthatdiffer betweendevices.

[image:23.545.98.467.50.423.2]
(24)

Layer 7: The Application Layercontainsthefinalparticularsrequiredforprogramsto communicate. This layer establishes means for making the network appear transparent to user

devices,

joining

the

communications streamtotheindividual device.

2.7

Topology

of

Simatic NET Profibus

network used

in

the

CAMCELL

2.7.1.OverviewoftheSIMATICNETsystem

SIMATIC NET is the name ofthe communication networks connecting SIEMENS programmable

controllers,hostcomputers,workstations and personal computers. SIMATIC NETincludesthefollowing:

The communication network consisting of transmission media, network attachment and

transmissioncomponents andthecorrespondingtransmission techniques Protocolsand services usedto transferdata betweenthedevices

The modules oftheprogrammable controller or computerthatprovide the connectionto the

communications processors.

To handle a variety of tasks in automation engineering, SIMATIC NET provides different

communication networkstosuittheparticular situation.The

topology

ofrooms,

buildings, factories,

and complete companycomplexes andtheprevalent environmental conditions meandifferentrequirements. Thenetworked automation components also makedifferentdemandsonthecommunication system. The communication network used in the CAMCELL application is the Profibus network, which was discussedearlierinthissection.

TheSIMATIC NET

topology

usedintheCAMCELLapplicationisshownbelow inthefigure 2.6

DPrnoBtef

v.iih

PRORBUS

PC

CPSS13

(CP5613)

>lipki

tf- ;las

(ET

200M)

3V

^K

JTK fb>

I

WWW,

. ,

|

Proust-Pr.*

I

(Field

Devices)

Fig

2.6 SIMATIC NET

topology

as usedintheCAMCELLApplication.[nl

2.7.2CP 5613 Communication Processor

In any SIMATIC S7 application, aCommunicationProcessor

(CP)

is always requiredfortheProfibus
(25)

The CP 5613 is aPCI card with a microprocessorthatallows connection of a SIMATICprogramming

device to Profibus under Windows NT 4.0 or Windows 2000. The CP 5613 can also be used to

implementcontroltaskson a

PC,

thus

facilitating

PC basedcontrol.

The CP 5613 card is a short PCI card with a 9-pin sub D socket for connection to Profibus. It has

diagnostic LEDs for installation and commissioning and

during

operation ofthe module. Inorder to

provide access to theprocess

data,

the CP 5613 operates as theProfibus master module

buffering

the process image (input/output and diagnostic

data)

in the DP RAM

(memory

area on the CP). High performancedatacommunicationsishandledautonomously

by

theCP 5613 hardware. Theprocessdata from the slaves are always consistent as

they

all originate from one and the same DP (decentralized

peripheral)cycle.

2.7.3 ET 200 M distributed I/Omodule

The ET 200-M is a modularI/O station. It is the passive station ofthe Profibus field bus and has a

maximumdatatransferrate of12Mbit/s. AtypicalET 200Mstation consistsof:

Power

Supply

IM 153 interfacemodule

Up

to 8 I/Omodules

No specific slots are assigned tothe I/O modules.

Any

combination of modules is possible. The ET

200M isconnectedto thePROFTBUS-DPvia anIM 153 interfacemodule.The inputsand outputsofthe

modularET 200M I/Ostation canbeaccessedfromtheuser programinthePLC inthesame manneras

theinputsand outputs ofthecentral controller.

Communicationviathebussystemis handled completely

by

themasterinterfacemodule inthe central

controller andtheTM 153 interfacemodule.

2.8

Glossary

of

Terms

Data bits: Data bit is a measurement ofthe actualdata bits ina transmission. Standardvalues for

the datapackets are

5, 7,

and 8 bits. A packet refersto a single bytetransfer,

including

start/stop

bits,

data

bits,

and parity.Sincethe number of actualbits dependsontheprotocolselected, the term

packetisusedtocover allinstances

Stopbits:

Stop

bits are usedtosignaltheend of communicationfora single packet.Typicalvalues

are

1,

1.5,

and2 bits. Morethebitsusedfor stop

bits,

greateristhe leniencein synchronizingthe differentclocks,butslowerthedatatransmissionrate.

Parity:

Parity

is a simple form of errorcheckingthat is used inserial communication. Thereare

fourtypesof parity: even, odd, marked, and spaced.Theoption ofusingnoparityisalso available.

Foreven and oddparity,the serial port sets theparity bit (thelast bitafterthedata

bits)

toa valueto

ensure thatthetransmissionhas aneven or odd number oflogic highbits. Iftheparity isodd, then

theparity bit is

1,

resulting in 3 logic-high bits. Markedand spacedparitydoesnotactuallycheck the data

bits,

but simply sets the parity bit high formarkedparity or low for spaced parity. This
(26)

allowsthereceiving device toknowthestate of a bitto enablethedevice to determine ifnoiseis

corruptingthedataorifthe

transmitting

andreceiving deviceclocks are out of sync.

Baudrate: Baudrate is a measurement of speedforcommunication. It indicatesthenumberofbit

transfers per second. For example, 300 baud is 300 bits per second. Common baud rates for

telephone lines are

14400, 28800,

and33600. Baudrates greaterthanthese arepossible, butthese

rates reducethedistance

by

whichdevicescanbeseparated.

Bus: In a computer, bus is the data path on the computers'

motherboard that interconnects the

microprocessor with attachmentsto the motherboard inexpansion slots. Suchattachmentsmay be hard disk

drives,

CD-ROM drives etc. Onanetwork, abus is atransmissionpathon which signals

aredroppedoff or pickedupateverydeviceattachedto theline.

Only

thedevicesaddressed

by

the signalspayattentionto

them,

theothersdiscardthe signals.Thereare varioustypesofbusavailable such asISA

bus,

PCI

bus,

EISA

bus,

IDE

bus,

ETDE

bus,

VMEbusetc.

Port: On computer and telecommunication

devices,

a port is generallya specific place for

being

physicallyconnectedto some other

device,

usuallywith asocket andplugof somekind.

Typically,

a personal computer is provided with one or more serial ports andusually one parallel port. The serial port supportssequential,onebit-at-a-timetransmission toperipheraldevicessuchas scanners andthe parallel port supports multiple-bit-at-a-timetransmission todevicessuch as printers.

Standard: Anagreed upon set of rules and guidelines.

Many

standards are evolvedfrompopular

methods while others are crafted

by

professionalgroups

(ANSI, ISO,

etc.)

LAN: A local area network

(LAN)

is a group of computers and associated devices that share a

common communications line and

typically

share the resources of a single processor or server within a small geographic area(forexample,withinan officebuilding).

WAN: A computer network that spans a relatively large geographical area.

Typically,

a WAN

consistsoftwoor morelocal-areanetworks(LANs). The largest WAN inexistenceistheInternet. Firewall:Firewallisa systemdesignedtoprevent unauthorized accesstoorfroma private network. Firewalls canbe implemented in both hardware and software, or a combination ofboth.Firewalls

are

frequently

used to prevent unauthorized Internet users from accessing private networks connected to the

Internet,

especially intranets. All messages entering or

leaving

the intranetpass

through the

firewall,

whichexamines each message andblocksthosethatdo not meetthespecified

securitycriteria.

Router: Router isa network devicethat sends and receivesNetworkprotocol-data units

(packets)

and relays packetsfromonedevicetoanotherthroughthenetwork.

Hub: Hub is localarea networkequipmentthatallows multiple networkdevicestobeconnectedto

theLAN cablingsystemthrougha central point.

(27)

Token Ring: Token ring is a LAN data linktechnology, in which systems are connectedto one

anotherusing a point-to-point twisted

-pair cable segments to forma ring structure.A systemis allowedto transmitonlywhenit hasthetoken,whichispassedfromonesystemtoanother around

thering.

References:

[1]

http://www.rad.com/networks/1995/rs232/rs232.htm

[2]

http://www.quatech.com/Application Obiects/FAQs/comm-over-rs-232.htrn

[3]

http://www.quatech.com/Application_Obiects/FAQs/cornm-over-parallel.htm

[4]

http://www.techsoft.de/htbasic/tutgpib.htm

[5]

http://fcit.coedu.usf.edu/network

{6]

http://hs.stcloudstate.edu/cirn/courses/im644/ring.html

[7]

http://www.ots.utexas.edu/ethernet/

[8]

http://web.singnet.com.sg/~psylence/c3p03.htm

[9] Berger,

Hans.

Automating

withSIMATIC. SIEMENS 2000.

[10]

http://www.profibus.com/profibus.html

[11]

http://www.sea.siemens.com/autogen/docs/net/pfb/man/DP Base Program Interface for 5613.pdf

[12]

http://www.synchrotech.com/support/serial_standards.html
(28)

Section 3.

Programming

Languages for Process

Control

3.1 Introduction

Inthissection we shalldiscuss the variousprogramming languagesusedto writecontrollogicforprocess

control.There are variousprogramminglanguagesavailablefor writingcontrollogic. Thevarious typesof

programming languages include graphical programming

languages,

statement

lists,

sequential

programming

languages,

and structured Control Languages.

First,

we describe these programming languages and also discuss programming languages within each category.

Next,

we describe the Ladder Logic (abbreviated asLAD inthe Siemens'

Technology)

andtheFunctional Block Diagram (abbreviated

asFBD in the Siemens'

Technology),

which are graphicalprogramming languages and Statement

Lists,

which is a textual programming language.

Next,

we will discuss the

Grafcet, Graph,

and the HiGraph programming

languages,

which are sequential programming languages.

Next,

we will discuss the Structured Control Language. We shall discusstheimportant features of eachprogramming languageand

alsodiscusstheiradvantages anddisadvantages.

3.2 Graphical

Programming

Languages

Graphical programminglanguagesmake use of symbols andicons inordertobuildcontrollogic. Graphical

programming languagesare especiallysuitable for representing bit

logic,

ina formeither modeled on a

relay ladder logic diagram

(LAD)

orresemblingan electronic circuitdiagram (FBD). 3.2.1 Ladder Logic

(LAD)

Ladderlogicprogramming isa graphical representation oftheprogramdesignedtolook like relay logic.[4) In

LAD,

user writes the program for the control application

by

arranging graphical program elements.

Thesegraphical program elements consist ofcontacts,coils and

boxes,

which arelinkedtogetherinaform resembling a relay ladder logic diagram. In

LAD,

the entire program is containedinnetworks. ^Each

network consists of onerung, thatisalogic operating ina coil orbox. Each rung isa combination ofinput

conditions

(symbols)

connectedfrom leftto

right,

withthe symbols that represent the output atthefar right. Thesymbolsthatarerepresentedasinputsare connectedinseries, parallel,or some combination ofthe two

toobtainthedesired logic.t2)

itacts

Run

(29)

3.2.1.1 Contactsin LAD

Contacts are usedinLAD programming language to checkthe states of

binary

addresses, such as inputs.

By

arrangingthecontactsin series orparallel, logic operations canbeperformed. There aretwo typesof

contact;

Normally

OpenContacts and

Normally

Closed Contacts. Inanormallyopencontact, the input is

checkedforahighstate, thecontact closesiftheinputturnshigh. Inanormallyclosedcontact,theinput is

checkedforalowstate,thecontact closesiftheinputturnslow. 3.2.1.2 Coils in LAD

Coilsare usedin LADprogramstoset or resetbitaddresses such as outputs.Coilsenergizes thebitaddress

when the power flows throughthe coil, and de-energizes the bitaddress whenthe power stops

flowing

through it. Coils are also used to control timer and counter

functions,

call blocks without parameters,

performjumpstoadifferentplaceintheprogram,and so on. 3.2.1.3 Exampleof anLAD rung

Fig

3.2 Anexample of arung inaLADprogram|S1

Inthe aboveexample,an outputS isenergized orturned

ON,

when eitherinput SIorinput S2 isenergized

orturnedON.

3.2.1.4 AdvantagesofLAD

The Ladder Logic

Programming

offersmanyadvantages.Someoftheadvantages are as

follows,

1. The LAD programming language is a part ofInternational Electrotechnical Commission

(IEC)

61131-3standardfor Industrial Control Programming.[6]

2. It isthemostpopularlyusedprogramming language forcontrolprogramming

3. Itis reasonably

intuitive,

especially fortechnicianswithrelaylogicexperience [21

4. It is particularlyeffective inan on-line mode,whenthePLC is actually performingcontrol. The

operationofthelogic isapparentfromthe

highlighting

of the variousrelaycontacts and coils on the screen,whichidentifiesthelogicstateinrealtime.[2]

5. Itissimple andeasytouse

3.2.1.5 DisadvantagesofLAD

Ladder

Programming

hasbecomeone ofthemost popular graphicallanguages for programming PLCs but

unfortunatelyhasa number of problems.[7]

1. The laddersymbolsvary between different PLCproducts.

2. Poor facilities forstructured orhierarchicalprogramdecomposition

3. Poor facilities for addressingandmanipulating datastructures,

(30)

4. Limitedfacilities for

building

complexsequences, 5. Limitedcontrol over programexecution,

6. Facilities forarithmetic operations are cumbersome.

3.2.2 Functional Block Diagram

(FBD)

Functional Block Diagramisanother graphical

language,

popularin Europe. FBDprogram elements appear asblocks that are "wired" together, analogous to circuitdiagrams. It iswell suited for representingbatch control applications.[91In

FBD,

control programs are created

by

interconnecting

ANDandORboxes.FBD

providesfunction boxes for performing logic operations on signalstates, simpleboxes for processingthe

result oflogicoperations and complexboxes for non-binary functions.

3.2.2.1 Boxes in FBD

There aretwo types ofboxes in FBD. Simple boxesoperate onbit addresses,likeoutputs. These usually

only have oneinputand maycontain additionalletters or symbols. Thereare simple boxes for settingor

resetting bitaddresses,evaluatingsignaledges, settingorresettingtimerand counteraddresses, and so on.

Complexboxesare usedforprogram elements withnon-binary functions.

3.2.2.2

Binary

Functions in FBD

Binary

functions are usedin FBD to checkthe signal states ofbit addresses, such as

inputs,

and perform

logic operations onthem. Thefunctions available are

AND, OR,

and XOR. Allthese functions canhave

more thantwoinputs. The function boxes canbe interconnectedto program complex logic operationsin one network.

3.2.2.3 Exampleof anFBD Block

1.1 ,=-i

Q4.D

Fig

3.3 Anexample of ablock in Functional Block Diagram

Intheaboveexample, theoutputSturns

ON,

when eithertheinput 1 1.1 or11.3turnsON.

3.2.2.4 AdvantagesofFBD|8]

The Functional Block Diagramoffersthe

following

advantages,

1. Simultaneous programmingand

documenting (overview,

comments, reliability,information

flow)

2. Universal applicability (Signalprocessing, numeric, arithmetic,

integer,

floating

point)

3. Structured programming (defineand callsubroutines)

4. Standardizedset ofFunctionsandFunctionBlocks

3.2.2.5 DisadvantagesofFBD

Following

arethedisadvantagesoftheFunctional Block Diagram

1. Poor facilities forstructuredorhierarchicalprogramdecomposition

2. Limitedcontrolover program execution

(31)

3.3 Statement List

(STL)

STL is a text-oriented language in which thecontrol task canbe described in the formof a list. It very

muchlooks liketheshort and simplelinesofassemblycodes. [U1Thusthecontrol programiswritteninthe

form of a series of statements. Each statement contains an instructionthat defines what is to be done.

Depending

on thetype of

instruction,

thismaybefollowed

by

an address thatdefineswhat actionistobe

doneto. The elements ofthe statement lists closelyresemble the mnemonics of microprocessorassembly

languages.[11)

3.3.1 Exampleof anSTLprogram

NETWORK

1

LD

10.0

A

10.1

=

QO.O

NETWORK 2

LD

I0.4

0

I0.5

=

Q0.1

Fig

3.4 Anexample ofSTL instruction

Astatementlistprovides another view of a set ofinstructions. The operation, whatistobe

done,

is shown

onthe left. Theoperand, the itemtobe operated on

by

the operation,is shown ontheright. Inthe above

figure,

in network

1,

outputQO.O turns highwhenthe inputs 10. 0 and 10. 1 both turnhigh. Onthe other

hand,

theoutputQ0. 1 turns

high,

when eithertheinput 10.4or10.5turnshigh.[12]

3.3.2 AdvantagesofSTL programming

Statement Listsofferthe

following

advantages,[13]

1. STLis verysimilartoanassemblycode,hencethecode canbe easilyread

by

everyone

2. STL'sgenericalgorithms allow algorithmstobeappliedtomany differentstructures

3. STL is easytolearn.The

library

isquite smallowingtothehighdegreeof generality.

4. STLcontainersareveryclosetotheefficiencyof

hand-coded,

type-specificcontainers.

3.3.3 DisadvantagesofSTL programming

Following

arethedisadvantagesoftheFunctional Block

Diagram,

[13]

1. Error checking is difficult in STL. Thismeansthatifthe programmer makes anerror,an errormay

ormaynotoccur whentheerroneousinstruction ismade,but itwill puttheprograminan unstable

state(e.g.

Writing

offtheend of an array).

2. Accesstothe exact sourcethatone usesmay be

difficult,

soiftheuser needs specificinformation

aboutcode

details, they

maynotbeaccessible.
(32)

3.4 Sequential

Programming

Language

Sequential

Programming

Language is a method ofrepresenting the

key

elements of a sequential process,

i.e. conditions required forpassing fromone stateto another, andthe effects present while ina particular

state.[10]

Insequential controlsystems,unlike logiccontrolsystems, thestatic assignment oftheinputsignalsto the

outputs is not ofimportance. It's the chronological sequence ofthese assignments that is important. The

control processesthatare executed one aftertheother aredivided into individualsteps. A stepconsists of one or more actions.

Only

theaction inan active step

(step

currently

being

executed) is performed. The

nextstepcannotbeprocessed untilthe transitionconditionsare met.Thetransitioncanbedependentonthe process,or canbe dependenton atimefactor.tl]

3.4.1Grafcet

Grafcet is aninternational standardforsequentialfunctionchartsthatwas released

by

theIEC in 1988.[17] It is atype offlowchart representationspecifically developed forthe needs ofindustrialcontrol systems.

Sequentialoperationsare representedin Grafcetasa series of steps.Theconditions requiredtomovefrom

onestepto thenext are referredtoastransitionconditions.Thesteps are represented

by

numberedsquares, wherethe step comprises of one or more on-off or analogtype actions. ['9]Atransition, which separates

steps, andisrepresented

by

ahorizontal

hash,

containsthelogicconditionfor

terminating

theexecution of thestep.^ ' Themethod canbeusedas adesigntoolforwhatever

technology

is

being

usedtocontrolthe system

-relays,pneumatic

logic,

orPLCs.[18] 3.4.1.1 Exampleof aGrafcetprogram

Open_Gnp

~~\~ Start

2 + Arm_on_level_l

Grip_closed

4 __

Arm_on_leve1_2

5

(33)

Fig

3.5 Grafcet Program

In the above example, there are steps and transitions

taking

place in sequence. The steps are shown in

squares andtransitionsare shownin horizontal hashes. 3.4.1.2 AdvantagesofGrafcet

Following

aretheadvantages of

Grafcet,

1. Grafcetissupported

by

theIECstandard [l7]

2. In executingthe

Grafcet,

the PLCneedonlyscantheactive steps andthe succeedingtransitions.

Hencescantimesare reduced withGrafcet.[I8]

3.

Being

developed for sequential processes, Grafcet has outstanding features such as parallel

processing.

4. Grafcet application can be transferred into different controllers. With the

help

of software like

Cadepa [l91 the standard Grafcet code can be converted into machine code formost brands of

PLCs. Itcanbetransferredinto ladder logic for Allen

Bradley

PLC-5,

Modicon

984,

Siemens S5

and others. [1?1

3.4.1.3 DisadvantagesofGrafcet

Following

arethedisadvantagesofGrafcet

1. Notaverypopularlanguage

3.4.2 Graph

Graph isa sequentialprogrammingmethodforsequential control systems.tl]Usercan writetheconditions

enablingtransitionsfromonestepto thenextin LAD orSTL. Alternativeor parallel

branching

extend the scope ofthe linearexecution of consecutive steps.With

Graph,

operations within a process are configured

and programmedina standardized

display

mode(incompliance withIEC 61131-3). Theprocess(e.g. the manufacture of a component) is divided into sequential or simultaneous steps. This division makes the

structureofthePLCprogram easiertounderstand and also easierto analyzeintheevent of a malfunction. Thisis particularlyusefulin manufacturingtoavoidcostly downtimes.tl4]

3.4.2.1 Exampleof a programin Graph

In the operation sequences, the individual steps of a process and the transitions to the next steps are

representedas rectangles andlines as shownin figure 3.6.

Qualifiers,

withinthesteps, caninitiateactions. (E.g. time-delay).

If,

forexample,theoperatingsequencedescribes a

drilling

process,the "lowerthedrill"

willbe astepandthe"motorON"

willbean action. Thetransitions describethe conditions under which a transitionto thenextstep shouldoccur.

Moreover,

interlocking

andmonitoringconditions canbe defined

for everystep.An interlockcanbeusedtopreventthe execution of actions.

Monitoring

conditions enable

the recognition of operational faults. All conditions

(transitions,

interlocking

or monitoring) can be

programmed eitherin LADorFBD.

(34)

Wl GRAPH:Proaramminqs7SequentialControlSystems- Drill\..

&"

[image:34.545.115.421.53.509.2]

iie ai'. intar? LC fiebug jfjew jSpVana Mndcw Heb .sdlSJJ

I<MMM| JI "Sla-t but ten" II Clamp pres II

"Dnli rnolo 'Cacianl r

ruftmnq*sal'

II

~M

h

'DM: rnaso "Cooianl. f running sr

II II h

'Cool.pres II r own" II "Drtt up-II "Cip-ess ok' H Term V

"Drili mot"Cool press rslopped ok"

-M

-)r-pump of?T

T*CCMS

UP

T6

S1 Drill,ready

TI

S2 Pa..

S I'Cte'-owcrka'

S3 Moiar on

S

|

"Dr mol ot'

T3

ITans3

J7

Traris7

S7 Coolaii on

S Xool oump 31'

TS

TransS

SA

Lew..

LOwar eni

U 'low9'

.

dnir*

TransS

Raj. J

Rase dr:l! stass dri;r

t#50OMS

r s arm f/ pjmp olf

"Clamp

workf"

'Drmol c?r 'Cool puins

S1

Fig

3.6 A Graphprogram

3.4.2.2 AdvantagesofGraph

Following

aretheadvantagesoftheGraph programming

language,

[15]

1. Graphenables clearconfiguringoftheprocessintheplanningphase

2. Graphprovidesclear graphic representation oftheprocessusingsequencechains,resulting in easy

maintenanceand adaptation of programs

3.

Easy

troubleshooting

with internal diagnostics

functions,

resulting in minimizing of expensive
(35)

3.4.2.3DisadvantagesofGraph

Following

are thedisadvantagesoftheGraph programming

language,

1. Graphissuitableonly forsequential control.Logiccontrol cannotbeprogrammed

by

Graph. [15]

2. The transitions and steps needto beprogrammedineitherLADorFBD.Hence Graph is notan

independent language likeLADorFBD.

3.5 Structured Control Language

Structured Control Language

(SCL)

is a PASCAL-like high-level language optimized for programmable

controllers. SCL is in compliance with IEC61

131-3,

and is especially suited to the programming of complex algorithms orfor data processingprojects.[141

Apartfromtraditional control tasks, structured control language assists in performing data management

tasksand complex mathematical operations.tl6]

SCL statements consist ofexpressions, controlstatements, functions and blockcalls. Expressions assign

values, which can also be result of arithmetic and logic operations or comparison functions. Control

statements executetheprogrambranchesor repeat sections of a program.

FUNCTI0N_BL0CK FB27 UAR INPUT

SIG SEL : INT = 0

GRP1 SEL : BOOL = 0

GRP2 SEL : BOOL = 0

GRP3 SEL : BOOL = 0

ENDJJAR

UAR OUTPUT

SEL OUT : INT = 0

GRP1 OUT : BOOL = 0

GRP2 OUT : BOOL = 0

GRP3 OUT : BOOL = 0

ENDUAR

UAR

SELECT : INT;

MAX : INT;

ENDJJAR

BEGIN

SELECT = SIG SE

L;

MAX =

3; IF SELECT < 0 THEN

SELECT = -SELEtT;

END IF;

IF SELECT > MAX THEhI

SELECT =

MAX; END IF;

SEL OUT = SELEC1

GRP1 OUT = GRP1 S

EL;

GRP2 OUT = GRP2 S

EL;

GRP3 OUT = GRP3 SEL;

//make it positiue

//limit to MAX

END FUNCTION BLOCK

Fig

3.7 A function block in SCL [image:35.545.116.271.324.675.2]
(36)

3.5.1 AdvantagesofStructured Control Language

Following

are the advantages ofStructuredControl Language

1. SCLenables simple andfastprogramdevelopment forthe user,

by

theapplication of powerful

languageelements such asIF.. THEN.. ELSE.[15]

2. Programswrittenin SCLhave improvedcomprehensibilityandimprovedstructure.[15]

3. SCLprograms are programmed asASCIIsources and arethereforeeasytoimportand export.[15]

3.5.2 DisadvantagesofStructured Control Language

Following

arethedisadvantagesofStructured Control

Language,

1. SCLrequirestheknowledgeofbasic high level programminglanguageandhencenot popular

withtechnicians

2. SCL isnot a suitableforsimplelogiccontrols.

References:

[1]

Berger,

Hans.

Automating

withSIMATIC.

SIEMENS,

2000.

[2]

Petruzella,

Frank. Programmable Logic Controllers. Glencoe

McGraw-Hill,

1996.

[3]

http://xtronics.com/toshiba/llp.pdf,

1999.

[4] Gary

A. Mintchell.

http://www.controleng.com/archives/1998/ctl0402.98/04ebas.htm,

1998.

[5] Step

7-Ladder Logic for S7-300andS7-400. Siemens

Help

Manual,

2000.

[6]

http://www.plcopen.org/,

2000.

[7]

http://www.searcheng.co.uk/selection/control/Articles/IEC61

131/main.htm,

2001.

[8]

http://www.plcopen.org/tiaining_education/FBD2520Tutorial.ppt,

1999.

[9] http://www.controleng.com/archives/1996/02/issues/na/02cl54.htm,

2001.

[10]

N.J.Nelson.

http://boumemouth.ac.uk/forth/euro/efDO/nelsonOOb.pdf,

2000.

[11]

www.pcbasedautomation.com,2001.

[12]

http://www.sea.siemens.com/step/pdfs/plc_l.pdf,

2000.

[13] http://www.exciton.cs.rice.edu/comp410/STL/STL_Overview.htm,

2001.

[14]

http://wwwmc.cem.chTndCtiyGUAPI/Siemens_Step7Technique.html,

2001.

[15]

http://www.sea.siemens.com/sw/docs/s7pro.pdf,

2001.

[16]

Structured Control Language for

Step

7.Siemens

Help

Manual,

2000.

[17]

Johnson,

Hugh.Grafcet/Sequential Function

Charts,

1992

[18]

Lloyd,

Michael. Grafcet Addssequencedimensiontoladder

language,

1989
(37)

Section 4. Simatic

PC Based Automation System

4.1 Introduction

In this section, we shall discuss the Simatic Automation System. We shall discuss aboutthe various components of the system and then describe them in brief. We shall discuss the various Simatic Controllers and Distributed I/Osand theHMIs.

Next,

we shall describe the

Step

7 softwarein details. The

Step

7 software is the centraldevelopmenttool inthe Simatic Automation System.

Next,

we shall discuss the general architecture oftheprojects usedinthe Siemens' PC basedautomationtechnology. We shall present an overview of the project structure anddiscussthemainelements ofthestructurein detail. The main elementsinthis architecture are theSIMATIC

Manager,

theHardware configuration, the Organization

blocks,

the symbols table, the operator stations, WINCC

Explorer,

and the

WINLC,

whichisthePC-basedlogiccontrollerinthe

family

ofS7controllers.Weshalldiscusstheseelementsin briefand also discussthe variousprogramming languagesavailable inthe Simatic Automation System environment.

4.2 The

General Architecture

ofthe

Simatic Automation System

The Simatic Automation system is a range of coordinated components with uniform methods of

configuring,datamanagement anddatatransmission.[l]

4.2.1 Various Components/Generalarchitecture oftheSimatic Automation System

Simatic

S7, M7,

C7

Simatic

WinAC

Simatic Controllers

controlthemachine or plant

ttLi

Simatic

DP

DistributedBOsextendtheinterface between PLCandmachine/plant

Operator ControlandMonitoringof

theplant in operation

Simatic HMIs

==>

Simatic NET

Networkingfortheexchange ofdata

andprogrammingat a central point

Step

7

BasicSoftwarefoi

configuringand

programming.

[image:37.545.110.444.397.676.2]
(38)

TheentireSimatic Automationsystem consists offivemajorcomponents,viz.

Simatic Controllers

SimaticDistributed I/Os

(DP)

Simatic HMI

SimaticNET

Step7

The Simatic Controllers control the machine or the plant. The Simatic Distributed I/Os provide the

interface between the PLC and the machine or plant

being

controlled. Simatic NET provides the

networkingfortheexchange ofdata andprogrammingat a central point. Simatic HMIsare usedforthe

operator control andmonitoringoftheplantinoperation.

Finally,

Step

7isthe centraldevelopmenttool

intheSimatic Automationsystem,consistingof thebasicsoftwarefor configuringand programming.

4.3 Simatic Controllers

[1'

Simatic Controllers formthecore of the automation system and

help

in controllingproductionmachines,

manufacturingplants orindustrialprocesses.

There are three main families of controllers in the Simatic Automation

System,

viz. Simatic S7

controllers,Simatic M7controllers andtheSimatic C7controllers

Simatic S7 programmable logic controllers form thebasis ofthe automation system. There are three

typesofPLCs inthis

family,

S7-200 Micro

PLC,

S7-300modular mini

PLC,

for low-endan mid-range applications

S7-400 forhigh-endtop-levelperformance requirements

PLCs consist ofthe CPU (central processing unit) and the I/O modules. The CPU stores the user

program writtenin one ofthePLC programming languages. The I/Omodules providetheconnectionto

themachineortheplanttobecontrolled.

The M7 familiesof controllers areAT-compatiblecomputermodules,which expandtheSimaticsystem

by

providingan open software platformforstandard software products.

The C7 complete units are designed for machine control and offer PLC performance in a co

Figure

Fig. 2.3 Star Topology
Fig 2.4 Ring Topology
Fig 2.5 OSI ISO 7 layer model
Fig 3.6 A Graph program
+7

References

Related documents