Set32 SMS CP1242-7 DOKU V10 en
Set32 SMS CP1242-7 DOKU V10 en
Set32 SMS CP1242-7 DOKU V10 en
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
Siemens AG 2012 All rights reserved
them without first having prior authorization from Siemens Industry Sector in
writing.
Caution
The functions and solutions described in this article confine themselves to the
realization of the automation task predominantly. Please take into account
furthermore that corresponding protective measures have to be taken up in the
context of Industrial Security when connecting your equipment to other parts of the
plant, the enterprise network or the Internet. Further information can be found
under the Item-ID 50203404.
http://support.automation.siemens.com/WW/view/en/50203404
Table of Contents
Warranty and Liability .............................................................................................. 2
Table of Contents ..................................................................................................... 3
1 Automation Problem ...................................................................................... 4
1.1 Overview ........................................................................................... 4
2 Solution........................................................................................................... 6
2.1 Overview of the overall solution ......................................................... 6
2.2 Description of the core functionality.................................................... 8
2.3 Hardware and software components used ....................................... 10
2.4 Performance data ............................................................................ 11
3 Basics ........................................................................................................... 12
3.1 GMS network................................................................................... 12
3.2 Characteristic features of the CP device configuration...................... 14
3.3 Definition of the connection-specific characteristics .......................... 14
3.4 Establishing the connection ............................................................. 16
3.5 Transmitting process data via a sub-connection ............................... 18
Siemens AG 2012 All rights reserved
1 Automation Problem
1.1 Overview
Introduction
This application shows how to set up a simple system for switching and signaling
by means of SMS messages. The field of application used as an example is a drink
vending machine.
User program
Siemens AG 2012 All rights reserved
Controller
• Setpoints • Process values
• Control commands • Alarms
GSM modem
Copyright
2 Solution
2.1 Overview of the overall solution
Station configuration
A SIMATIC CP 1242-7 (2) is connected to a SIMATIC S7-1200 controller 1211C
(3) via the bus interface.
A SIM card (5) is inserted in the GSM/GPRS modem and an ANT 794-4MR quad-
band GSM/GPRS antenna (4) is used for the connection to the air interface.
The power supply of all components is provided via a SIMATIC PM 1207 power
module (1).
L1
N
PE
DC24V+
DC24V-
Siemens AG 2012 All rights reserved
1 2 3
Copyright
Communication partners
All terminal units that support sending SMS messages in the GSM network are
possible for the communication. In most cases, mobile phones will be used. Data
exchange with other stations with integrated GSM modem is possible as well.
Using the SMStoFAX / SMStoMail services, the messages can also be forwarded
to fax machines or e-mail addresses – if the SIM card provider offers these
functions.
Diagrammatic representation
The diagrammatic representation below shows the most important components of
the solution:
Figure 2-2
CP CPU
3
4
6
5
1 2 1 Process alarm detected
7
8 2 Create message text
9
3 Connection request
4 Connection OK
5 Send job
6 Transfer to network
7 Sending successful
8 Terminate connection
9 Connection terminated
Siemens AG 2012 All rights reserved
Mobile phone
Scope
This application does not include a description of the
Copyright
Related blocks
Internally, all blocks that are more complex call their own instances of SMS_Send
and/or access the buffer of SMS_Recv.
1. SMS_Broadcast
Sends a message text to any number of phone numbers.
2. Escalation
– Sends a message to a phone number.
– Waits for a parameterized time for the partner’s acknowledgement.
– After the time has elapsed, the next number is contacted.
3. Set/Get
Values can be requested from the process – it is also possible to specify new
setpoints.
Functions
In FBD, processing strings is often difficult. Therefore, these program parts are
relocated to SCL functions.
1. CheckString
Checks a phone number for the valid characters “0123456789+”.
2. CheckMessage
In this application example, all messages to the station must comply with a
specified format. The function checks the short text message for this format.
3. Set/Get Commands
A part of the message text contains the commands for setting/getting variables.
The command names and the following program execution can be freely
selected by the user. This function:
– Contains all commands configured by the user.
– Searches the message part for known commands.
– Executes the actual command.
– Returns the response text depending on the result.
Siemens AG 2012 All rights reserved
4. Date_to_String
This function reads out the current system time and converts it to a string. This
string can be inserted into any message text.
Modular design – only blocks that are actually required have to be downloaded
to the user program. (When commissioning this application for the first time,
however, the full functional scope of the sample project should remain
unchanged in order to better understand the blocks and exclude malfunctions.)
Other user blocks can easily use the defined message format of the related
blocks (Broadcast, Escalation, Set/Get) as a basis and use it.
Hardware components
Table 2-2
Component Qty. Order no. Note
SIMATIC S7-1200, 1 6EP1332-1SH71 2.5A
PM 1207
SIMATIC S7-1200, 1 6ES7211-1AD30-0XB0 DC/DC/DC
CPU 1211C Firmware 2.2
S7-1200 SIMULATOR 1 6ES7274-1XF30-0XA0 For controlling the
MODULE, 8 INP digital inputs.
SIMATIC 1 6GK7242-7KX30-0XE0 Firmware 1.2.1
CP 1242-7 GPRS,
SINAUT ANT 794- 1 6NH9860-1AA00 Alternative: ANT794-
4MR, rod aerial 3M flat antenna
(6NH9870-1AA00)
Ethernet cable 1 6XV1870-3QH20 For configuring (2 m of
this cable or a
Siemens AG 2012 All rights reserved
TP CORD RJ45/RJ45
2M comparable cable)
Circuit breaker 1 5SX2116-6 1-pole, B, 16A
Standard mounting 1 6ES5 710-8MA11 35 mm
rail
SIM card 1 Available from your wireless Enabled SMS function
service provider GSM sufficient (no
GPRS necessary)
Copyright
For detailed information on the user memory size for all 1200 CPU models, please
refer to manual S7-1200 Programmable Controller
System Manual Table 1-1 Comparing the CPU models
Copyright
3 Basics
3.1 GMS network
This section explains the basic principle of operation of sending SMS messages
within the GSM network. The description of the processes is greatly simplified.
Figure 3-1
MSC 1 MSC 2
6
SMSC
1 3 4 1
Siemens AG 2012 All rights reserved
Zelle
Cells
Coverage area of
an MSC
Comprises several cells
SMSC
If messages are to be sent, the provider’s SMS center must be entered in the
device configuration of the CP. This is not necessary in order to receive
messages.
CP phone number
Does not have to be configured for sending/receiving messages.
Background: Remote access to the station via teleservice
When using this function, TIA Portal must know to which phone number the wake-
up SMS message is to be sent. Therefore, the phone number must be stored in the
project. The field has no effect whatsoever on the SMS functions.
Siemens AG 2012 All rights reserved
Definition of sub-connection
For the sub-connection, several connection types are available for selection that
have already been defined by the selection of the main connection.
The desired connection type is programmed directly in the user program with the
aid of the library blocks.
A sub-connection with the “SMS” connection type is selected in this application
example.
For a more detailed description of the different connection types (SDTs), please
refer to document \1\, Chapter 5.4.7.
Siemens AG 2012 All rights reserved
Copyright
Figure 3-2
Sub-connection
%FB165
“TC_CON”
EN ENO
false REQ BUSY
1 ID DONE
269 INTERFACE ERROR
STATUS
PartnerInfo CONNECT
(TCON_Phone)
Table 3-3
Name Data type Comment Example
InterfaceId HW_ANY Hardware ID of the 269/270
addressed CP. Depending on CPU and
slot of the CP
ID CONN_OUC Connection ID with 1
which the remaining TC Must be unique within
blocks address the the project. (1 not on
connection. two TCON blocks)
ConnectionType Byte Default: W#16#0E – W#16#0E
designates the SMS No changes necessary.
sub-connection type
ActiveEstablished Bool Default: False – not False
relevant for SMS No changes necessary.
Siemens AG 2012 All rights reserved
connections
Phonenumber String[22] Phone number of the ’+49123456’
communication partner. For sending
When receiving, an ’’
empty string stands in
place of all numbers. For receiving all phone
numbers
Copyright
%FB165 %FB163
„TC_SEND“ „TC_RECV“
EN ENO EN ENO
false REQ BUSY false EN_R BUSY
1 ID DONE 1 ID DONE
269 INTERFACE ERROR 269 INTERFACE ERROR
LEN(SendMsg) LEN STATUS 160 LEN STATUS
SendMsg DATA RecvMsg DATA RCVD_LEN
Note The blocks are handled in the same way as in Open User Communication in the
S7-1200 (TSEND, TRECV).
Table 3-4
Text String[10] = ’Hello’
Byte following start address 1 2 3 4 5 6 7 8 9 10
Contents 8 5 H e l l o - - -
Corresponds to Maximum Current Actual text Not relevant
Alternatively, the overlay of the string with AT can be used. This creates additional
symbolic names via which the same memory area can be accessed. Therefore, the
actual AT construct does not require memory, it only provides a different view of
the data.
This variant is preferable as addressing with names is still possible. There is no
need to manually adjust the pointers when there are changes of the start address.
Table 3-5
Text_Struct <AT Struct>
Dummy <WORD> Text <Array of Char [0..159]>
Wildcard Text field
The text can be accessed separately via the array within the structure. Here,
Dummy is only used to skip the first bytes.
Text_Struct.Text is applied to the DATA parameter.
Broadcast SMS_Send
Phone no.
Message
“Attention alarm”
Escalation SMS_Send
“Attention alarm –
ACK required”
Data buffer
ACK received?
Command S
“Value set to 0815”
Number 12345
Data INT1=5
“BOOL is currently TRUE”
Execute commands
Create response text
“#S#12345#pass#INT1=5”
Copyright
Text buffer
CheckMessage
4.1 Functionality
4.1.1 Basic blocks
SMS_Send
As parameters, the SMS_Send block receives a phone number (Phonenumber)
and a message text (MessageText). A send job is started with each positive edge.
Internally, the required TC_blocks are initialized with the created parameters and
called.
SMS_Send terminates when:
The TC_blocks abort with an error more than three times
(Error bit of CON, SEND or DISCON).
The timeout time of 15 seconds has been reached.
The average runtime is between 3 and 6 seconds.
%FB10
Siemens AG 2012 All rights reserved
“SMS_SEND” SMS_Send
EN BUSY
SMS_Send DB contains instance DBs
false REQ DONE of TC_CON/TC_SEND/TC_DISCON
‘123‘ Phonenumber ERROR Multi-instance
1 ConnectionID STATUS
269 HardwareID ENO
‘Hallo‘ REQ
MessageText
Status
• Default timeout = 15 s
Error
• Allowed errors = 3
How many?
• Typical runtime: 3-6 seconds EXIT
Yes No
Retry ERROR
Status
Watchdog timer Elapsed
SMS_Recv
The SMS_Recv block too receives a phone number as a parameter. In addition, a
data area is declared as an output in which it stores received messages (text
buffer). Each new message is signaled at the NDR (New Data Received) output.
Internally, the required TC_blocks are initialized with the created parameters and
called. If no errors occur, TC_Recv is permanently active and SMS_RECV is thus
ready to receive messages.
SMS_Recv terminates only if a negative edge arrives at the REQ input. If an error
occurs, it will be permanently attempted to reestablish the connection.
With an empty string as the phone number, all messages are received on this
block.
%FB11 SMS_Recv
“SMS_RECV”
EN BUSY SMS_Recv-DB contains instance DBs
of TC_CON/TC_SEND/TC_DISCON
REQ ERROR
Multi-instance
‘‘ Phonenumber NDR
1 ConnectionID STATUS
269 HardwareID MessageText
Siemens AG 2012 All rights reserved
REQ REQ
ENO
EXIT
• Operates while REQ = TRUE DONE DONE
Status
• Permanently set to TC_RECV
• Phone no. field blank receives ERROR ERROR
from all subscribers
Retry
• NDR (New Data Received) signals
incoming message
Copyright
NDR ERROR
Status Status
MessageText
Note Messages will only be received if the SMS_Recv / TC_RECV block is active
when they arrive. Otherwise, the message will be lost – subsequent searching of
the memory is not possible.
The sender’s phone number of incoming messages cannot be retrieved on the
TC_blocks. If there is to be a response, the phone number must be included in
the message text.
The following applies to all blocks that want to react to an incoming message:
They consider only the text buffer of the global SMS_Recv and do not call
other SMS_Recv instances.
They leave this text buffer unchanged.
They react to the NDR bit of SMS_Recv.
The text buffer includes the message text. The check for the format – required by
the “Escalation” and “Set/Get” blocks – is performed in another step in the
CheckMessage function.
Siemens AG 2012 All rights reserved
In the application example, CheckMessage is the only function that accesses the
text buffer.
Note Alternatively, different TC_TCON blocks could be used for a single phone
number. This severely limits the number of subscribers as the connection
resources are limited to max. 5 and all of these connections must always be
Copyright
active.
CheckMessage
For the “Escalation” and “Set/Get” blocks, a fixed format is specified for the
incoming message text to facilitate processing. This function checks the message
text for compliance with the format and password validity. In addition, the
Phonenumber substring is limited to the characters “+1234567890”.
Table 4-1
Message format for Escalation and Set/Get
# Command # Phone number # Password # Data
Char String[22] String[16] String
Examples:
#S#12345#pass#INT1=5 OK
#S#12345##INT1=5 OK if password = ’’
Copyright
Overview
Figure 4-4 Global SMS_Recv and CheckMessage program flow
Command S
SMS_Recv CheckMessage
Number 12345
NDR
2 3 Data buffer Data INT1=5
Text buffer 4
1 CheckOK
Password
Optional
Escalation & Set/Get User FB X
CheckOK 6 CheckOK
5 5
Data buffer Data buffer
1. New message on SMS_Recv Here other blocks can be inserted that also use the
Siemens AG 2012 All rights reserved
given format.
2. NDR “True” starts CheckMessage
Within “data buffer”, “Command” defines which block
3. Check the text buffer for format and password
is accessed:
4. Segment the message text in UDT “SMS_Data”
• S = Set value
5. Write UDT to the data buffer
• G = Get value
6. “CheckOk” signals that new valid data is available
• Q = Acknowledgement
7. For the S/G/Q commands - Escalation or Set/Get start
All other letters can be freely selected
the processing
Copyright
SMS_Broadcast
As parameters, the SMS_Broadcast block receives several phone numbers
(Phonenumbers) and one message text. A send job to all phone numbers is started
with each positive edge. Internally, SMS_Send calls are successively performed
with each phone number from the array.
If an error occurs in the SMS_Send call, the block continues with the next phone
number. The block stores the result (DWORD status) of each SMS_Send call in the
Errors array. This enables the user to finally determine which messages were sent
and which errors have occurred.
The Errors parameter keeps the values until the next job is started.
%FB16 SMS_Broadcast
“SMS_Broadcast”
EN BUSY
REQ ERROR
ConnectionID DONE
Phonenumbers [i]
HardwareID STATUS
Text
MessageText ENO
REQ
Phonenumbers
SMS_Send
ERROR ErrorOccurred
• Start when positive edge on REQ Info
DONE
i=0 Status Status[0]
• Same message to all phone numbers Status[1]
Status[2]
• Send errors are skipped EXIT
• Errors keeps errors for each SMS_Send Phonenumbers [i+1]
Yes ErrorOccurred? No DONE
empty?
• Exit at first empty string in Phonenumbers Status
No Yes
i++
EXIT
ERROR
Status
Escalation
Siemens AG 2012 All rights reserved
Sample parameters:
MessageText = “Alarm 101”
Phonenumbers[1] = “12345”
Password (An CheckMessage) = “pass”
%FB17
“Escalation“ ACK OK
Escalation CheckOK
EN BUSY
REQ ERROR
Received.Command == Q
NDR DONE
Data buffer
MessageText STATUS
Received.Data == MessageText
ConnectionID ENO Phonenumbers [i]
HardwareID Text ACK OK
Timeout
Phonenumbers
…
SMS_Send SMS_Send SMS_Send
Received
No. [0] No. [1] No. [x]
Text Text Text
Yes Yes
Set/Get
As a parameter, the Set/Get block receives information on a received message
(“SMS_Data” Received UDT). Processing starts with a positive edge at NDR (New
Data Received). The block searches the data field of the message for known
Copyright
Set/Get Commands
This function includes all commands known to the system. This applies to both
setting and getting values from the process. The distinction is made based on the
transferred Command parameter from the received message.
Then the FIND string function is used to search the data field of the message for
known commands. If one of the FIND calls was successful, the respective action
will be performed and the message text will be returned. Depending on the use
case, all numerical values must be converted either to or from a string.
Examples with comments are stored in the Set/Get Commands function and can
be customized with little effort.
Note The FIND string function is case sensitive – it distinguishes between uppercase
and lowercase letters.
Int1=5 INT1=5
In this case, the block does not find the command and returns “Unknown
Command”.
%FB18 Set/Get
“Set/Get”
Data buffer = Received
EN BUSY
REQ ERROR
NDR DONE
Received STATUS
ConnectionID ENO
Data buffer CheckOK Data buffer
HardwareID
Send OK?
No
No Yes
RETURN
Copyright
4.1.3 Interfaces
Where possible, the blocks behave similarly to the communication blocks from the
library. The interfaces too largely follow this pattern (REQ, BUSY, etc.).
Frequent parameters
Note These parameters are not changed. The declaration as InOut only reduces the
memory requirement.
Copyright
Table 4-5
Status
Byte Byte Word
Info Source Status Word
Table 4-6
Meaning
Info Additional information, varies depending on the block.
Source If an error occurs, the ID of the TC_block causing the error:
01: TC_CON
02: TC_SEND
03: TC_RECV
Siemens AG 2012 All rights reserved
04: TC_DISCON
00: Message of the actual FB
StatusWord If an error occurs, the status of the TC_block causing the error:
When Source = 00, message of the actual FB:
7000: Ready – job can be started
7001: Being processed (BUSY)
7002: New job request while BUSY
0000: Job successfully completed (DONE)
Copyright
Note In the event of an error, the first error that has occurred is always reported.
If – due to an incorrect HW ID – TC_CON and then TC_DISCON fail, the error of
the TC_CON block is provided on the StatusWord.
The possible values and their meaning can be found in the comment of the
respective block title. The “Info” parameter is partially replaced by the related
blocks.
Example: Broadcast
Table 4-7
Info: 82 Source: 02 Status: 80EF
Number of retries reached TC_Send failed Sending was not possible.
See TC_Send help
Broadcast, for its part, will enter 820280EF on Errors[2] and continue processing.
At this moment, it does not provide an ERROR bit. It will signal, by 00008000, that
not all subscribers could be reached not before the end of the phone number.
Structure of CheckMessage
The function has five possible return values:
characters. permitted:
+0123456789
4 The password is incorrect. Case sensitive.
Copyright
disabled by default.
To enable the function, select lines 119-126 and select the “Enable Code” button.
With a similar loop, for example, also the outgoing messages in Set/Get
Commands can be freed from unwanted blanks. These are frequently inserted
when executing the conversion functions such as INT_TO_STRING.
Note For the Escalation FB, blanks must not be removed as it expects the outgoing
Copyright
text to be returned with the exact same contents. If the blanks are missing, the
Escalation FB will not detect the message as a valid acknowledgement and will
continue to operate.
Note The password prompt is now globally active. All incoming messages – that
comply with the format – are checked for it.
Copyright
SMSC 0123456789
GSM
IP address 192.168.0.1
Subnet mask 255.255.255.0
IP address 192.168.0.2
Copyright
Programming unit
Note CP and CPU only start correctly if the power supply of both devices is switched
on simultaneously.
It is recommended that the power supply of the CP be connected to the CPU
via the 24V terminals with internal bridging.
Note Do not insert or remove the SIM card while the CP is in operation.
3. Open the project file (ap11) with STEP 7 V11. Table 2-4
4. Open the device configuration of the “PLC_1”
controller.
Copyright
Note In order to use the project in STEP 7 V12 you need to upgrade it. Go to
“STEP 7 V12> Project view> Project> Upgrade“.
Note The CPUs of the S7 1200 series apply changes to DB start values only during
the next STOP-RUN transition.
Copyright
Please consider this behavior when making changes to the data blocks.
SMS_blocks
The general structure of the Status parameter is described in the following chapter:
Status codes of the blocks. Details on the individual codes can be found in the
comment field of the block header.
Table 6-1
Input Block Remark
I 0.0 SMS_Recv REQ must be permanently set to TRUE
I 0.1 SMS_Send Start when there is a positive edge at
REQ
I 0.2 SMS_Broadcast Start when there is a positive edge at
REQ
I 0.3 Escalation Start when there is a positive edge at
REQ
I 0.4 Set/Get REQ must be permanently set to TRUE
Note To avoid unwanted costs, the sample program does not start any automatic
Siemens AG 2012 All rights reserved
Watch table
To monitor the sequence, the “Overview” symbol table has already been created
in the project. It provides you with an overview of different program parameters:
Copyright
6.1 Overview
Figure 6-1
7
Siemens AG 2012 All rights reserved
Table 6-2
No. Description
1. Three simulated values for the number of bottles per slot. Start at 100 and count to 0 with different
clock memory bits. If all three are 0, they will be reset to the initial value 100.
Copyright
2. The simulated temperature with actual value and setpoint. If there is a difference, the actual value
adapts to the specified setpoint in steps of 0.1.
3. Overview of the global SMS_Recv block and the associated buffers.
4. Overview of SMS_Send and SMS_Broadcast.
5. Overview of Escalation, including timer status for wait time.
6. Overview of Set/Get.
7. Overview of the status messages in the SMS_Broadcast block and the Phonenumbers array.
6.1.1 SMS_Send
Figure 6-2
Table 6-3
No. Action Remark
1 Set input 0.1 to TRUE. In FB1, the configured message text is written to the
send buffer. Then the block starts the send operation
and changes to the BUSY status.
2 Automatic After 3-6 seconds, the send operation is completed
and the BUSY bit disappears. In addition, the DONE
bit is set for one cycle.
6.1.2 SMS_Broadcast
Figure 6-3
…
1
Siemens AG 2012 All rights reserved
…
2
Copyright
Table 6-4
No. Action Remark
1. Set input 0.2 to TRUE. In FB1, the configured message text is written to the
send buffer. The block starts the send operation and
first writes FFFF_FFFF to all Error fields. Then
SMS_Send calls are performed for each phone
number in the array. The block terminates at the first
blank phone number[2].
2. Automatic, block has completed In the example, an invalid phone number, “Errortest”,
processing. was deliberately entered. In Errors, the following can
be seen:
[0]: The message was successfully sent.
[1]:Abort after the maximum number of errors
(82) caused by TC_SEND (02) with error
(80EF).
[2] Not processed due to blank phone number.
6.1.3 SMS_Recv
Figure 6-4
“Test” message to
2 CP phone number
Table 6-5
Siemens AG 2012 All rights reserved
Note An active SMS_Recv. is mandatory for the Escalation and Set/Get blocks.
6.1.4 SMS_Escalation
Figure 6-5
…
3
Siemens AG 2012 All rights reserved
Table 6-6
No. Action Remark
Copyright
1. Set input 0.3 to TRUE. The block accepts the message text and starts the
send operation with the first phone number. Then the
wait time starts.
2. Forward the alarm message to the CP Direct forwarding is only possible with a blank
phone number. password field. Otherwise, the password must be
inserted between ##.
3. Automatic The incoming message is written to the text buffer
and then further processed.
SMS_Escalation checks the data field and detects
the appropriate response.
The acknowledgement was successful, the timer is
stopped and the block terminates with the DONE bit.
6.1.5 Set/Get
Predefined examples
For the predefined sample commands, there is a distinction between assignments
and queries. Queries are marked with ? / assignments are marked with =:
Figure 6-6
3• #G#yourphonenumber##Help?
Siemens AG 2012 All rights reserved
3
Copyright
5• NewDesTemp=10.00000
Table 6-7
No. Action Remark
1. Set input 0.4 to TRUE. The block starts checking the data buffer for the “G”
and “S” commands.
2. Send a message with a known command The known commands are defined in the Set/Get
to the CP phone number. Commands FC (line 6-9). If necessary, customize
the search text and the respective response.
3. Send: The Set/Get Commands FC also contains a string
#G#yourphonenumber##Help? that includes all known commands.
With Help?, it is sent as the response text.
4. Send: Set/Get Commands retrieves the current levels of the
#G#yourphonenumberr##Slots? individual slots (3 x INT) and inserts them in the
response message.
5. Send: Specifies a new setpoint for the temperature. The
#S#yourphonenumber##DesTemp=10 value is applied to the CPU program. Then you
receive a confirmation of successful execution:
NewDesTemp:10.00000
Siemens AG 2012 All rights reserved
Note Basically, the distinction between assignment and query is already given by the
command letter (S/G). The additional =/? are only used to make this distinction
clearer to the user.
Note Set (S) and Get (G) commands are processed in separate IF statements.
Commands with ? are only known when command == G.
Copyright
7 References
This list is by no means complete and only provides a selection of useful
information.
Table 7-1
Topic Title
\1\ CP http://support.automation.siemens.com/WW/view/en/55631071
Operating Instructions
\2\ S7-1200 http://support.automation.siemens.com/WW/view/en/36932465
Programmable
Controller
System Manual
\3\ CP Firmware 1.2.1 http://support.automation.siemens.com/WW/view/en/58565570
\4\ CP Hardware Support http://support.automation.siemens.com/WW/view/en/52788225
Package (HSP)
\5\ Step 7 V11 http://support.automation.siemens.com/WW/view/en/57185407
System Manual
8 History
Siemens AG 2012 All rights reserved
Table 8-1
Version Date Modification
V1.0 June 2013 New set number, project tested with STEP7 V12
V1.0 April 2013 New layout
V1.0 06/2012 First edition
Copyright