Applications & Tools. Wireless Data Communication via SMS with SIMATIC S SIMATIC S7-1200, SINAUT MD Application Description July 2010

Similar documents
X-Tools Loading Profile Files (LPF)

Applikationen & Tools. Network Address Translation (NAT) and Network Port Address Translation (NAPT) SCALANCE W. Application Description July 2009

Application on Control Technology

Windows firewall settings for X-Tools Server Pro. CMS X-Tools / V / CPU PN/DP. Application description 6/2016

TeleService of a S station via mobile network

Generating the Parameters for the Modbus/TCP Communication

Cover. WinAC Command. User documentation. V1.5 November Applikationen & Tools. Answers for industry.

Applications & Tools. System Architectures With SIMATIC PCS 7/OPEN OS SIMATIC PCS 7. Application Description November Answers for industry.

Checking of STEP 7 Programs for the Migration of S7-318 to S CPU318 Migration Check. Application description 01/2015

Application example 02/2017. SIMATIC IOT2000 Connection to IBM Watson IoT Platform SIMATIC IOT2040

Application example 12/2016. SIMATIC IOT2000 OPC UA Client SIMATIC IOT2020, SIMATIC IOT2040

Application for Process Automation

Determination of suitable hardware for the Process Historian 2014 with the PH-HWAdvisor tool

Setting up 08/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Topology Reporter Tool Description April 2012 Applications & Tools Answers for industry.

Application about Drive Technology

Setting up 01/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Setting up time synchronization of Process Historian and Information Server

Applications & Tools. Individual Access to Stored PDF- and HTML-Documents via Comfort Panel. WinCC Comfort V11. Application Description May 2012

SIMATIC S7-1200, SINAUT MD720-3

Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Display of SINAMICS Fault Messages in WinCC V7.4




Setting up a secure VPN connection between two SCALANCE S Modules Using a static IP Address

Networking a SINUMERIK 828D

Moving a Process Historian/ Information Server from Workgroup A to Workgroup B

SINAMICS G/S: Integrating Warning and Error Messages into STEP 7 V5.x or WinCC flexible

Automatic Visualization of the Sample Blocks in WinCC Advanced

Micro Application Example

Transmitting HMI data to an external monitor

Applications & Tools. Communication between WinAC MP and a SIMATIC S7. Application for the PUT and GET Function Blocks of the S7 Communication

Applications & Tools. Remote Configurations in Water and Wastewater Technology SIMATIC PCS 7. Application Description May Answers for industry.


Data Storage on Windows Server or NAS Hard Drives

Configuration of an MRP ring with SIMOCODE and SIMATIC S SIMOCODE pro V PN, SIMATIC S Siemens Industry Online Support

Application for Process Automation

Library Description 08/2015. HMI Templates. TIA Portal WinCC V13.

Block for SIMOTION SCOUT for Monitoring 24V-Branches

Integral calculation in PCS 7 with "Integral" FB or "TotalL" FB

Applications & Tools. Block for STEP 7 V5.5 for monitoring 24 V DC load circuits using SITOP PSE200U Single Channel Message and S7-300/400 CPUs

Application for Process Automation

SINAMICS V: Speed Control of a V20 with S (TIA Portal) via MODBUS RTU, with HMI

Drive System Application

Setting up a secure VPN Connection between the TS Adapter IE Advanced and Windows 7

Improving the performance of the Process Historian

Monitoring of 24 V load circuits

Display of SINAMICS Error Messages in Runtime Professional


Cover sheet. Application Operations Diary. WinCC Flexible 2008 SP1. Application Description June Applications & Tools. Answers for industry.

User Login with RFID Card Reader

Configuration of an MRP Ring and a Topology with Two Projects

Applications & Tools. Security Configurations in LAN and WAN (DSL) with SCALANCE S61x Modules and the Softnet Security Client. Industrial Security

Setting up a secure VPN Connection between SCALANCE S and CP x43-1 Adv. Using a static IP Address. SCALANCE S, CP Advanced, CP Advanced

Applications & Tools. Service Concept: Auto Backup for the Comfort Panels. WinCC (TIA Portal) V12. Application Description May 2013

Drive System Application

Setting up a secure VPN Connection between SCALANCE S and SSC Using a static IP Address. SCALANCE S, SOFTNET Security Client

Applications & Tools. Configuration Control (Options Handling) for ET 200SP and PROFINET SIMATIC S7. Application Description June 2012

Sending and Receiving SMS Messages via a SCALANCE M Router SCALANCE M874/M876, S7-1200/S CPU / V1.0. Application Example 06/2016


Applications & Tools. Wireless Data Communication via GPRS with S and CP

Applications & Tools. Remote Control of Operator Panel in Applications requiring Validation in the Pharmaceutical Environment

Applications & Tools. Configuration of Direct Starters with the APL Channel Block FbSwtMMS in SIMATIC PCS 7 SIMATIC PCS 7 V8.0

Acyclic communication between S and V90PN via PROFINET. Application example 12/


Key Panel Library / TIA Portal

Monitoring Energy Consumption with LOGO! 8 and LOGO! CMR

House Control with Touch Panel

STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP

SIMATIC PCS 7 Minimal Configuration

Applications & Tools. Time-of-Day Synchronization between WinCC Runtime Professional and S7 Controllers. WinCC Runtime Professional

Setting up a secure VPN Connection between CP x43-1 Adv. and SOFTNET Security Client Using a static IP Address


Customizing of WinCC Controls. TIA Portal WinCC Runtime Professional. Application Description July Applications & Tools. Answers for industry.

Configuring the F-I-Device function with the SENDDP and RCVDP blocks.

Safe and Fault Tolerant Controllers

RAID systems within Industry

SIMOTION and HMI configuration

SINAMICS G/S: Tool for transforming Warning and Error Messages in CSV format

Documentation of Production Processes with WinCC flexible WinCC flexible 2008 SP1 Application Description

Check List for Programming Styleguide for S7-1200/S7-1500

SIMATIC NET OPC Server Implementation

Drive System Application

Exchange of large data volumes between S control system and WinCC


Multiuser Engineering in the TIA Portal

Configuration Instruction

Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016


Open user communication to 3rd party control system. STEP 7 (TIA Portal), S7-1200/S7-1500, Allen-Bradley. Library description 01/2015


Configuration Control with the S and ET 200SP

Application for Communication



Applications & Tools. Wireless Data Communication via GPRS with S and CP


X-Tools configuration to connect with OPC servers and clients

Applications & Tools. Industrial Remote Communication: Data Communication via GPRS with S and CP S Set 31

Transcription:

Cover Wireless Data Communication via SMS with SIMATIC S7-100 SIMATIC S7-100, SINAUT MD70-3 Application Description July 010 Applications & Tools Answers for industry.

Industry Automation and Drives Technologies Service & Support Portal This article is taken from the Service Portal of Siemens AG, Industry Automation and Drives Technologies. The following link takes you directly to the download page of this document. http://support.automation.siemens.com/ww/view/en/4061648 For questions about this document please use the following e-mail address: online-support.automation@siemens.com Please also actively use our technical forum from the Service & Support Portal regarding this subject. Add your questions, suggestions or problems and discuss them together with our strong forum community. http://www.siemens.com/forum-applications V1.0, Entry ID: 4061648

s SIMATIC Wireless Signaling and Switching per SMS with S7-100 V1.0, Entry ID: 4061648 3

Warranty and Liability Warranty and Liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The application examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These application examples do not relieve you of the responsibility to use sound practices in application, installation, operation and maintenance. When using these application examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these application examples at any time without prior notice. If there are any deviations between the recommendations provided in this application example and other Siemens publications e.g. Catalogs the contents of the other documents have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. It is not permissible to transfer or copy these application examples or excerpts of them without having prior authorization from Siemens Industry Sector in writing. 4 V1.0, Entry ID: 4061648

Table of Contents Table of Contents Warranty and Liability... 4 1 Automation Task... 6 1.1 Application environment... 6 1. Product-related environment... 7 Automation Solution... 8.1 Sending SMS to several receivers... 8. Sending SMS in an escalation chain... 9.3 Replying process value request via SMS... 10.4 Hardware and software components... 10 3 Configuration... 11 3.1 Network plan... 11 3. Installing and wiring hardware... 11 3.3 Configuring remote station... 11 3.4 Operating scenarios with the KTP1000 configuration... 13 4 Code Elements... 17 5 Reference... 17 Copyright - Siemens AG 010 All rights reserved V1.0, Entry ID: 4061648 5

1 Automation Task 1 Automation Task 1.1 Application environment The functions and features in this configuration example are explained based on some scenarios of a wireless SMS message system for a rainwater retention basin (RRB). Figure 1-1 RRB Controller Service personnel S1 GSM Excess water is retained in the RRB to relive the sewer system. A continuous filling level measurement takes place in the RRB. An electronically controlled lock S1 is opened automatically as soon as capacities in the sewer are free. The alarm reporting system is to cover the following message scenarios. Figure 1- Sending SMS to several receivers in the case of maintenance Request service Sending SMS in an escalation chain in the case of malfunction of lock Message Acknowledgement 1 3 Sending SMS with process values on request of service personnel Fill level request Current fill level The available start-up code does not contain a variable simulation for the fictitious rainwater retention basin. The process values and trigger for starting the scenarios are manually preset. 6 V1.0, Entry ID: 4061648

1 Automation Task 1. Product-related environment A GSM SINAUT MD70-3 (4) modem shall be coupled with a SIMATIC S7-100 controller (3) using a RS3 communication module (). As connection cable a SINAUT ST7 connecting cable (7) is used. The SINAUT MD70-3 has a SIM card (6) inserted and a quad-band antenna ANT 794-4MR (5) is used to receive the signal. The power supply of all components is provided via a SIMATIC PM107 power module (8). Figure 1-3 L1 N PE DC4V+ DC4V- Miniture circuit breaker 5 1 3 4 7 6 V1.0, Entry ID: 4061648 7

Automation Solution Automation Solution The various scenarios of the automation task are realized with the help of the already existing library blocks on the user level. For each scenario a function block was created..1 Sending SMS to several receivers The broadcast function block [FB1] automatically searches a variable for several included receiver telephone numbers once it was called. Each number has to be marked by a semicolon ; at the end. Figure -1 +49111111111;+43;+493333333; 1. Receiver. Receiver 3. Receiver To send the SMS this broadcast[fb1] function block calls the com[fb154] library block and uses its routine for sending the SMS. Figure - 1 3 Text 1. Receiver 4 The com[fb154] function block is called until all the receivers in the numbers input variable of the broadcast[fb1] function block have been found. 8 V1.0, Entry ID: 4061648

Automation Solution. Sending SMS in an escalation chain The waitforreply[fb] function block uses the same mechanisms for sending several SMS as described in chapter.1. In addition, after each sending of an SMS it is waited for the reply of the receiver for a certain time. The content of the SMS reply is not relevant. Only the mobile number is checked. For this purpose, the routine for receiving SMS of the com[fb154] function block is used.- Figure -3 +49111111111;+43;+493333333; 1. Receiver. Receiver 3. Receiver 15000ms 1 Receiver OK? The answertimeout input parameter of the waitforreply[fb] block indicates the time, how long it should be waited for. Assuming a timeout time of 60 seconds and a SMS call time of 15 seconds, the following time flow results for the three entered receivers. Figure -4 Start sending SMS: Receiver 1 SMS-Abruf alle 15s * 1 ) Start sending SMS: Receiver Wait 60 seconds Wait 60 seconds Wait 60 seconds! Start sending SMS: Receiver 3 Receive SMS number matches receiver 3. routine finished successfully Interval for calling SMS overlaps with timeout time. The receiver does not have time to wait for all the 60 seconds time to reply. *1) The modem memory is checked for the existing short messages. V1.0, Entry ID: 4061648 9

Automation Solution.3 Replying process value request via SMS The requestvalue[fb3] function block checks all incoming SMS for certain keywords and the mobile number of the sender. Figure -5 3 Sending password 15000ms 1 Fill level +49111111111 Receiver OK? Keyword OK? This function block uses the mechanisms for receiving SMS and sending the com[fb154] function block. The requestvalue[fb3] function block depends on the configured call time on the COM block (here, in this example 15s)..4 Hardware and software components Hardware components Table -1 No. Order number Qty Component 1. 6EP133-1SH71 1 SIMATIC S7-100, PM 107,,5A. 6ES711-1AD30-0XB0 1 SIMATIC S7-100 CPU 111C 3. 6ES741-1AH30-0XB0 1 SIMATIC S7-100 CM 141, RS3 4. 6NH970-3AA00 1 SINAUT MD70-3, GSM/GPRS modem from HW3.4, FW1.7.4 5. 6NH9860-1AA00 1 SINAUT ANT 794-4MR, antenna 6. 6NH7701-5AN 1 SINAUT ST7 connecting cable, RS3, 1:1, or comparable cable modem cable 7. 6XV1870-3QH0 1 Ethernet line for configuring, meters or comparable cable 8. 5SX116-6 1 Miniature circuit breaker, 1 pole B, 16A 9. 6ES5 710-8MA11 1 Standard 35mm DIN rail 10. Available at your mobile phone provider 1 SIM card Software components Table - No. Order number Qty Component 1. 6ES78-0AA00-0YA0 1 STEP 7 Basic 10.5 as of Service Pack 10 V1.0, Entry ID: 4061648

3 Configuration 3 Configuration 3.1 Network plan Figure 3-1 Controller IP Address Subnet Mask KTP 1000 Only for 0nline visualization (Device not necessary) 19.168..98 55.55.55.0 s IP Address Subnet Mask 19.168..99 55.55.55.0 Remote Station Remote Station IP Address Subnet Mask 19.168..100 55.55.55.0 3. Installing and wiring hardware Table 3-1 No. Instruction Note/picture 1. Mount all required components on a top-hat rail.. Wire and connect all necessary components for the remote station as described. Please watch the ground connections of the components and only activate the power supply for the SIMATIC PM 107 at the very end. Component list table Table -1 Configuration figure Figure 1-3 3.3 Configuring remote station Table 3- No. Instruction Note/picture 1. Network the S7-100 controller with your programming device. Assign the Ethernet parameter indicated in Figure 3-1.. Extract the file from Table 4-1 no. 1 Open STEP 7 Basic V10.5. Assign an S7-100 IP address: http://support.automation.siemens.com/w W/view/en/3693465 --> Chapter 7.1.3 V1.0, Entry ID: 4061648 11

3 Configuration No. Instruction Note/picture 3. Configure the com[fb154] instance data block which is called in Main[OB1] as described in the library description from chapter 3 onwards. Please observe the following particularities: The SMS receiver ( cmd_send_target_number parameter) is later passed on with the help of the user program or with the runtime of the KTP1000. This is where the parameter has to be left empty. The SMS text ( cmd_send_message_text parameter) is later passed on with the help of the user program or with the runtime of the KTP1000. This is where the parameter has to be left empty. On the cmd_rcv_start_interval parameter the value 15000 (15s) is to be indicated. 4. Select the program folder of the S7-100 and transfer the program into the controller Online/Download to device. Make sure that the LED of the S7-100 controller shows the RUN state. CE-X5_StartupProject_V10 CE-X1_Startup 5. Open the PG/PC Interface via Start/Control Panel/PC/PC Interface. Select the S7ONLINE connection as the used Ethernet network card. Confirm with OK. 6. Select the configured KTP1000 and start runtime. 1 V1.0, Entry ID: 4061648

3 Configuration 3.4 Operating scenarios with the KTP1000 configuration Library for sending and receiving SMS Table 3-3 No. Function 1 4 3 With this button the modem is configured with the parameters indicated in the user program. All 1 the steps below can only be executed once the modem was correctly initialized; this means the return_init_ok output has to be set to TRUE. This button triggers the routine for sending the SMS in the library block. For this purpose the text to be sent and the receiver telephone number are to be entered. The routine for receiving SMS can be executed event-controlled with the help of the button or in 3 the interval via entering milliseconds. The output parameters are to be assigned to the input parameters by name and will indicate 4 whether the last routine was successfully completed. Example: All return_rcv output values belong to the cmd_rcv input parameters. 5 With this button you get to the next figure of the KTP1000 configuration: Broadcast. 5 For the scenario described below the following has to be observed/carried out regarding this KTP1000 operating screen: 1. Start the initialization. Check the successful termination on the return_init_ok and return_init_aborted outputs.. All cmd_send_ input parameters have to be released since the receiver numbers and the text to be sent will later be transferred in the user program. 3. The interval for receiving SMS is to be assigned with 15000ms (15s). Note Please also make sure to observe the included library description especially from chapter 3 onwards V1.0, Entry ID: 4061648 13

3 Configuration Executing the broadcast scenario Table 3-4 No. Function 1 3 4 5 6 1 This button starts the routine for sending several SMS subsequently and to different receivers. This is where you enter the receiver addresses. The variable is a String data type with a maximum size of 54 characters. You can assign as many numbers until the size of the variable has been reached. The numbers always have to be completed with a ; semicolon. Example: +4911111111111;+49;+49333333333; 3 This parameter includes the text of the SMS which is to be sent to the different receivers. Once all messages have been sent, this exit is set to TRUE. Selecting the start input parameter 4 resets this output again. 5 With this button you get to the previous figure of the KTP1000 configuration: com. 6 With this button you get to the next figure of the KTP1000 configuration: requestvalue. 14 V1.0, Entry ID: 4061648

3 Configuration Requesting the process value via SMS Table 3-5 No. Function 1 3 4 5 6 7 With this button the routine for sending process values after receiving a respective request is 1 activated. Here, you enter the keyword which must be contained in the SMS text to evaluate the request as valid. This field must not be empty. It is distinguished between lower and upper case. Here you enter the telephone number from which the request may be carried out. If the field is left 3 empty, all numbers are entitled to request a value as long as the keyword (no. ) is matched. 4 This parameter contains the first part of the SMS text which is sent as an answer to the request. 5 This value is a REAL data type and is attached to the SMS text from no 4 and sent. 6 With this button you get to the previous figure of the KTP1000 configuration: broadcast. 7 With this button you get to the next figure of the KTP1000 configuration: waitforreply. V1.0, Entry ID: 4061648 15

3 Configuration Executing a scenario with escalation chain Table 3-6 No. Function 1 3 4 6 7 5 8 This button starts the routine for sending several SMS and waiting for the acknowledgement of 1 receipt. This is where you enter the receiver addresses. The variable is a String data type with a size of 54 characters. You can assign as many numbers until the size of the variable has been reached. The numbers always have to be completed with a ; semicolon. Example: +4911111111111;+49;+49333333333; 3 This parameter includes the text of the SMS which is to be sent to the different receivers. This parameter contains the time which has to pass until the waitforreply routine sends a SMS to the next receiver from no., as long as there is no reply from the current receiver. 4 This parameter is to be selected whilst taking the entries from Table 3-3 no into account. In case of an interval of 15 seconds for the SMS call and a timeout time of 60 seconds the receiver also has a minimum of 45 seconds until a reply has to be sent. 5 Time past since the last SMS sent. If a receiver answers within a given time the escalation chain is interrupted and this output is set. 6 The start input parameter resets this output again. 7 If no receiver from no. will reply, the escalation chain will be finished and this output will be set. The start input parameter resets this output again. 8 With this button you get to the previous figure of the KTP1000 configuration: requestvalue. 16 V1.0, Entry ID: 4061648

4 Code Elements 4 Code Elements Table 4-1 No. Component Note 1. CE-X5_StartupProject_Vxx.ap10 Startup project of the remote station for the STEP 7 Basic V10.5 development environment. 5 Reference Table 5-1 No. 1. SIMATIC S7-100 System Manual Document / Link http://support.automation.siemens.com/ww/view/en/3693465h. SINAUT MD70-3 GSM/GPRS Modem Manual http://support.automation.siemens.com/ww/view/en/3117745 3. S7-00 based telecontrol solution with SMS http://support.automation.siemens.com/ww/view/en/1063345 Table 5- Version Date Modification V1.0 10.06.010 First issue V1.0, Entry ID: 4061648 17