Siemens Security Setup

If you encounter an error when using the Siemens Driver Interface of Function Not Supported you may need to setup the security in the PLC to access access.  Following are the steps on how to setup security in the S7 controller.

  1. Open the PLC project in the S7 TIA Portal software.
  2. Go to Project View
  3. In the Project Tree window, select the device that is causing the error.
  4. Hit Alt-Enter to bring up the Properties dialog.
  5. On the General tab, select Protection.
  6. Ensure that one of the following options is checked:

Full access (no protection)
Read access
HMI access

  1. Check ‘Permit access with Put/Get communication from remote partner.
  2. Click the OK button to save the settings.
  3. Compile and save project, then download modified program to controller.

Siemens Address Syntax

Open Automation Software Tags can be defined to connect directly to Siemens controllers with the built in Siemens Driver Interfaces which support communications over Ethernet to S7-200, S7-300, S7-400, S7-1200, and S7-1500.

The following steps can be used to setup direct communications with Siemens controllers:

Syntax

Standard Types:

S7-200 Timer and Counter:

Data Block:

Memory Areas

Memory
Area
Descriptio Bit
Access
Byte
Access
Word
Access
DWord
Access
I,
E
Discrete
Inputs and Image Register
R/W R/W R/W R/W
Q,
A
Discrete
Outputs and Image Register 
R/W R/W R/W R/W
M Internal Memory
Bits
R/W R/W R/W R/W
SM Special
memory Bits
R/W R/W R/W R/W
V Variable
Memory
R/W R/W R/W R/W
T Timer
Current and Timer Bit
R/W
(T.Bit)
no T.Current
R/W
no
C Counter Current
and Counter Bit
R/W
(C.Bit)
no C.Current
R/W
no
HC High-speed
Counter
no no no RO
AI Analog
Inputs
no no RO no
AQ Analog
Outputs
no no RW no
AC Accumulator no no no no
L Local
Variable Memory
no no no no
S SCR R/W R/W R/W R/W


S7-300, S7-400

Memory
Area

Description

Bit
Access

Byte
Access

Word
Access

DWord
Access

I,
E

Discrete
Inputs and Image Register

R/W

R/W

R/W

R/W

Q,
A

Discrete
Outputs and Image Register 

R/W

R/W

R/W

R/W

M,
F

Internal Memory
Bits

R/W

R/W

R/W

R/W

PI,
PE

Peripheral
Inputs

R/W

R/W

R/W

R/W

PQ,
PA

Peripheral
Outputs

R/W

R/W

R/W

R/W

DB

Datablock
Memory

R/W

R/W

R/W

R/W

 

S7-1200, S7-1500

Memory
Area

Description

Bit
Access

Byte
Access

Word
Access

DWord
Access

I,
E

Discrete
Inputs and Image Register

R/W

R/W

R/W

R/W

Q,
A

Discrete
Outputs and Image Register 

R/W

R/W

R/W

R/W

M,
F

Internal Memory
Bits

R/W

R/W

R/W

R/W

DB

Datablock
Memory

R/W

R/W

R/W

R/W

 

Data Width

Data
Width Specifier

Description

Bits

Supported
Data Types

X,
none

Bit

1

Boolean

B

Byte

8

SByte,
Byte, BCD8, String, Structured Types

W

Word

16

Int16,
UInt16, BCD16

D

DWord

32

Int32,
UInt32, BCD32, Single

 

Address

Address is controller family and model dependent. Consult controller documentation for valid ranges.

Bit

Data
Width Specifier

Description

Valid
Range

B

Byte

0..7

W

Word

0..15

D

DWord

0..31

Getting Started Siemens

Open Automation Software Tags can be defined to connect directly to Siemens controllers with the built in Siemens Driver Interfaces which support communications over Ethernet to S7-200, S7-300, S7-400, S7-1200, and S7-1500.

The following steps can be used to setup direct communications with Siemens controllers.

Step 1

Getting Started-Tags 1Start Configure OAS application from the program group Open Automation Software.

 

Step 2

Select Configure-License and verify that Siemens is one of the available Drivers in the lower left of the form.  If you do not Siemens driver available contact support@openautomationsoftware.com to update your license.

Getting Started Modbus 1

Note: You will need to be running Open Automation Software Version 8.0.0.10 or greater to support direct Siemens communications.  You can download the latest version at www.opcsystems.com.

Step 3

Select Configure-Drivers.

Getting Started Modbus 2

Step 4

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Getting Started Modbus 3

Note: Optionally select the Live Data Cloud node if you are hosting Siemens data over the Internet with a standard Internet connection.

Step 5

Enter a meaningful Driver Interface Name that you will refer to this physical connection when defining Tags with a Siemens Data Source.

Set the Driver to Siemens

Define the properties for the desired physical connection.

Note: You may need to Set Default Network Adapter for Driver Interfaces of the operating system.

Getting Started Siemens 1

Note: When connecting to a S7-200 append the TSAP Local and Remote to the IP Address. Ex: 192.168.1.1.1000,1000.

Here is a link to the Siemens Documentation on TSAP: https://support.industry.siemens.com/tf/ww/en/posts/is-tsap-hard-to-understand/26160/?page=0&pageSize=10#top

Step 6

Select the Add button in the lower part of the form to add the Driver Interface as an available selection when defining Tags in the next step.

Getting Started Modbus 6

Note: If you need to define several Driver Interfaces you can use the CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel.

Step 7

Select Configure-Tags.

Getting Started Modbus 7

Select localhost or the remote service you wish to modify with the Select button to the right of the Network Node list.

Getting Started Modbus 3

Note: Optionally select the Live Data Cloud node if you are hosting Modbus data over the Internet with a standard Internet connection.

Step 8

Select to Add a Tag.

Note: You can also add organizational Groups as many levels deep as you prefer and add tags to groups.  To do this first add a Group to the root level, then right click on the Group in the right window to add additional Groups or Tags.

Getting Started-Tags 8

Step 9

Change the Data Source Tag property to Siemens.

Getting Started Siemens 3

 

Step 10

Select the correct Driver Interface from the Driver Interface pull down list.

Getting Started Siemens 2

Step 11

Specify the desired Polling Rate for the Tag.

Specify the Address of the variable to read and write to.

Step 12

To define multiple tags use the CSV Export and CSV Import on the toolbar in the upper right together with Microsoft Excel.

Note: You can also programmatically define Tags using the free to use OPC Systems component as demonstrated in the Form FormConfigureCSV in the WinForm Example Code application that installs with Open Automation Software in the Program Group Open Automation Software.  This component can be used in any .NET application includes Web Services, Windows Services, WPF Applications, and ASP.NET Web Applications.

Step 13

Select the Save button on the toolbar at the top.

Getting Started-Tags 19

Step 14

Create a directory on the local C: drive with the name OPCSystemsDemo.

Save the file DemoTags.tags in the directory C:OPCSystemsDemo.

Getting Started-Tags 20

Step 15

Under Configure – Options set the Default Tag Configuration File so when the computer restarts the tag file will automatically be loaded.

More: