TeleControl CP 1242-7
TeleControl CP 1242-7
TeleControl CP 1242-7
Preface
___________________
Application and properties 1
___________________
Configuration examples 2
SIMATIC NET
___________________
Requirements for use 3
S7-1200 - TeleControl
CP 1242-7 ___________________
LEDs and connectors 4
Installation, connecting up,
___________________
commissioning 5
Operating Instructions
___________________
Configuration and operation 6
___________________
Telecontrol program blocks 7
___________________
Diagnostics and upkeep 8
___________________
Technical specifications 9
___________________
Dimension drawings A
B
___________________
Approvals
C
___________________
Accessories
D
___________________
References
06/2014
C79000-G8976-C247-06
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Figure 1 CP 1242-7
Behind the top hinged cover of the module housing, next to the article number you will see
the hardware product version printed as a placeholder "X" (for example X 2 3 4). In this case,
"X" would be the placeholder for hardware product version 1.
You will find the firmware version of the CP as supplied behind the top hinged cover of the
housing to the left below the LED field.
You will find the IMEI under the lower hinged cover of the housing.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 3
Preface
Product names
● CP
In this document, the term "CP" is also used instead of the full product name
"CP 1242-7".
● TCSB
TELECONTROL SERVER BASIC, OPC server for GPRS communication
Replaced documentation
This manual replaces the manual release 08/2013.
CP 1242-7
4 Operating Instructions, 06/2014, C79000-G8976-C247-06
Preface
Required experience
To install, commission and operate the CP, you require experience in the following areas:
● Automation engineering
● Setting up the SIMATIC S7-1200
● SIMATIC STEP 7 Basic / Professional
● Data transmission using GPRS and the Internet
License conditions
Note
Open source software
Read the license conditions for open source software carefully before using the product. The
acceptance of the disclaimers of liability and warranty it contains is a clear precondition of
the use of open source software.
You will find license conditions in the document "DOC_OSS-S7-CM-CP_74.pdf" on the
supplied data medium with the product documentation.
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. For more information about industrial security, visit
http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. For more information, visit http://support.automation.siemens.com.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 5
Preface
CP 1242-7
6 Operating Instructions, 06/2014, C79000-G8976-C247-06
Table of contents
Preface ................................................................................................................................................... 3
1 Application and properties ....................................................................................................................... 9
1.1 Connecting the S7-1200 to a GSM network .................................................................................. 9
1.2 Applications ..................................................................................................................................10
1.3 Other properties of the CP ...........................................................................................................11
1.4 Performance data.........................................................................................................................11
2 Configuration examples......................................................................................................................... 15
3 Requirements for use ............................................................................................................................ 21
3.1 Requirements for operation .........................................................................................................21
4 LEDs and connectors ............................................................................................................................ 23
4.1 Opening the housing ....................................................................................................................23
4.2 LEDs ............................................................................................................................................24
4.3 Electrical connections ..................................................................................................................27
5 Installation, connecting up, commissioning ............................................................................................ 29
5.1 Important notes on using the device ............................................................................................29
5.2 Installing and commissioning the CP ...........................................................................................31
5.3 Pin assignment of the socket for the external power supply .......................................................35
6 Configuration and operation .................................................................................................................. 37
6.1 Configuration ................................................................................................................................37
6.1.1 Configuration in STEP 7 ..............................................................................................................37
6.1.2 Information required for configuration ..........................................................................................38
6.2 Notes on operation .......................................................................................................................40
6.3 Modes and communications partners of the CP 1242-7..............................................................41
6.4 Connection modes (Telecontrol) ..................................................................................................42
6.5 Connection establishment ............................................................................................................42
6.5.1 Triggering the connection establishment (Telecontrol) ................................................................42
6.5.2 Triggering the connection establishment (GPRS direct) .............................................................44
6.6 The wake-up SMS .......................................................................................................................44
6.7 Calling a TeleService connection.................................................................................................45
6.8 Connection monitoring, data buffering, acknowledgement ..........................................................47
6.8.1 Redial delay (telecontrol) .............................................................................................................47
6.8.2 Connection monitoring time .........................................................................................................48
6.8.3 Acknowledgment ..........................................................................................................................49
6.8.4 Frame buffer (telecontrol) ............................................................................................................49
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 7
Table of contents
CP 1242-7
8 Operating Instructions, 06/2014, C79000-G8976-C247-06
Application and properties 1
1.1 Connecting the S7-1200 to a GSM network
Note
No CDMA mode
The CP is not suitable for GSM networks in which the code multiplex method "Code Division
Multiple Access" (CDMA) is used.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 9
Application and properties
1.2 Applications
1.2 Applications
The CP 1242-7 is intended for use in an industrial environment. The following applications
are supported by the CP:
Telecontrol applications
● Sending messages by SMS
The function is not dependent on the operating mode of the CP.
Via the CP 1242-7, the CPU of a remote S7-1200 station can receive SMS messages
from the GSM network or send messages by SMS to a configured mobile phone or an
S7-1200.
● Communication with a control center
The CP is configured in "Telecontrol" mode.
Remote S7-1200 stations communicate via the GSM network and the Internet with a
telecontrol server in the master station. The telecontrol server communicates with a
higher-level control system using the integrated OPC server function.
● Communication between S7-1200 stations via a GSM network
Depending on the GSM service being used and the mode of the CP, the communication
between remote stations with a CP 1242-7 will be handled in different ways:
– Inter-station communication via a master station ("Telecontrol" mode)
In this configuration, connections between S7-1200 stations and the telecontrol server
are established in the master station. The telecontrol server forwards the messages
between the stations.
– Direct communication between stations ("GPRS direkt" mode)
The CP requires a fixed IP address to be assigned by the GSM network provider.
CP 1242-7
10 Operating Instructions, 06/2014, C79000-G8976-C247-06
Application and properties
1.3 Other properties of the CP
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 11
Application and properties
1.4 Performance data
Note
Port 30000 for ISO-ON-TCP
For ISO-ON-TCP, the CP does not use port number 102 but port 30000.
User data
User data per send call with the various connection types:
● For telecontrol connections: Max. 2048 bytes
● For ISO-ON-TCP connections: Max. 2048 bytes
● For UDP connections: Max. 1472 bytes
● For SMS: Max. 160 bytes
CP 1242-7
12 Operating Instructions, 06/2014, C79000-G8976-C247-06
Application and properties
1.4 Performance data
Frame buffer
The CP supports data buffering in the "Telecontrol" mode. In this case, the CP is connected
to a telecontrol server as a communication partner (the "RemoteWdcAddress" = DW#16#0 is
in the data block TCON_WDC).
The storage of frames is initiated when there is a break on the connection to the telecontrol
server:
● With send jobs with up to 1254 bytes of user data:
Maximum 2000 frames
● With send jobs with 1255 to 2048 bytes of user data:
Maximum 1000 frames
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 13
Application and properties
1.4 Performance data
CP 1242-7
14 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration examples 2
Below, you will find configuration examples for stations with a CP 1242-7.
A SIMATIC S7-1200 with a CP 1242-7 can send messages by SMS to a mobile phone or a
configured S7-1200 station.
The function can also be used to send diagnostics SMS messages to an authorized mobile
phone. You will find details in the section Diagnostics (Page 93).
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 15
Configuration examples
CP 1242-7
16 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration examples
In this configuration, two SIMATIC S7-1200 stations communicate directly with each other
using the CP 1242-7 via the GSM network. Each CP 1242-7 has a fixed IP address. The
relevant service of the GSM network provider must allow this.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 17
Configuration examples
CP 1242-7
18 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration examples
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 19
Configuration examples
CP 1242-7
20 Operating Instructions, 06/2014, C79000-G8976-C247-06
Requirements for use 3
3.1 Requirements for operation
Hardware requirements
Apart from the CP 1242-7 in the remote S7-1200, the following hardware is also required:
● A CPU with firmware version as of V2.0
● An external antenna for the CP 1242-7, see Accessories (Page 107)
● In the "Telecontrol" mode of the CP 1242-7, a PC with Internet access is required for the
central telecontrol server.
● If you intend to use TeleService via GPRS, a TeleService gateway with Internet access is
required for configurations without a telecontrol server. This is a PC on which the
"TS Gateway" software is installed, see Accessories (Page 107).
Configuration software
To configure the module, the following configuration tool is required:
STEP 7 Basic V12.x
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 21
Requirements for use
3.1 Requirements for operation
CP 1242-7
22 Operating Instructions, 06/2014, C79000-G8976-C247-06
LEDs and connectors 4
4.1 Opening the housing
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 23
LEDs and connectors
4.2 LEDs
4.2 LEDs
Note
LED colors when the module starts up
When the module starts up, all its LEDs are lit for a short time. Multicolored LEDs display a
color mixture. At this point in time, the color of the LEDs is not clear.
CP 1242-7
24 Operating Instructions, 06/2014, C79000-G8976-C247-06
LEDs and connectors
4.2 LEDs
Symbol -
The LEDs indicate the operating and communications status of the module according to the
following scheme:
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 25
LEDs and connectors
4.2 LEDs
CP 1242-7
26 Operating Instructions, 06/2014, C79000-G8976-C247-06
LEDs and connectors
4.3 Electrical connections
Power supply
The 3-pin socket for the external 24 V DC power supply is located on the top of the module.
The matching plug ships with the product.
You will find the pin assignment of the socket in section Pin assignment of the socket for the
external power supply (Page 35).
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 27
LEDs and connectors
4.3 Electrical connections
CP 1242-7
28 Operating Instructions, 06/2014, C79000-G8976-C247-06
Installation, connecting up, commissioning 5
5.1 Important notes on using the device
General notices
WARNING
Safety extra low voltage
The equipment is designed for operation with Safety Extra-Low Voltage (SELV) by a
Limited Power Source (LPS). (This does not apply to 100 V to 240 V devices.)
This means that only SELV / LPS complying with IEC 60950-1 / EN 60950-1 / VDE 0805-1
must be connected to the power supply terminals. The power supply unit for the equipment
power supply must comply with NEC Class 2, as described by the National Electrical Code
(r) (ANSI / NFPA 70).
There is an additional requirement if devices are operated with a redundant power supply:
If the equipment is connected to a redundant power supply (two separate power supplies),
both must meet these requirements.
WARNING
Opening the device
DO NOT OPEN WHEN ENERGIZED.
WARNING
Risk of explosion when connecting or disconnecting the device
EXPLOSION HAZARD
DO NOT CONNECT OR DISCONNECT EQUIPMENT WHEN A FLAMMABLE OR
COMBUSTIBLE ATMOSPHERE IS PRESENT.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 29
Installation, connecting up, commissioning
5.1 Important notes on using the device
WARNING
Replacing components
EXPLOSION HAZARD
SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR CLASS I, DIVISION
2 OR ZONE 2.
WARNING
Requirements for the cabinet/enclosure
When used in hazardous environments corresponding to Class I, Division 2 or Class I,
Zone 2, the device must be installed in a cabinet or a suitable enclosure.
WARNING
Requirements for the cabinet/enclosure
To comply with EU Directive 94/9 (ATEX95), this enclosure must meet the requirements of
at least IP54 in compliance with EN 60529.
WARNING
Suitable cables for temperatures in excess of 70 °C
If the cable or conduit entry point exceeds 70 °C or the branching point of conductors
exceeds 80 °C, special precautions must be taken. If the device is operated at ambient
temperatures > 50 °C, the permitted temperature range of the selected cable must be
suitable for the temperatures actually measured.
WARNING
Protection against transient voltage surges
Provisions shall be made to prevent the rated voltage from being exceeded by transient
voltage surges of more than 40%. This criterion is fulfilled, if supplies are derived from
SELV (Safety Extra-Low Voltage) only.
CP 1242-7
30 Operating Instructions, 06/2014, C79000-G8976-C247-06
Installation, connecting up, commissioning
5.2 Installing and commissioning the CP
Overvoltage protection
NOTICE
Protection of the external power supply
If power is supplied to the module or station over longer power cables or networks, the
coupling in of strong electromagnetic pulses onto the power supply cables is possible. This
can be caused, for example by lightning strikes or switching of higher loads.
The connector of the external power supply is not protected from strong electromagnetic
pulses. To protect it, an external overvoltage protection module is necessary. The
requirements of EN61000-4-5, surge immunity tests on power supply lines, are met only
when a suitable protective element is used. A suitable device is, for example, the Dehn
Blitzductor BVT AVD 24, article number 918 422 or a comparable protective element.
Manufacturer:
DEHN+SOEHNE GmbH+Co.KG Hans Dehn Str.1 Postfach 1640 D-92306 Neumarkt,
Germany
WARNING
Read the system manual "S7-1200 Programmable Controller"
Prior to installation, connecting up and commissioning, read the relevant sections in the
system manual "S7-1200 Programmable Controller", refer to the documentation in the
Appendix.
When installing and connecting up, keep to the procedures described in the system manual
"S7-1200 Programmable Controller".
Configuration
One requirement for the commissioning of the CP is the completeness of the STEP 7 project
data (see below). You should also read the section "Configuration (Page 37)".
Note
Inserting and removing the SIM card
Do not insert or remove the SIM card while the CP is operating.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 31
Installation, connecting up, commissioning
5.2 Installing and commissioning the CP
CP 1242-7
32 Operating Instructions, 06/2014, C79000-G8976-C247-06
Installation, connecting up, commissioning
5.2 Installing and commissioning the CP
* Width B: The distance between the edge of the housing and the center of the hole in the DIN rail mounting clip
NOTICE
Installation location
The module must be installed so that its upper and lower ventilation slits are not covered,
allowing adequate ventilation. Above and below the device, there must be a clearance of 25
mm to allow air to circulate and prevent overheating.
Remember that the permitted temperature ranges depend on the position of the installed
device.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 33
Installation, connecting up, commissioning
5.2 Installing and commissioning the CP
Note
Connection with power off
Only wire up the S7-1200 with the power turned off.
CP 1242-7
34 Operating Instructions, 06/2014, C79000-G8976-C247-06
Installation, connecting up, commissioning
5.3 Pin assignment of the socket for the external power supply
5.3 Pin assignment of the socket for the external power supply
Figure 5-2 Socket for the external 24 VDC power supply (view from above)
Table 5- 3 Pin assignment of the socket for the external power supply
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 35
Installation, connecting up, commissioning
5.3 Pin assignment of the socket for the external power supply
CP 1242-7
36 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation 6
Passages in this section that apply only to one of the two modes of the CP are identified in
the title with the name of the mode:
● (Telecontrol)
● (GPRS direct)
For a description or the modes, refer to the section Modes and communications partners of
the CP 1242-7 (Page 41).
6.1 Configuration
Configuration in STEP 7
You configure the modules, networks and connections in SIMATIC STEP 7. You will find the
required version in the section Requirements for operation (Page 21).
You can configure a maximum of three CMs/CPs per station. If you insert several modules of
the type CP 1242-7 in an S7-1200, you can, for example, establish redundant
communications paths.
When you load the station, the configuration data of the CP is stored on the CPU.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 37
Configuration and operation
6.1 Configuration
General information
The following information is required for the STEP 7 configuration of the CP 1242-7:
● Own phone number of the CP (required for TeleService)
● Authorized phone numbers
Phone numbers of the subscribers that are allowed to send a wake-up call, a wake-up
SMS or a data SMS to the CP.
● APN
Name of the GPRS access point (APN) of the GSM network provider
● APN user name
User name for the GPRS access point of the GSM network provider
● APN password
Password for the GPRS access point of the GSM network provider
● Subscriber number of the SMS center
● PIN of the SIM card
Note
Configured PIN and PIN on the SIM card must match.
If you enter the PIN of the SIM card of the CP 1242-7 incorrectly during STEP 7
configuration and download the station, the CP stores the wrong PIN. An incorrectly entered
PIN is transferred by the CP only once so that the SIM card is not locked.
If you change the PIN of the SIM card externally to the incorrectly configured PIN (new PIN
of the SIM card = incorrectly entered PIN in STEP 7), the CP rejects this PIN again without
checking it.
CP 1242-7
38 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.1 Configuration
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 39
Configuration and operation
6.2 Notes on operation
CAUTION
Minimum clearance to the device
The device may only be operated when the distance between the device (or antenna) and
user is at least 20 cm.
NOTICE
Closing the front panels
To ensure interference-free operation, keep the front panels of the module closed during
operation.
CP 1242-7
40 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.3 Modes and communications partners of the CP 1242-7
Note
Protection of the telecontrol server
Protect the telecontrol server from unauthorized access by assigning a secure telecontrol
password to the CP in STEP 7. When establishing the connection, the CP authenticates
itself with the telecontrol server using this password.
GPRS direct
This mode of the CP is used for direct communication between remote stations via the
GSM network. No telecontrol server is necessary.
To allow network nodes in mobile wireless networks to be directly accessible, these need
to be addressed using a fixed address. Here, SIM cards with a fixed IP address are used
that allow the stations to address each other directly.
The possible communications services and security functions (for example VPN) depend
on what is offered by the network provider.
Possible communications partners of the GPRS station with a CP 1242-7 in "GPRS
direct" mode are:
– A subscriber that can be reached by the CP via an IP address (for example S7-1200
with CP 1242-7)
– An engineering station (for TeleService)
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 41
Configuration and operation
6.4 Connection modes (Telecontrol)
Connection modes
There are no different connection modes in the "GPRS direct" mode.
In "Telecontrol" mode, the CP can be configured for the following connection modes.
● Permanent
In this connection mode, there is a permanent TCP connection to the telecontrol server.
Following connection establishment, there is a permanent TCP connection to the
telecontrol server even if data is not transferred permanently.
● Temporary
In this connection mode, a connection to the telecontrol server is established only when
required.
Connection establishment
A connection is always established by the CP. If a connection established by the CP is
interrupted, the CP automatically attempts to re-establish the connection.
If a TCP connection is established, process data is sent as soon as the telecontrol program
blocks are called on the CPU. For a description of programming blocks, refer to the section
Telecontrol program blocks (Page 61).
Note
Connection interrupted by GSM network provider
When using the GPRS service, remember that existing connections can be interrupted by
GSM network providers for maintenance purposes.
CP 1242-7
42 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.5 Connection establishment
Note
Cyclic data exchange with the telecontrol server
The special settings for cyclic data exchange initiated by a telecontrol server are described in
the section The S7-1200 sends data to the master station (TC_SEND) (Page 53).
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 43
Configuration and operation
6.6 The wake-up SMS
Note
No wake-up without an authorized phone number
If the "Authorized phone numbers" list is empty, the CP cannot be woken up for
connection establishment.
CP 1242-7
44 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.7 Calling a TeleService connection
– Text for the wake-up SMS message for establishing a connection to the main
telecontrol server:
TELECONTROL MAIN
– Text for the wake-up SMS message for establishing a connection to the substitute
telecontrol server:
TELECONTROL BACKUP
The configuration of the telecontrol server for the CP 1242-7 is set in STEP 7 in
"Telecontrol interface > Operating mode > main or substitute telecontrol server".
Note
Wake-up with a mobile phone
• One of the texts listed above can be used in a wake-up SMS message.
• With a wake-up call, the station always connects to the main telecontrol server.
or
TELESERVICE 1
– Text for the wake-up SMS message for establishing a connection to the second
configured TeleService server:
TELESERVICE 2
For TeleService, no extra wake-up SMS needs to be sent since the connection
establishment is initiated by the engineering station.
The phone number of the TeleService must also be configured in the STEP 7 project for
the CP in the "Authorized phone numbers" list.
The configuration of the TeleService server for the CP 1242-7 is set in STEP 7 in
"Telecontrol interface > TeleService settings.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 45
Configuration and operation
6.7 Calling a TeleService connection
Note
No TeleService connection establishment using "Online" > "Go online"
If you attempt to establish a TeleService connection by selecting the CPU and then selecting
the menu or shortcut menu command "Online" > "Connect online", STEP 7 will automatically
attempt to connect via Ethernet. Reason: In STEP 7, the last connection path used to
download the project data is stored.
Follow the steps below to establish a TeleService connection to the remote station via GPRS
from the engineering station:
1. Select the CPU of the remote station in the STEP 7 project.
2. Select the "Online" > "Online & Diagnostics" menu.
The "Online access" dialog opens.
3. Choose the entry "TeleService via GPRS" in the "Type of interface" drop-down list.
4. Choose the entry "GPRS TeleService board" in the "PG/PC interface" drop-down list.
CP 1242-7
46 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.8 Connection monitoring, data buffering, acknowledgement
Note
Loading only in offline mode
Loading software and blocks with TeleService via GPRS by calling the function "Load to
device" only works when no TeleService connection is established.
Canceling a TeleService connection when calling online dialogs
An existing TeleService connection is canceled when you attempt to access an additional
station or a node.
When there is an existing TeleService connection, do not select any of the menu commands
"Go online", "Online & Diagnostics", "Load to device", "Extended download to device" or
"Accessible nodes".
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 47
Configuration and operation
6.8 Connection monitoring, data buffering, acknowledgement
Note
If the partner cannot be reached, connection establishment via the GSM network can take
several minutes. This may depend on the particular network and current network load.
Depending on your contract, costs may result from each connection establishment attempt.
CP 1242-7
48 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.8 Connection monitoring, data buffering, acknowledgement
6.8.3 Acknowledgment
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 49
Configuration and operation
6.9 Data management in the process images of the CP 1242-7
Access to process data by OPC clients using the correct data type
Make sure that OPC clients access the process data on the CP with the correct data type.
Access should be oriented on the data type-specific data limits of the individual items.
Negative example: If the first two items have the data type DWORD, this means that they
occupy bytes 0 - 3 and bytes 4 - 7, OPC clients should not, for example access bytes 2 - 3 or
bytes 2 - 5.
Note
Writing and reading OPC items with separate CPU data areas (CP 1242-7)
If you both write and read with an item, it is possible that the value stored on the OPC server
will differ from the value in the process image following a write job.
For stations with a CP 1242-7, use OPC items either for write or for read access. Writing and
reading items must access different CPU data areas.
Reason:
For read and write communication with the CPU, the CP 1242-7 has two process images
(reading and writing) and uses two different program blocks with one or more data blocks
that access the process data of the CPU.
CP 1242-7
50 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.9 Data management in the process images of the CP 1242-7
In contrast to the CPU or the telecontrol server, the CP 1242-7 manages the process data in
two process images:
● Send process image (read direction of the control system)
The send process image of the CP is set up by the TC_SEND program block.
After the startup or restart of a station, the TC_SEND program block sets up the send
process image of the CP in the program of the CPU to be able to supply it with data. To
achieve this, it may be necessary to call the block several times.
Data sent to the telecontrol server is read from the send process image. This affects:
– Spontaneous transfer of data
– Read jobs of an OPC client (via TCSB)
– Cyclic data exchange with TCSB (regardless of OPC client requirements)
● Receive process image (write direction of the control system)
The receive process image of the CP is created or enlarged by write jobs of an OPC
client (via TCSB).
Using a write job from TCSB, data is written to the receive process image of the CP.
The TC_RECV program block reads the data out of the receive process image and writes
it to the memory areas of the CPU.
Behavior when reading and writing and during cyclic data exchange
Note the following special points:
● Different address ranges for reading and writing on the CP
The data transfer between the two process images of the CP and the process data of the
CPU is handled by two blocks TC_SEND and TC_RECV.
● Different sizes of the send and receive process image
The size of the send process image and the receive process image on the CP may differ.
These system properties can lead to the following behavior:
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 51
Configuration and operation
6.9 Data management in the process images of the CP 1242-7
Possible data loss for archives of OPC clients during cyclic data exchange
During cyclic data exchange, the CP always transfers its entire process image to TCSB.
Data can be lost in the following scenario:
● Cyclic data exchange was enabled in TCSB for the connection to a CP 1242-7.
● Due to a temporary connection termination, the data that the CP could not send to TCSB
is stored in the send buffer.
CP 1242-7
52 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.10 Communication between stations
● If an OPC client now sends a read job, this is handled with priority and the current data is
read from the process image of the CP.
● If older process data is then read from the send buffer of the CP within the framework of
the cyclic data exchange, this is discarded for filling the archive if the OPC client rejects
data older than the data it currently has stored.
Requirements
● The OPC server has been started on the telecontrol server (an OPC client has connected
to the telecontrol server).
● The TC_CON instruction was started successfully.
Sequence
The sequence and time of sending the data to the telecontrol server using GPRS depend on
the configuration of the "RemoteWdcAddress" parameter (access ID) of the TCON_WDC
data block:
● RemoteWdcAddress = DW#16#0: immediate transfer
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 53
Configuration and operation
6.11 Communication between master station and stations (telecontrol)
Immediate transfer
"RemoteWdcAddress" = DW#16#0
1. TC_SEND sends data to the CP.
2. The CP compares the data received from TC_SEND with the existing send process
image.
– If the send process image does not exist or the data received from TC_SEND is larger
than the existing send process image:
The new data is stored in the send process image and the send process image is
automatically enlarged.
– If the data received from TC_SEND is not different from the existing send process
image:
The call is ended and step 3 omitted.
– If the existing send process image is larger than the data sent by TC_SEND:
Only the data sent by TC_SEND is stored in the send process image.
3. Transfer of the entire send process image to the telecontrol server via GPRS.
Note
Send cycle time
If you send frames directly to the Telecontrol server ("Telecontrol" mode), make sure that the
send cycle time is ≥ 1 second.
CP 1242-7
54 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.11 Communication between master station and stations (telecontrol)
No immediate transfer
"RemoteWdcAddress" = DW#16#FEEDDADA
1. TC_SEND sends data to the CP.
2. The CP does not compare the new process data with the previous send process image,
but writes the new data to its send process image.
3. Only when the telecontrol server sends a request to the CP, for example after a request
by an OPC client, does the CP send the requested part of the data from the send process
image to the telecontrol server.
The cyclic data exchange is initiated by a request from the telecontrol server ("cyclic
communication") to supply data archives with data at fixed intervals.
The following settings should be selected for cyclic data exchange:
● In the TCON_WDC for the sending connection
(TC_SEND),RemoteWdcAddress" = DW#16#FEEDDADA
● In the TCON_WDC for the receiving connection (TC_RECV),
RemoteWdcAddress" = DW#16#0
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 55
Configuration and operation
6.11 Communication between master station and stations (telecontrol)
6.11.2 Master station reads out data from the S7-1200 (read, TC_SEND)
Requirements
● The OPC server has been started on the telecontrol server (an OPC client has connected
to the telecontrol server).
● The TC_SEND instruction was called at least once in the CPU of the station.
This creates the send process image on the CP.
Note
Item name of the OPC client
The send process image on the CP is created as a data block. The read access of an
OPC client to the send process image must be transferred by the DB1 item to the CP.
Sequence
1. With the DB1, DBx,y item, the OPC server sends a read job for "x" bytes starting at offset
"y" to the CP.
2. The CP checks whether "x" bytes starting at offset "y" exist in the process image.
3. Reaction of the CP:
– If "x" bytes starting at offset "y" exist in the send process image:
The data ("x" bytes) is sent to the telecontrol server.
– If the send process image is smaller than x + y bytes:
The read job is acknowledged negatively.
The OPC client receives an error message from the OPC server of the telecontrol
server.
For more information, refer to section Data management in the process images of the CP
1242-7 (Page 50).
CP 1242-7
56 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.11 Communication between master station and stations (telecontrol)
Sequence
1. The telecontrol server writes "x" bytes starting at offset "y" in a write job to the CP.
2. The CP saves the data at position "y" in the receive process image.
– If the receive process image on the CP does not yet exist or is smaller than x + y
bytes:
The data is stored as a new receive process image. Data areas without value are filled
with the value 0.
– If the data area of the write job is smaller than the receive process image:
The receive process image is not reduced in size.
3. The CP always transfers the entire receive process image to TC_RECV.
Remember this when specifying the size of the "LEN" parameter of TC_RECV:
– Set "LEN" to the maximum possible size of 2048 (bytes).
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 57
Configuration and operation
6.12 Main and substitute telecontrol server
The received data is written from the TC_RECV block to the CPU. If TC_RECV completes
the execution with DONE = 1, the CPU can read out the identifiers from data record 8455
using the program block RDREC.
Programming RDREC
Program the parameters of RDREC to read out the status information as follows:
● ID
Hardware identifier of the CP
● Index
Set INDEX to 8455.
● MLEN
Set MLEN to 2048 (bytes).
● RECORD
The RECORD target area must have a size of 2048 (bytes).
The IDs of the changed bytes (FF or 0) are written to the target area defined in RECORD.
CP 1242-7
58 Operating Instructions, 06/2014, C79000-G8976-C247-06
Configuration and operation
6.13 Time synchronization
Copying ensures the consistency of the configuration data. Since the system parameters of
the main and substitute system can be configured in the CMT, following copying no editing of
the system parameters of the substitute system is necessary.
Note
Blocking access to the time of day of the TCSB computer
Changing the PC time on the TCSB computer affects the time-of-day synchronization of
the stations.
Protect the TCSB computers from unauthorized access with operating system tools (user
groups, passwords). If the PC is synchronized by an external time master, this needs to
be taken into account.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 59
Configuration and operation
6.13 Time synchronization
In "Telecontrol" mode, the time of day is transferred by the telecontrol server under the
following conditions:
– Each time when the station logs on to the server; in other words even after an
interrupted connection.
– Regularly at the interval set for the monitoring time.
To enable the monitoring:
– In the Configuration and Monitoring Tool (CMT) of TELECONTROL SERVER BASIC,
enable the station monitoring in the "Communication monitoring" parameter group.
– Enter the required interval for the monitoring time.
Result: The regular time-of-day synchronization starts when the CP logs on to the
telecontrol server.
● "GPRS direct" mode
In "GPRS direct" mode, the time of day of the CP is requested using NTP.
– Enable the "Activate time-of-day synchronization" option.
Result: The NTP server specified during the configuration initiates the regular time-of-
day synchronization.
Requirement
Before the CPU can read out the correct time-of-day from the CP, the time-of-day of the CP
needs to be set. The options for time-of-day synchronization of the CP via the Internet can
be found in the section Other properties of the CP (Page 11).
CP 1242-7
60 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks 7
7.1 Using and creating the telecontrol program blocks
Note
Program block versions
In STEP 7 you cannot use different versions of a program block in a station.
• If possible, only use the current block version with new STEP 7 projects.
• When expanding old STEP 7 projects in a station use the same program block version or
update the existing blocks.
When updating older block versions the newly-inserted blocks must be programmed
again.
A link to the current manual for the version history of SIMATIC NET program blocks can be
found in the references in the Appendix of this manual.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 61
Telecontrol program blocks
7.2 TC_CON: Establish connection via the GSM network
Note the maximum number of parallel connections in the section Performance data
(Page 11).
Note
Connection abort
If an existing connection is aborted by the communications partner or due to disturbances on
the network, the connection must also be terminated by calling "TC_DISCON". Make sure
that you take this into account in your programming.
Meaning
TC_CON allows an S7-1200 with a CP 1242-7 to establish a connection of the following
types:
● ISO-ON-TCP
Connection partner is a CP 1242-7.
ISO-ON-TCP connections are used only in "GPRS direct" mode.
● UDP
Any connection partner is possible.
● SMS
The connection partner is an SMS client.
● Telecontrol connection
The connection partner is either a telecontrol server or another station that can be
reached via the telecontrol server.
A TC_CON program block establishes exactly one connection. Depending on the mode of
the CP 1242-7 and the protocol you are using, a maximum of 3 to 5 simultaneous
connections with unique IDs (see below) are supported per CP. You will find the maximum
number of simultaneous connections in the performance data of the CP.
The CONNECT parameter uses a data block (DB) with the structure of a system data type
(SDT) for the connection description.
CP 1242-7
62 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.2 TC_CON: Establish connection via the GSM network
The required connection type is defined using a connection-specific SDT "TCON_..." (see
below). For each of the connection types listed above, one of the following SDTs must be
programmed:
● TCON_IP_RFC for ISO-ON-TCP connections
● TCON_IP_V4 for UDP connections
● TCON_PHONE for SMS connections
● TCON_WDC for telecontrol connections
The "ActiveEstablished" parameter of these SDTs also specifies whether or not connection
establishment is active or passive.
For programming these SDTs, see TCON_...: SDTs for the telecontrol connection
establishment (Page 78).
The ID parameter references the GPRS connection. The ID is freely selectable but must be
unique within the CPU. All blocks of a connection must use the same ID.
The INTERFACE parameter references the GPRS interface of the required local CP. This
must be taken from STEP 7.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 63
Telecontrol program blocks
7.2 TC_CON: Establish connection via the GSM network
You will find all other code combinations of DONE and ERROR in the following table.
When called, the instruction remains in the BUSY = 1 state for several seconds. In the
following situations, the BUSY state = 1 can last for a longer time:
● On active ISO-on-TCP connections if the partner cannot be reached.
● On passive connections when no frame is received.
CP 1242-7
64 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.2 TC_CON: Establish connection via the GSM network
Note
Do not call up TC_DISCON if TC_CON ERROR = 1
When connection establishment fails (TC_CON ERROR = 1), TC_DISCON must not be
called. In this case, calling up TC_DISCON leads to the connection being blocked.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 65
Telecontrol program blocks
7.3 TC_DISCON: Terminate connection via the GSM network
Meaning
The TC_DISCON instruction on an S7-1200 with CP 1242-7 terminates an ISO-ON-TCP,
UDP, SMS or telecontrol connection that was established with the TC_CON instruction.
You will find detailed information on the connection types in the description of the TC_CON
instruction.
TC_DISCON terminates the connection to the telecontrol server only logically. At the TCP/IP
level, the connection is retained.
If you want the connection to the telecontrol server to be terminated physically, configure the
connection as a "Temporary connection" in the "telecontrol server" parameter group in
STEP 7. Temporary stations terminate the connection automatically after sending the data.
Note
Stopping the execution of further program blocks by TC_DISCON
Calling up TC_DISCON ends the execution of TC_CON, TC_SEND, and TC_RECV blocks,
that were called up with the same connection ID (parameter "ID") and interface ( parameter
"INTERFACE"). These blocks then signal an ERROR.
Do not call up TC_DISCON if TC_CON indicates "Error = 1".
If TC_CON indicates "ERROR", then the connection is not established. In this case
TC_DISCON must not be called.
If TC_DISCON is called in this case, the connection ID ("ID") is briefly reserved, and a
TC_CON called up immediately afterwards would indicate ERROR and STATUS 80E3.
The ID parameter references the GPRS connection. The ID must be unique within the CPU
and the same as the ID used with TC_CON.
The INTERFACE parameter references the GPRS interface of the required local CP. The
value must be the same as that used by TC_CON for INTERFACE.
CP 1242-7
66 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.3 TC_DISCON: Terminate connection via the GSM network
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 67
Telecontrol program blocks
7.4 TC_SEND: Send data via the GSM network
You will find all other code combinations of DONE and ERROR in the following table.
Note
When called, the instruction remains in the BUSY = 1 state for several seconds.
Meaning
The TC_SEND instruction allows the sending of data via programmed connections of the
following types:
● ISO-ON-TCP connections
● UDP connections
CP 1242-7
68 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.4 TC_SEND: Send data via the GSM network
● SMS connections
The sending of SMS messages is supported only if this was set up in the STEP 7
configuration of the CP.
● Telecontrol connections
Note
Sending SMS messages to multiple recipients
If you want to send an identical SMS message to several recipients, you need to establish a
connection to each recipient.
You will find more detailed information on the connection types in the description of the
TC_CON instruction.
The ID parameter references the GPRS connection. The value of ID must correspond to the
value used for ID by TC_CON.
The INTERFACE parameter references the GPRS interface of the required local CP. The
value must be the same as that used by TC_CON for INTERFACE.
The amount of data to be sent is specified with the LEN parameter.
The size of the data area specified in DATA must be at least as large as the number of bytes
configured for LEN. Permitted data types in the data area specified in DATA are all except
BOOL and ARRAY of BOOL.
The destination address (connection partner) for the data to be sent is configured in the
TC_CON instruction.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 69
Telecontrol program blocks
7.4 TC_SEND: Send data via the GSM network
* For special features of the DATA parameter for SMS texts, refer to the next section.
** After sending a frame, TC_SEND sets DONE = 1. Note the following response:
The loss of an ISO-on-TCP connection is only recognized by the sender after 1 to 2 minutes. The transferred data may
be lost although TC_SEND has set DONE = 1 at the sender.
If an ISO-on-TCP connection is aborted after receiving a frame before TC_RECV was started, the transferred data may
be lost even if TC_SEND sets DONE = 1 at the sender.
CP 1242-7
70 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.4 TC_SEND: Send data via the GSM network
You will find all other code combinations of DONE and ERROR in the following table.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 71
Telecontrol program blocks
7.4 TC_SEND: Send data via the GSM network
* Other statuses that are not listed here can be found in the status codes of the "RDREC" and "WRREC" instructions in the
two middle status bytes (STATUS[2], STATUS[3]).
CP 1242-7
72 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.5 TC_RECV: Receive data via the GSM network
Meaning
The TC_RECV block allows the reception of data via programmed connections of the
following types:
● ISO-ON-TCP connections
● SMS connections
To receive SMS messages, the phone number of the sender must be configured in the
STEP 7 configuration of the receiving CP (authorized phone numbers). The sender must
support the CLIP function.
The phone number of the connection partner must be entered in the "TCON_PHONE"
SDT.
Wake-up SMS messages are filtered out.
● Telecontrol connections
Note
Receiving SMS messages from different senders
If you want to receive SMS messages from different senders, you have two alternatives:
• You configure several connections (TC_CON, TC_RECV, TC_DISCON).
• You may only enter no telephone number for only one configured connection in the
required data block "TCON_PHONE" in the "PhoneNumber" parameter. When receiving
messages, this is then interpreted as a placeholder for all authorized connection partners.
You will find more detailed information on the connection types in the description of the
TC_CON block.
The ID parameter references the GPRS connection. The value of ID must correspond to the
value used for ID by TC_CON.
The INTERFACE parameter references the GPRS interface of the required local CP. The
value must be the same as that used in TC_CON for INTERFACE.
The maximum amount of data to be received is specified with the LEN parameter. Set LEN
to the maximum possible size.
The size of the data area specified in DATA must be at least as large as the number of bytes
configured for LEN. Permitted data types in the data area specified in DATA are all except
BOOL and ARRAY of BOOL. The received data is interpreted as if the sending partner had
used the same data types.
The DB (system data type) used for the connection description of TC_RECV must differ from
a DB used for TC_SEND.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 73
Telecontrol program blocks
7.5 TC_RECV: Receive data via the GSM network
CP 1242-7
74 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.5 TC_RECV: Receive data via the GSM network
* For special features of the DATA parameter for SMS texts, refer to the next section.
You will find all other code combinations of DONE and ERROR in the following table.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 75
Telecontrol program blocks
7.6 TC_CONFIG: Transferring configuration data to CP
* Other statuses that are not listed here can be found in the status codes of the "RDREC" and "WRREC" blocks in the two
middle status bytes (STATUS[2], STATUS[3]).
Meaning
With the TC_CONFIG instruction, parameters of a the CP 1242-7 configured in STEP 7 can
be modified. The configured values are not overwritten retentively. The overwritten values
remain valid until TC_CONFIG is called again or until the station starts up again (cold restart
after cycling power).
If the STEP 7 configuration data of the CP needs to be changed permanently, the instruction
needs to be called again each time the station restarts (cold restart) or a modified project
must be downloaded to the station.
The CONFIG parameter points to the memory area with the configuration data. The
configuration data is stored in a data block (DB). The structure of the DB is specified by the
system data type (SDT) IF_CONF.
The configuration data to be modified on the CP is put together as necessary in blocks in
IF_CONF "IF_CONF_..." for the individual parameters.
CP 1242-7
76 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.6 TC_CONFIG: Transferring configuration data to CP
Parameters that are not intended to change as a result of the instruction are not entered in
IF_CONF. They retain the value configured in STEP 7.
For detailed information on programming IF_CONF, refer to the section IF_CONF: SDT for
telecontrol configuration data (Page 83).
The INTERFACE parameter references the GPRS interface of the required local CP.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 77
Telecontrol program blocks
7.7 TCON_...: SDTs for the telecontrol connection establishment
You will find all other code combinations of DONE and ERROR in the following table.
CP 1242-7
78 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.7 TCON_...: SDTs for the telecontrol connection establishment
The connection description is specified by the structure of the system data type (SDT). The
structure of the relevant SDT contains the parameters necessary to establish the connection
with the remote communications partner.
For different connection types that depend on the remote communications partner, the
following SDTs are used:
● TCON_IP_RFC for ISO-on-TCP connections to IPv4 stations with CP 1242-7
● TCON_IP_V4 for UDP connections to IPv4 stations (sending only)
● TCON_PHONE for connections to SMS clients
● TCON_WDC for connections to telecontrol servers or stations that can be reached via the
telecontrol server.
The connection description is programmed in a data block of the same type as the SDT.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 79
Telecontrol program blocks
7.7 TCON_...: SDTs for the telecontrol connection establishment
CP 1242-7
80 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.7 TCON_...: SDTs for the telecontrol connection establishment
Note
Authorized phone numbers
The CP only accepts an SMS if the sending communication partner is authorized based on
its phone number. These numbers are in configured for the CP in STEP 7 in the "authorized
phone numbers" list.
SMS text
• Programmed SMS texts for SMS messages to be sent are accessed using the DATA
parameter of the TC_SEND instruction.
• The text of a received SMS message is assigned to the address area of the CPU by the
DATA parameter of the TC_RECV instruction.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 81
Telecontrol program blocks
7.7 TCON_...: SDTs for the telecontrol connection establishment
System data type TCON_WDC for connections to telecontrol servers or remote stations
You can configure the connection to the telecontrol server assigned to the S7-1200 or to a
remote station that can be reached via the telecontrol server with TCON_WDC. The address
data of the telecontrol server assigned to the CP can be found in STEP 7 in the "Telecontrol
interface > Mode" tab of the CP. The telecontrol server or a remote station is addressed
using the host name or the IP address.
The "RemoteWdcAddress" parameter of TCON_WDC specifies the Access ID of the
connection partner.
CP 1242-7
82 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Access ID = 0
• To only write to the process image of the CP:
Access ID = DW#16#FEEDDADA
Structure of the system data type IF_CONF for the TC_CONFIG instruction
The CONFIG parameter of the TC_CONFIG instruction references the memory area with the
configuration data of the CP 1242-7 to be modified. The configuration data stored in a data
block is described as a structure of the system data type (SDT) IF_CONF.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 83
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Header of IF_CONF
Table 7- 5 IF_CONF_Header
CP 1242-7
84 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Value Meaning
1 Permanent validity of the configuration data
Not relevant for the CP 1242-7
2 Temporary validity of the configuration data, including deleting of existing permanent
configuration data
The permanent configuration data is replaced by the parameter fields of IF_CONF.
Table 7- 7 IF_CONF_APN
Table 7- 8 IF_CONF_Login
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 85
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Table 7- 9 IF_CONF_TCS_Name
Table 7- 10 IF_CONF_TCS_IP_v4
CP 1242-7
86 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Table 7- 11 IF_CONF_GPRS_Mode
Table 7- 12 IF_CONF_SMS_Provider
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 87
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Table 7- 13 IF_CONF_PIN
Table 7- 14 IF_CONF_TC_Timeouts
CP 1242-7
88 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Table 7- 15 IF_CONF_WakeupList
Table 7- 16 IF_CONF_PrefProvider
Table 7- 17 IF_CONF_DNS
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 89
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
Table 7- 18 IF_CONF_NTP
Table 7- 19 IF_CONF_GPRS_UserList
The array is formed from the parameter records for the TeleService users ("GPRS_User"
[1...n]).
Field for programming the TeleService access (DNS name of the server)
Access data of the TeleService server (switching station).
CP 1242-7
90 Operating Instructions, 06/2014, C79000-G8976-C247-06
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
In STEP 7, the corresponding data is located in the parameter area "TeleService settings".
If there is more than one TeleService server, use the field once per server.
Table 7- 21 IF_CONF_TS_Name
Field for programming the TeleService access (IP address of the server)
Access data of the TeleService server (switching station).
In STEP 7, the corresponding data is located in the parameter area "TeleService settings".
If there is more than one TeleService server, use the field once per server.
Table 7- 22 IF_CONF_TS_IF_V4
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 91
Telecontrol program blocks
7.8 IF_CONF: SDT for telecontrol configuration data
CP 1242-7
92 Operating Instructions, 06/2014, C79000-G8976-C247-06
Diagnostics and upkeep 8
8.1 Diagnostics
The following diagnostics options are available:
STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu
Here, you can obtain static information on the selected module:
● General information on the module
● Diagnostics status
● Information on the Telecontrol interface:
– Network
– Ethernet port
– Statistics
You can obtain further information on the diagnostics functions of STEP 7 in the STEP 7
online help.
The diagnostics SMS message that is then sent contains the following data of the S7 station:
● Firmware version of the CP 1242-7
● Mode of the CPU (RUN / STOP)
● Status of the GPRS connection
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 93
Diagnostics and upkeep
8.2 Downloading firmware
CP 1242-7
94 Operating Instructions, 06/2014, C79000-G8976-C247-06
Diagnostics and upkeep
8.3 Module replacement
Module replacement
WARNING
Read the system manual "S7-1200 Programmable Controller"
Prior to installation, connecting up and commissioning, read the relevant sections in the
system manual "S7-1200 Programmable Controller" (refer to the documentation in the
Appendix).
When installing and connecting up, keep to the procedures described in the system manual
"S7-1200 Programmable Controller".
Make sure that the power supply is turned off when installing/uninstalling the devices.
The STEP 7 project data of the CP is stored on the local CPU. If there is a fault on the
device, this allows simple replacement of this communications module without needing to
load the project data to the station again.
When the station starts up again, the new CP reads the project data from the CPU.
If you replace a module, remember to take the SIM card from the old module and insert it in
the new CP.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 95
Diagnostics and upkeep
8.3 Module replacement
CP 1242-7
96 Operating Instructions, 06/2014, C79000-G8976-C247-06
Technical specifications 9
Table 9- 1 Technical specifications of the CP 1242-7
Technical specifications
Article number 6GK7 242-7KX30-0XE0
Wireless interface
Antenna connector Amount 1
Design SMA socket
Nominal impedance 50 ohms
Frequency bands GPRS 850, 900, 1800, 1900 MHz
Maximum transmit power GSM 850, class 4 +33 dBm ±2dBm
GSM 900, class 4 +33 dBm ±2dBm
GSM 1800, class 1 +30 dBm ±2dBm
GSM 1900, class 1 +30 dBm ±2dBm
GPRS Properties Multislot class 10
device class B
coding scheme 1 to 4 (GMSK)
SMS Properties Mode outgoing: MO
service: point-to-point
Electrical data
External power supply Power supply 24 VDC
Permitted range 19,2 ... 28.8 V
Design Connector with terminal block, 3 terminals
Cable cross-section
• Minimum • 0.14 mm2 (AWG 25)
• Maximum • 1.5 mm2 (AWG 15)
Max- tightening torque of the screw 0.45 Nm (4 lb-in)
terminals
Electrical isolation:
Power supply unit to internal circuit 710 VDC for 1 minute
Current consumption (typical) From 24 VDC 100 mA
From the S7-1200 backplane bus 0 mA
Effective power loss (typical) From 24 VDC 2.4 W
From the S7-1200 backplane bus 0W
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 97
Technical specifications
Technical specifications
Permitted ambient conditions
Ambient temperature During operation with the rack 0 °C to +55 °C
installed horizontally
During operation with the rack 0 °C to +45 °C
installed vertically
During storage -40 °C to +70 °C
During transportation -40 °C to +70 °C
Relative humidity During operation ≤ 95 % at 25 °C, no condensation
Design, dimensions and weight
Module format Compact module for S7-1200, single width
Degree of protection IP20
Weight
• Net weight • 133 g
• Weight including packaging • 170 g
Dimensions (W x H x D) 30 x 100 x 75 mm
Installation options Standard DIN rail
Switch panel
You will find additional functions and performance data in the section Application and
properties (Page 9).
CP 1242-7
98 Operating Instructions, 06/2014, C79000-G8976-C247-06
Dimension drawings A
Note
All dimensions in the drawings are in millimeters.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 99
Dimension drawings
CP 1242-7
100 Operating Instructions, 06/2014, C79000-G8976-C247-06
Approvals B
Approvals issued
Note
Issued approvals on the type plate of the device
The specified approvals apply only when the corresponding mark is printed on the product.
You can check which of the following approvals have been granted for your product by the
markings on the type plate.
National approvals
You will find an overview of the country-specific wireless approvals of SIMATIC NET devices
with GSM or UMTS services on the Internet pages of Siemens Automation Customer
Support. You will find the link to the document on the following page:
ik-Info (www.siemens.com/simatic-net/ik-info)
Other approvals
SIMATIC NET products are regularly submitted to the relevant authorities and approval
centers for approvals relating to specific markets and applications.
If you require a list of the current approvals for individual devices, consult your Siemens
contact or check the Internet pages of Siemens Automation Customer Support:
45605894 (http://support.automation.siemens.com/WW/view/en/45605894)
Under this entry, go to the relevant product and select the following settings: "Entry list" tab >
entry type "Certificates".
EC declaration of conformity
The CP meets the requirements and safety objectives of the following EU directives and it
complies with the harmonized European standards (EN) for programmable logic controllers
which are published in the official documentation of the European Union.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 101
Approvals
● EU directive 2006/95/EEC "Electrical Equipment Designed for Use within Certain Voltage
Limits" (Low Voltage Equipment Directive)
● EN 60950-1 Information Technology Equipment - Safety
● EU Directive 2004/108/EEC "Electromagnetic Compatibility" (EMC Directive)
– EN 61000-6-4: Emission - industrial area
– EN 61000-6-2: Immunity - industrial area
● EU directive 94/9/EC "Equipment and protective systems intended for use in potentially
explosive atmospheres" (ATEX Explosion Protection Directive)
– EN 60079-15: Type of protection 'n':
● Directive 1999/5/EC of the European Parliament and of the Council of 9 March 1999 on
radio equipment and telecommunications terminal equipment and the mutual recognition
of their conformity (R&TTE)
● EU Directive 2002/95/EC (RoHS)
The EC Declaration of Conformity is available for all responsible authorities at:
Siemens Aktiengesellschaft
Industry Automation
Industrielle Kommunikation SIMATIC NET
Postfach 4848
D-90327 Nürnberg
Germany
You will find the EC Declaration of Conformity for this product on the Internet at the following
address:
10805878 (http://support.automation.siemens.com/WW/view/en/10805878) → "Entry List"
tab
Filter settings:
Entry type: "Certificates"
Certificate Type: "Declaration of Conformity"
Search items(s): <name of the module>
cULus approval
Underwriters Laboratories Inc. meets
● Underwriters Laboratories, Inc.: UL 508 Listed (industrial control devices)
● Canadian Standards Association: CSA C22.2 Number 142 (process control equipment)
FM certification
Factory Mutual Research (FM):
Approval Standard Class number 3600 and 3611
Approved for use in:
Class I, Division 2, Group A, B, C, D, Temperature Class T4A, Ta = 55 °C
Class I, Zone 2, Group IIC, Temperature Class T4, Ta = 55 °C
CP 1242-7
102 Operating Instructions, 06/2014, C79000-G8976-C247-06
Approvals
ATEX approval
ATEX approval: II 3 G Ex nA II T4
Test number: KEMA 10 ATEX 0166X
EN 60079-0:2006: Potentially explosive atmosphere - general requirements
EN 60079-15:2005: Electrical apparatus for explosive gas atmospheres; type of protection 'n'
Over and above this, the following conditions must be met for the safe deployment of the CP:
● Install the modules in a suitable enclosure with degree of protection of at least IP54 to
EN 60529 and take into account the environmental conditions for operation of the
devices.
● If the rated temperatures of 70°C at the cable entry or 80°C at the branching point of the
wires are exceeded, the permitted temperature range of the selected cable must be
suitable for the actual measured temperatures.
● Measures must be taken to prevent the rated voltage being exceeded by more than 40%
due to transient disturbances.
C-Tick approval
The CP meets the requirements of the AS/NZS 2064 standards (Class A)
Brazil
Mexico
La operación de este equipo está sujeta a las siguientes dos condiciones:
(1) es posible que este equipo o dispositivo no cause interferencia perjudicial y
(2) este equipo o dispositivo debe aceptar cualquier interferencia, incluyendo la que pueda
causar su operación no deseada.
Taiwan
本產品符合低功率電波輻射性電機管理辦法 第十二條、第十四條等條文規定
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 103
Approvals
1.
經型式認證合格之低功率射頻電機,非經許可,公司、商號或使用者均不得擅自變更頻率、加
大功率或變更原設計之特性及功能。
Low Power radio frequency electric machinery was qualified by Type Approval, not get
permission from authority; the company, business or user can’t arbitrarily change frequency,
increase power or modify feature or function of original design.
2.
低功率射頻電機之使用不得影響飛航安全及干擾合法通信;經發現有干擾現象時,應立即停用
,並改善至無干擾時方得繼續使用。
前項合法通信,指依電信法規定作業之無線電通信。
低功率射頻電機須忍受合法通信或工業、科學及醫療用電波輻射性電機設備之干擾。
Use of low power radio frequency electric machinery can’t affect flight safety and interfere
with legal communication; once discover the interfered phenomenon, it should stop
immediately and improve to no interference and then could continue to use.
The preceding legal communication is radio communication which follows
Telecommunication Act to operate.
Low power radio frequency electric machinery must tolerate interference from legal
communication or electric machinery apparatus of industry, science and medical radiation.
Israel
Serbia
CP 1242-7
104 Operating Instructions, 06/2014, C79000-G8976-C247-06
Approvals
Industrial environments
The CP was developed for use in industrial environments.
Environmental conditions
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 105
Approvals
Protection class
● Protection class III according to EN 60950-1 (protective conductor not required)
Degree of protection
● Mechanical protection to EN 60529: IP20
Protects against finger contact with high voltage as tested by standard probe. External
protection required for dust, dirt, water and foreign objects of < 12.5 mm in diameter.
Rated voltage
CP 1242-7
106 Operating Instructions, 06/2014, C79000-G8976-C247-06
Accessories C
C.1 Antennas
GSM/GPRS antennas
The following antennas are available for use in GSM/GPRS networks and can be installed
both indoors and outdoors. The antennas must be ordered separately.
Antenna ANT794-4MR
You will find detailed information in the device manual. You will find this on the Internet on
the pages of Siemens Industrial Automation Customer Support under the following entry ID:
23119005 (http://support.automation.siemens.com/WW/view/en/23119005)
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 107
Accessories
C.1 Antennas
You will find detailed information in the device manual. You will find this on the Internet on
the pages of Siemens Industrial Automation Customer Support under the following entry ID:
48729835 (http://support.automation.siemens.com/WW/view/en/48729835)
ANT794-4MR
Order number 6NH9860-1AA00
Mobile wireless networks GSM/GPRS
Frequency ranges • 824 to 960 MHz (GSM 850, 900)
• 1 710 to 1 880 MHz (GSM 1 800)
• 1 900 to 2 200 MHz (GSM / UMTS)
Characteristics Omnidirectional
Antenna gain 0 dB
Impedance 50 ohms
Standing wave ratio (SWR) < 2,0
Max. power 20 W
Polarity Linear vertical
Connector SMA
Length of antenna cable 5m
External material Hard PVC, UV-resistant
Degree of protection IP65
Permitted ambient conditions
• Operating temperature • -40 °C to +70 °C
• Transport/storage temperature • -40 °C to +70 °C
• Relative humidity • 100 %
External material Hard PVC, UV-resistant
CP 1242-7
108 Operating Instructions, 06/2014, C79000-G8976-C247-06
Accessories
C.2 TS Gateway
ANT794-4MR
Construction Antenna with fixed HF cable and SMA male
connector
Dimensions (D x H) in mm 25 x 193
Weight
• Antenna incl. cable • 310 g
• Fittings • 54 g
Installation With supplied bracket
C.2 TS Gateway
Use of TS Gateway
TS Gateway is an application used for TeleService connections via GPRS with remote
SIMATIC stations of the type S7-1200.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 109
Accessories
C.2 TS Gateway
Note
TS Gateway only for TeleService
TS Gateway is used only for the "TeleService" function via GPRS. No connections to the
remote stations can be monitored and no process data can be transferred.
CP 1242-7
110 Operating Instructions, 06/2014, C79000-G8976-C247-06
Accessories
C.2 TS Gateway
establish the TeleService connection via the substitute system. In terms of the range of
functions, both systems are identical and do not monitor each other.
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 111
Accessories
C.2 TS Gateway
CP 1242-7
112 Operating Instructions, 06/2014, C79000-G8976-C247-06
References D
Where to find Siemens documentation
● You will find the article numbers for the Siemens products of relevance here in the
following catalogs:
– SIMATIC NET Industrial Communication / Industrial Identification, catalog IK PI
– SIMATIC Products for Totally Integrated Automation and Micro Automation, catalog
ST 70
You can request the catalogs and additional information from your Siemens
representative.
● You will find SIMATIC NET manuals on the Internet pages of Siemens Automation
Customer Support:
Link to Customer Support (http://support.automation.siemens.com/WW/view/en)
Enter the entry ID of the relevant manual as the search item. The ID is listed below some
of the reference entries in brackets.
As an alternative, you will find the SIMATIC NET documentation on the pages of Product
Support:
10805878 (http://support.automation.siemens.com/WW/view/en/10805878)
Go to the required product group and make the following settings:
"Entry list" tab, Entry type "Manuals / Operating Instructions"
● You will find the documentation for the SIMATIC NET products relevant here on the data
medium that ships with some products:
– Product CD / product DVD or
– SIMATIC NET Manual Collection
/1/
SIMATIC
S7-1200 Programmable Controller
System Manual
Siemens AG
order number: 6ES7298-8FA30-8BH0
Current issue under the following entry ID:
34612486 (http://support.automation.siemens.com/WW/view/en/34612486)
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 113
References
/2/
/2/
SIMATIC NET
TELECONTROL SERVER BASIC
Operating Instructions
Siemens AG
entry ID: 50898745 (http://support.automation.siemens.com/WW/view/en/50898745)
/3/
SIMATIC NET
TS Gateway
Operating Instructions
Siemens AG
Entry ID: 48548898 (http://support.automation.siemens.com/WW/view/en/48548898)
/4/
SIMATIC NET
Program blocks for SIMATIC NET S7 CPs
Version history, reference document
Siemens AG
Entry ID: 9836605 (http://support.automation.siemens.com/WW/view/en/9836605)
CP 1242-7
114 Operating Instructions, 06/2014, C79000-G8976-C247-06
Index
A H
Access ID, 53, 83 Hardware identifier, 64, 67, 70, 74, 79, 81, 82, 83
Acknowledgment of frames, 49 Hardware product version, 3
Antennas, 107 Hazardous area, 29
Article number, 3
ATEX, 30
Authorized phone numbers, 44 I
Image on the CP, 50
IMEI, 3
C
Inserting/removing a SIM card, 31
CDMA, 9 Instructions, 21, 61
Connection abort, 49, 62 Inter-station communication, 9, 53
Connection establishment active/passive, 11 ISO-ON-TCP: Port 30000, 12
Connection interrupted, 42 Item name (read job), 56
Connection modes, 42
Connection resources, 11
Cyclic communication, 55 L
Cyclic data exchange, 55
Load to device, 47
D M
Data buffering, 13, 49
Main gateway, 110
Degree of protection, 106
Dimensions, 33
Direct communication, 9, 53
N
DNS server, 39
NTP, 11
E
O
Electromagnetic compatibility (EMC), 105
EMC, 105 OPC client: Item name, 56
Environmental conditions, 105, 105 OPC, configuration, 16
Establishing TeleService connection, 46 Operating states, 25
F P
Firmware version, 3 Passwords, 39
Frame buffer, 13, 49 Permanent connection, 42
Permanent station, 42
Phone number of the CP (SIM card), 38
G PIN
Configuration, 38
Glossary, 5
Incorrect entry, 38
GPRS direct (mode), 41
Port 30000 for ISO-ON-TCP, 12
CP 1242-7
Operating Instructions, 06/2014, C79000-G8976-C247-06 115
Index
S
Safety notices, 29
Send process image, 50
Sending SMS messages, 69
Server password, 39
Service & Support, 6
SIMATIC NET glossary, 5
SMS gateway, 44
SMS text, 71, 75, 81
Standards, 104
STEP 7 version, 21
Substitute gateway, 110
T
TC_CONFIG: Application example, 62
TC_RECV, 51
TC_SEND, 51
TCSB, 4
Telecontrol (mode), 41
Telecontrol connection, 12
Telecontrol server, 41
Telecontrol server - protection, 41
TELECONTROL SERVER BASIC, 41
TeleService, 38
TeleService gateway, documentation, 22
TeleService via GPRS, 10
Temporary connection, 11, 42
Temporary station, 42
Test specifications, 104
Time synchronization, 11
Training, 6
CP 1242-7
116 Operating Instructions, 06/2014, C79000-G8976-C247-06