6
Page 1 Advantech AE Technical Share Document Date 2016 / 12 / 15 SR# 1-2745780431 Category FAQ □ SOP Related OS Microsoft Windows7 Abstract WebAccess SCADA connects to Siemens S7-1200 PLC Keyword WebAccess, Siemens S7-1200 PLC Related Product Siemens S7-1200 FW 4.0 and above Description: This document teaches user how to connect WebAccess SCADA to Siemens S7-1200 PLC. In order to achieve this request, user has to use TIA Portal V13 Solutions: 1. To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration in Simatic S7 TIA Portal V13. 2. Move mouse cursor over PLC (e.g. PLC_1[CPU 1212C AC/DC/Rly]) and then click right button of mouse -> select ”Properties”

Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Embed Size (px)

Citation preview

Page 1: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 1

Advantech AE Technical Share Document Date 2016 / 12 / 15 SR# 1-2745780431

Category ■ FAQ □ SOP Related OS Microsoft Windows7

Abstract WebAccess SCADA connects to Siemens S7-1200 PLC

Keyword WebAccess, Siemens S7-1200 PLC

Related Product Siemens S7-1200 FW 4.0 and above

Description:

This document teaches user how to connect WebAccess SCADA to Siemens S7-1200 PLC. In order to

achieve this request, user has to use TIA Portal V13

Solutions:

1. To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration in Simatic S7 TIA Portal

V13.

2. Move mouse cursor over PLC (e.g. PLC_1[CPU 1212C AC/DC/Rly]) and then click right button of mouse ->

select ”Properties”

Page 2: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 2

3. PLC_1 dialog box pops up

General -> Protection -> put tick in “HMI”, “Read” and “Write” in Full Access.

Keep going to “Connection mechanisms” function

Put tick in “Permit access with PUT/GET communication….”, then click “OK” button

4. Click “PLC_1[CPU 1212C AD/DC/Rly]

Next, move mouse cursor over PLC network connector (step 2), then click right button of mouse and select

“Properties”. Remove the tick in “Use Router” and make sure “Set IP Address in the project” is ticked.

Page 3: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 3

5. Last and most important step, download program and reboot the Siemens S7-1200 PLC so all

configurations will be valid after reboot.

6. Four tags already exist in S7-1200 PLC

PLC tags -> Show all tags

Tag Name Data Type Address

Tag_1 Bool %I0.4

Tag_2 Bool %Q0.3

Tag_3 Bool %M0.4

Tag_4 Uint %MW0

7. WebAccess Tag configuration for Tag_1 %I0.4 address:

Address: IX000

Conversion Code: Unsigned Integer

Start Bit: 4

Length: 1

8. WebAccess Tag configuration for Tag_2 %Q0.3 address:

Address: QX000

Conversion Code: Unsigned Integer

Start Bit: 3

Length: 1

Page 4: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 4

9. WebAccess Tag configuration for Tag_3 %M0.4 address:

Address: MX000

Conversion Code: Unsigned Integer

Start Bit: 4

Length: 1

10. WebAccess Tag configuration for Tag_4 %MW0 address:

Address: MW000

Conversion Code: Unsigned Integer

Start Bit: 0

Length: 16

11. For tags in Program Blocks, user has to enable “offset” in block because WebAccess tag address is based on

block number with offset

12. Move mouse cursor to block (E.g. Data_block_4[DB4]), and click right button of mouse, then select

“Properties”

Page 5: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 5

“Data_block_4[DB4] property dialog box popup.

Attributes -> uncheck “Optimized block access” -> click “OK” button

Click right button of mouse -> Show/Hide -> check “Offset”

“Offset” option will appear in the list.

13. TIA Portal V13 block with Array:

WebAccess tag address has to choose DBW for Word data type

To read PLC DB1 DBW[4], WebAccess tag address will be: DBW1,8

- 1 means DB1 block

- 8 means Offset

Page 6: Advantech AE Technical Share Documentadvdownload.advantech.com/productfile/Downloadfile3/1-19ERLR2... · To communicate with Siemens S7-1200 PLC, user has to modify PLC configuration

Page 6

14. PLC Block without array (Data_block_4 [DB4]):

Tag Name Data Type Offset

A1 Word 0.0

A2 Int 2.0

15. To read PLC DB4 A1 (WORD type), WebAccess tag address will be:

Address: DBW4,0

Conversion Unsigned Integer

16. To read PLC DB4 A2 (Integer type): WORD type, WebAccess tag address will be:

Address: DBW4,2

Conversion Code: Signed Integer