Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Automating manufacturing systems with PLCs.2005.pdf
Скачиваний:
261
Добавлен:
23.08.2013
Размер:
5.34 Mб
Скачать

plc network - 28.23

Figure 28.17 A Box Loading System

28.6SUMMARY

Networks come in a variety of topologies, but buses are most common on factory floors.

The OSI model can help when describing network related hardware and software.

Networks can be connected with a variety of routers, bridges, gateways, etc.

Devicenet is designed for interfacing to a few inputs and outputs.

Controlnet is designed for interfacing between controllers.

Controlnet and devicenet are based on CANbus.

Ethernet is common, and can be used for high speed communication.

Profibus is another control network.

28.7PRACTICE PROBLEMS

1.Explain why networks are important in manufacturing controls.

2.We will use a PLC to control a cereal box filling machine. For single runs the quantities of cereal types are controlled using timers. There are 6 different timers that control flow, and these result in different ratios of product. The values for the timer presets will be downloaded from another PLC using the DH+ network. Write the ladder logic for the PLC.

3.

a)We are developing ladder logic for an oven to be used in a baking facility. A PLC is controlling the temperature of an oven using an analog voltage output. The oven must be started with a push button and can be stopped at any time with a stop push button. A recipe is used to control the times at each tempera-

plc network - 28.24

ture (this is written into the PLC memory by another PLC). When idle, the output voltage should be 0V, and during heating the output voltages, in sequence, are 5V, 7.5V, 9V. The timer preset values, in sequence, are in N7:0, N7:1, N7:2. When the oven is on, a value of 1 should be stored in N7:3, and when the oven is off, a value of 0 should be stored in N7:3. Draw a state diagram and write the ladder logic for this station.

b)We are using a PLC as a master controller in a baking facility. It will update recipes in remote PLCs using DH+. The master station is #1, the remote stations are #2 and #3. When an operator pushes one of three buttons, it will change the recipes in two remote PLCs if both of the remote PLCs are idle. While the remote PLCs are running they will change words in their internal memories (N7:3=0 means idle and N7:3=1 means active). The new recipe values will be written to the remote PLCs using DH+. The table below shows the values for each PLC. Write the ladder logic for the master controller.

 

button A

button B

button C

 

 

 

 

 

13

17

14

PLC #2

690

235

745

 

45

75

34

 

 

 

 

 

76

72

56

 

345

234

645

PLC #3

987

12

23

 

345

34

456

 

764

456

568

 

87

67

8

 

 

 

 

4.A controls network is to be 1500m long. Suggest three different types of networks that would meet the specifications.

5 How many data bytes (maximum) could be transferred in one second with DH+?

6.Is the OSI model able to describe all networked systems?

7.What are the different methods for resolving collisions on a bus network?

28.8 PRACTICE PROBLEM SOLUTIONS

1.These networks allow us to pass data between devices so that individually controlled systems can be integrated into a more complex manufacturing facility. An example might be a serial connection to a PLC so that SPC data can be collected as product is made, or recipes downloaded as they are needed.

plc network - 28.25

2.

 

 

 

 

 

 

 

 

 

 

 

 

 

Read Message

MG9:0/EN

on

 

 

 

Remote station #1

 

 

 

MSG

 

Remote Addr. N7:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MG9:0

 

Length 6

 

 

 

 

 

 

 

 

 

MG9:0/DN

 

 

 

 

 

 

 

 

 

Destination N7:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

on

FAL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DEST. #T4:0.PRE

 

 

 

 

 

 

 

 

 

 

 

start

 

 

stop

EXPR. #N7:0

on

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

on

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

box present

 

 

 

on

 

 

 

 

 

 

 

 

TON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TON

 

T4:0/TT

 

 

 

 

 

 

 

 

 

T4:5

fill hearts

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4:1/TT

 

 

 

 

 

 

 

 

 

 

 

fill moons

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ETC...

plc network - 28.26

3.

a)

start

stop

T4:2/DN

 

 

 

on N7:3/0

 

 

 

MOV

 

on N7:3/0

 

Source N7:0

 

 

 

Dest T4:0.PRE

 

 

 

MOV

 

 

 

Source N7:1

 

 

 

Dest T4:1.PRE

 

 

 

MOV

 

 

 

Source N7:2

 

on

 

Dest T4:2.PRE

 

 

TON

 

 

 

 

 

 

Timer T4:0

 

T4:0/DN

 

Delay 0s

 

 

TON

 

 

 

 

 

 

Timer T4:1

 

T4:1/DN

 

Delay 0s

 

 

TON

 

 

 

 

 

 

Timer T4:2

 

 

 

Delay 0s

 

BT10:0/EN

 

Block Transfer Write

 

 

 

Module Type Generic Block Transfer

 

 

 

Rack 000

 

 

 

Group 3

 

 

 

Module 0

 

 

 

Control Block BT10:0

 

 

 

Data File N9:0

 

 

 

Length 13

 

T4:0/TT

 

Continuous No

 

 

MOV

 

 

 

 

 

 

Source 2095

 

 

 

Dest N9:0

 

T4:1/TT

 

MOV

 

 

 

 

 

 

Source 3071

 

T4:2/TT

 

Dest N9:0

 

 

MOV

 

 

 

 

 

 

Source 3686

 

 

 

Dest N9:0

 

on

 

MOV

 

 

 

 

 

 

Source 0

 

 

 

Dest N9:0

plc network - 28.27

b)

 

MG9:0/EN

 

 

 

 

 

 

 

 

MSG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(EN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Rec Message

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Block MG9:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(ER)

 

 

 

MG9:1/EN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSG

 

 

 

 

(EN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Rec Message

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(DN)

 

 

 

MG9:2/EN

 

 

 

 

 

 

 

 

Control Block MG9:1

 

(ER)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSG

 

 

 

 

(EN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Rec Message

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Block MG9:2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MG9:3/EN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(ER)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(EN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send/Rec Message

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Block MG9:3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(ER)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MG9:0

 

 

 

 

 

MG9:1

 

 

 

 

MG9:2

 

 

MG9:3

 

 

Read/Write

 

Write

Read/Write

Write

Read/Write

Read

Read/Write

Read

Data Table

 

N7:40

Data Table

N7:43

Data Table

N7:3

Data Table

N7:3

Size

 

3

 

 

Size

6

 

 

 

Size

 

 

1

Size

1

Local/Remote Local

Local/Remote Local

Local/Remote Local

Local/Remote Local

Remote

 

N/A

Remote

N/A

 

Remote

N/A

Remote

N/A

Link ID

 

N/A

Link ID

N/A

 

Link ID

N/A

Link ID

N/A

Remote Link

 

N/A

Remote Link N/A

 

Remote Link

N/A

Remote Link N/A

Local Node

 

2

 

 

Local Node

3

 

 

 

Local Node

2

Local Node

3

Processor

 

PLC-5

Processor

PLC-5

Processor

PLC-5

Processor

PLC-5

Dest. Addr.

 

N7:0

Dest. Addr.

N7:0

 

Dest. Addr.

N7:0

Dest. Addr.

N7:1

 

 

 

 

A

 

N7:0/0

N7:0/1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Source N7:10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dest N7:40

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Length 9

 

 

 

 

 

 

 

 

 

B

N7:0/0

N7:0/1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Source N7:20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dest N7:40

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Length 9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

N7:0/0

N7:0/1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Source N7:30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dest N7:40

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Length 9

 

 

 

 

 

 

N7:10

13

690

45

76

 

 

345

987

 

 

 

 

 

 

 

 

 

 

 

 

345

764

87

0

 

 

 

 

 

 

 

 

 

 

N7:20

17

235

75

72

 

 

234

12

34

 

456

67

0

 

 

 

 

 

N7:30

14

745

34

56

 

 

645

23

456

568

8

0