1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

S7-1200 and Step7 Basic v10.5 communication

25 834 5

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 25
Dung lượng 1,04 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

S7-1200 and Step7 Basic v10.5 communication

Trang 1

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 1

For internal use only / © Siemens AG 2009 All Rights Reserved.

S7-1200 and

STEP7 Basic V10.5

Chapter 7:

Communication

Trang 2

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 2

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Overview: Communication interfaces

CPU onboard: Ethernet (PROFINET)

ƒ Client: PUT/GET (in preparation)

ƒ PROFINET I/O (in preparation)

Trang 3

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 3

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

ƒ RTU Master-Protocol

ƒ RTU Slave-Protocol

3rd Party

Trang 4

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 4

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Open user communication – Overview

Blocks without connection management

Blocks with connection management

Trang 5

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 5

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

IP Address ConnectionID TSAP/PORT

TSEND SFB

TCON SFB

TDISCON SFB

TRCV SFB

CPU 2 (passive)

Connection data

IP Address ConnectionID TSAP/PORT

TRCV SFB

TCON SFB

TDISCON SFB

TSEND SFB

Disconnect Data

Data

Trang 6

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 6

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

IP Address ConnectionID TSAP/PORT

TSEND_C SFB

TRCV_C SFB

CPU 2 (passive)

Connection data

IP Address ConnectionID TSAP/PORT

TRCV_C SFB

TSEND_C SFB

Trang 7

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 7

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

er P rotocol

http

Hyper T

ext Transf

er Pro tocol

ple N

etwork

Mana

g. Protocol

Trang 8

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 8

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

er P rotocol

http

Hyper T

ext Transf

er Pro tocol

ple N

etwork

Mana

g. Protocol

Port

102

TCP

Trang 9

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 9

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

TSAP (Transport Service Access Point)

Trang 10

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 10

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

connect PLCs with subnet via Drag&Drop

Properties of the Ethernet interface

Trang 11

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 11

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Below „Other“ are the blocks without connection management

Trang 12

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 12

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Send data with „TSEND_C“

Connecting, send data and disconnecting in one block

Hold connection or disconnecting

Connection data

IP Address ConnectionID TSAP/PORT

Connecting and send data with rising edge

Trang 13

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 13

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

IP Address ConnectionID TSAP/PORT

Choice connection type

Trang 14

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 14

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Exercise for Communication

Let’s just do it the lab for you

Hands-on

Trang 15

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 15

Process 1 connect two S7-1200 Demo Boxes

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 16

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 16

Process 2 activate „Create new project“

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 17

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 17

Process 5 start editor for „Devices & Networks“

SIMATIC S7-1200 > CPU > Unspecified CPU 1200

7 insert PLC via Drag&Drop in „Network view“

10 switch to the device view of PLC_1

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 18

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 18

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

1 5

1 6

1 7

Hands-on

Process 11 detect the configuration of the connected device

12 select accessible device (check MAC-address)

13 load configuration

14 uploaded configuration of S7-1200 Demo rack

15 select PLC_2 in the DropDown list

16 repeat Step 11 up to 14 also for the second PLC

17 switch to the Network view

Trang 19

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 19

Process 18 activate „Networks“ in the taskbar

19 connect both PLC with a subnet via Drag&Drop

20 select PLC_1

21 activate clock memory bits for PLC_1

Hint: You need following memory bit for your user program:

- „1Hz clock“ (M0.5)

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 20

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 20

23 In Extended instructions select „TSEND_C“ at Communication >

Open user communication and insert in OB1 via Drag&Drop

24 add Instance-DB for „TSEND_C“

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

23

24

Hands-on

Trang 21

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 21

Process 25 set PLC_2 as Partner PLC

26 assign „PLC1“ to Local TSAP and „PLC2“ to Partner TSAP

27 assign M0.5 (1Hz Clock) to In-Parameter „REQ“

28 assign TRUE to In-Parameter „CONT“

29 assign ‘1’ to In-Parameter „LEN“

30 assign IB0 to In-Parameter „DATA“

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 22

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 22

32 In Extended instructions select „TRCV_C“ at Communication >

Open user communication and insert in OB1 via Drag&Drop

33 add Instance-DB for „TRCV_C“

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 23

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 23

Process 34 set PLC_1 as Partner PLC

35 choose „PLC_2_Connection_DB“ as connection data for Local PLC and „PLC_1_Connection_DB“ for Partner PLC

36 assign TRUE to In-Parameter „EN_R“

37 assign TRUE to In-Parameter „CONT“

38 assign ‘1’ to In-Parameter „LEN“

39 assign QB0 to In-Parameter „DATA“

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 24

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 24

Process 40 select both PLCs (CTRL + mouse click)

41 load projects

For internal use only / © Siemens AG 2009 All Rights Reserved.

Industry Sector Communication

Trang 25

SIMATIC Systems Support

I IA AS CS 2 FA

S7-1200 and STEP7 Basic V10.5

CommunicationPage 25

For internal use only / © Siemens AG 2009 All Rights Reserved.

I IA AS CS 2 FA

Phone: +49 (911) 895-4646E-Mail: sss.simatic@siemens.com

Thank you for your attention!

Ngày đăng: 24/05/2014, 21:48

TỪ KHÓA LIÊN QUAN

w