For Siemens S-7 controllers

  • Open the TagsCollector Editor and select the Data Collection tab from the top of the page.
  • In the data entry section at the bottom of the page, locate the Protocol drop down box in the Tag Type section and select the appropriate controller (S7-200, S7-300, S7-400, S7-1200, S7-1500) from the list of available options.


Model Types (Each Model will be listed under “Protocol”)

Member

Description

S7_1200

S7-1200 & S7-1500 families

S7_200

S7-200 family

S7_300

S7-300 family

S7_400

S7-400 family




  • Enter the IP address for the controller you would like to access
  • Enter the Routing Path for the CPU where the tag resides. The routing path is comprised of the rack number and the slot number of where the CPU is located separated by a comma. The most common routing path is 0,1
  • Next, you will need to either enter the Memory Location in the absolute addressing format that is utilized by S7 devices. E.g. DB8.DBW104, DB8.DBD122, DB8.DBX150.2, etc.  
  • Select the Data Type of the tag added that matches the data type in the PLC.


Data Type

Member

Description

BCD16

16-bit BCD integer.

Occupies two contiguous registers on the hardware device.

BCD32

32-bit BCD integer.

Occupies four contiguous registers on the hardware device.

BCD8

8-bit BCD integer.

Occupies a single register on the hardware device.

Byte

8-bit unsigned integer.

Occupies a single register on the hardware device.

Int16

16-bit signed integer.

Occupies two contiguous registers on the hardware device.

Int32

32-bit signed integer.

Occupies four contiguous registers on the hardware device.

SByte

8-bit signed integer.

Occupies a single register on the hardware device.

Single

IEEE 32-bit floating point. 

Occupies four contiguous registers on the hardware device.

String

ASCII string that can hold up to 254 characters.

Structure

 

UInt16

16-bit unsigned integer.

Occupies two contiguous registers on the hardware device.

UInt32

32-bit unsigned integer.

Occupies four contiguous registers on the hardware device.



  • Enter an Update time that is desired for the tag. See the Tag Update Time section for additional help in selecting optimum update times while reducing system overhead.  
  • Once the tag name has been entered, click the Read button to verify operation and see the current value of the tag.


Siemens controllers only allow connections to variables stored in global data blocks. Before tag data can be accessed there are several controller parameters that must be configured inside the PLC by utilizing Siemens TIA Portal software. See required setting below.


First, Uncheck the Optimized block access (checked by default)


Next, under item Protection, select “Full access” and Check “Permit access with PUT/GET ….”