You are on page 1of 6

2 Automation Solution

The following OPC-conform address must be used for a floating point value at
address DBD0 in the S7-1200:
x MSC:[RS001]DB1,REAL0
The abbreviation “DB1” does not mean that the information origins from or has to
be written to the data block with the number 1.
The following data types can be addressed:
x B (bytes)
x W (word)
x D (doubleword)
x CHAR (byte)
x INT (word, signed)
x DINT (word, signed)
x REAL (floating point value)
x STRING (string with fixed length), example: MSC:[RS001]DB1,STRING30.12
x DT (date and time BCD format)

Access to control tags at the example of the OPC client OPC-Scout


Figure 2-11
Copyright ¤ Siemens AG 2011 All rights reserved

In the “Item Names” column you see the OPC-conform address of the control tag
as it would have to be selected in other OPC clients as well. Station RS001 had
previously been created in SINAUT Micro SC.

S7-1200 and GPRS


16 V1.1, Entry ID: 39863979
2 Automation Solution

2.4 Archiving
Apart from the actual value visualization in the OPC client WinCC flexible it is
possible to archive the actual values using a VBA script. For this reason the current
time stamp at the time of measured value acquisition is sent as well as the process
values “filling level” and “pump status”.
In WinCC flexible the following script has been implemented.
Table 2-5
No. Explanation

2
Copyright ¤ Siemens AG 2011 All rights reserved

6
For the path for each tag to be archived later on is saved in WinCC flexible. This
1
enables the “SmartTags” to access the tag values later on.
2 Now the tag values are accessed. These values are saved in separate script tags.
The names for the *.csv-file are generated. Elements comprise the current data and
3
the station name to be able to assign the archive data records later on.
The generated file name is now compared with the already existing file names in the
4 storage path. If the file does not yet exist it is created. In each case the csv-file is
opened afterwards in order to enable the succeeding write process.
The data record separated by semi-colons containing the values “station”, “date”,
5
“time”, “FillLevel” and “PumpState” is now created.
6 In the last step the data record is written to the opened file and the file is closed.

This script is called at every value update of the seconds counter (part of the
transmitted time stamp). Thereby the script is informed of the folder structure and
possible prefixes in the name of the tags. This makes it possible to use the same
script for various tags and/or stations.

S7-1200 and GPRS


V1.1, Entry ID: 39863979 17
2 Automation Solution

Figure 2-12

2.5 Volume of data transmission


Below it is illustrated how many bytes are sent at the respective transmission
variants. Using this informtion you can estimate the monthly costs depending on
your selected tarif. Please note the approximation rules of the provider. A common
approximation rule, for example, is rounding to 10 KB per connection (modem login
to modem logout) or after one hour at the latest, if this data volume has not been
reached.

Note This example calculation does not consider:


x Repeated sending of frames due to missing acknowledgement
x Dial-in at the GPRS network until login at the SINAUT Micro SC Server (2000 bytes)
Copyright ¤ Siemens AG 2011 All rights reserved

Remote station (RS) actively sends process values to the central station (CS)
Table 2-6
No. Action Volume
1. Send data (RS Æ CS) (Bytes)
x Process values (user data) 12
x OPC frame 17
x IP frame 20
x TCP frame 20
2. Receive acknowledgement (CS Æ RS)
x OPC frame 6
x IP frame 20
x TCP frame 20
3. Total 115

S7-1200 and GPRS


18 V1.1, Entry ID: 39863979
2 Automation Solution

Central station (CS) actively fetches data from the remote station (RS)
Table 2-7
No. Action Volume
1. Send the request (CS Æ RS) (bytes)
x OPC frame 9
x IP frame 20
x TCP frame 20
2. Send process data (RS Æ CS)
x Process values (user data) 12
x OPC frame 17
x IP frame 20
x TCP frame 20
3. Total 118

Central station (CS) synchronizes time with the remote station (RS)
Table 2-8
No. Action Volume
Send the time frame (CS Æ RS)
Copyright ¤ Siemens AG 2011 All rights reserved

1. (bytes)
x OPC frame 14
x IP frame 20
x TCP frame 20
2. Send the acknowledgement (RS Æ (bytes)
CS) 6
x OPC frame 20
x IP frame 20
x TCP frame
3. Total 100

Cross-communication
During cross-communication, i.e. communication from remote station to remote
station, the total of the respective table (Table 2-6) or (Table 2-7) must be
multiplied with the factor “2”, because the data volume on both SIM cards of the
modems is taken into account.

S7-1200 and GPRS


V1.1, Entry ID: 39863979 19
2 Automation Solution

2.6 Hardware and software components


2.6.1 Remote station

Hardware components
Table 2-9
No. Ordering number Qty. Component
1. 6EP1332-1SH71 1 SIMATIC S7-1200, PM 1207, 2,5A
2. 6ES7211-1AD30-0XB0 1 SIMATIC S7-1200 CPU 1211C
3. 6ES7241-1AH30-0XB0 1 SIMATIC S7-1200 CM 1241, RS232
4. 6NH9720-3AA00 1 SINAUT MD720-3, GSM/GPRS Modem as of
HW3.4, FW1.7.4
5. 6NH9860-1AA00 1 SINAUT ANT 794-4MR, antenna
6. 6NH7701-5AN 1 SINAUT ST7 connecting cable, RS232, 1:1, or
comparable cable “modem cable”
7. 6XV1870-3QH20 1 For configuration, 2 meter, or comparable cable
8. 5SX2116-6 1 Line protection switch, 1 pole B, 16A
9. 6ES5 710-8MA11 1 Standard 35mm DIN rail
Copyright ¤ Siemens AG 2011 All rights reserved

10. Available at your mobile 1 SIM card (check whether special M2M tariffs
services provider. with included data volume are available)

Software components
Table 2-10
No. Ordering number Qty. Component
1. 6ES7822-0AA01-0YA0 1 STEP 7 Basic V11

2.6.2 Central station

Hardware components
Table 2-11
No. Ordering number Qty. Component
1. 6EP1332-1SH71 1 SIMATIC S7-1200, PM 1207, 2,5A
2. 6ES7647-7BE20-0DB0 1 SIMATIC IPC427C
3. 6ES5 710-8MA11 1 Standard 35mm DIN rail
4. Specialist dealer 1 Router with port forwarding

Note The listed order number of the SIMATIC IPC427C covers the following system
configuration:
Processor: CORE2 SOLO 1.2 GHZ, memory: 1 GBYTE DDR3 SODIMM, hard
disk: 32 GB SSD Disk, operating system: WINXP PROF MULTI-LANGUAGE
View/adjust system data in detail: https://mall.automation.siemens.com
Instead of the IPC427C, a standard Windows PC may be used for testing.

S7-1200 and GPRS


20 V1.1, Entry ID: 39863979
2 Automation Solution

Software components
Table 2-12
No. Ordering number Qty. Component
1. 6NH9 910-0AA10-0AA3 1 SINAUT MICRO SC 8 stations
(available license: for 8, 64 and 256 stations)
2. 6AV6613-1BA51-3CA0 1 WinCC flexible 2008 Runtime for 128 tags

Note The WinCC flexible version specified here enables you to start and operate the
Runtime file (*.fwx). Should it become necessary to also edit the project file
(*.hmi), other licenses are required.
For example, WinCC flexible 2008 Engineering (6AV6613-0AA51-3CA5)

Services of a provider
Table 2-13
No. Ordering number Qty Component
.
1. Internet provider 1 Internet connection with static IP address
Copyright ¤ Siemens AG 2011 All rights reserved

2. Dyn-DNS service 1 If no static IP address is available (e.g.


http://www.dyndns.com)

S7-1200 and GPRS


V1.1, Entry ID: 39863979 21

You might also like