Monitoring and Control With The LOGO! CMR Module
Monitoring and Control With The LOGO! CMR Module
Monitoring and Control With The LOGO! CMR Module
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2019 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
Table of Contents
Legal information ......................................................................................................... 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 5
2.2 Description of the core functionality ..................................................... 6
2.2.1 Scenario: “Temperature monitoring with SMS alarm” .......................... 6
2.2.2 Scenario: “receiving SMS commands” ................................................. 7
2.2.3 Scenario: “Time-of-day synchronization” ............................................. 8
2.2.4 Scenario: “GPS tracking”...................................................................... 9
2.3 Hardware and software components ................................................. 10
2.3.1 Validity ................................................................................................ 10
2.3.2 Components used .............................................................................. 10
3 Function Mechanisms ..................................................................................... 13
3.1 Overview............................................................................................. 13
3.2 “GPS tracking” scenario ..................................................................... 14
4 Configuration and Settings............................................................................. 15
4.1 “Temperature monitoring with SMS alarm” configuration .................. 15
4.2 “Receiving SMS commands” configuration ........................................ 20
4.3 “Time-of-day synchronization” configuration ...................................... 24
© Siemens AG 2019 All rights reserved
1 Task
Introduction
The devices from the LOGO! series enable solving small automation tasks quickly
and efficiently. The modules of LOGO! 8 expand the function spectrum and cover
further requirements. Simplified handling, a new display, and the full
communication range via Ethernet facilitate the realization of small automation
tasks.
The provided programs and the documentation show the possible application
areas of the LOGO! CMR20X0 communication module. A wide range of functions
is covered here, from “sending and receiving of SMS”, over “time-of-day
synchronization”, to “tracking of position data”.
2 Solution
2.1 Overview
Schematic layout
The figure below shows a schematic overview of the most important components of
the solution:
Figure 2-1
© Siemens AG 2019 All rights reserved
Advantages
This application offers you the following advantages:
• Overview over the application options of LOGO! CMR20X0 in interaction with
LOGO! 8 (LOGO! BM).
• Adaptable example projects for simple adjustment to own requirements.
• Step-by-step instructions for configuring the LOGO! CMR module.
Chapter 2.2 provides an overview of the realized scenarios.
Delimitation
This application does not contain a description of:
• LOGO!Soft Comfort V8.
• Ladder diagram (LAD) or function block diagram (FBD).
Schematic layout
The figure below provides an overview of the scenario:
Figure 2-2
LOGO! LOGO!
CMR BM
Content
LOGO! CMR monitors a temperature value of LOGO! BM. The temperature value
can either be fed real via a LOGO! module, or directly be simulated in LOGO! BM.
The description in this document uses the simulated temperature value.
If in LOGO! CMR a defined limit value is exceeded or fallen short of, an SMS is
sent to a defined recipient group via the LOGO! CMR module.
Schematic layout
The figure below provides an overview of the scenario:
Figure 2-3
LOGO! LOGO!
CMR BM
© Siemens AG 2019 All rights reserved
Content
To extend the temperature monitoring already realized in the first scenario, the
option of controlling a fan signal via SMS is implemented.
If an SMS is sent to the LOGO! CMR module with a command (see Figure 4-1)
LOGO! 8 switches the respective signal on. In the example, the signal for a fan is
switched.
Schematic layout
The figure below provides an overview of the scenario:
Figure 2-4
© Siemens AG 2019 All rights reserved
LOGO! LOGO!
CMR BM
Content
The system time of LOGO! CMR can be synchronized in different ways (GSM,
GPS, NTP).
The “time-of-day synchronization” scenario shows requirements and
implementation for the various synchronization options.
A scenario for controlling an outlet flap in animal breeding at sunrise and sunset is
laid out using function block “Astronomical clock”.
Schematic layout
The figure below provides an overview of the scenario:
Figure 2-5
LOGO! LOGO!
CMR BM
© Siemens AG 2019 All rights reserved
Content
The example project shows the tracking of a container. The GPS data is recorded
via the CMR module mounted at the container, transferred to the LOGO! BM, and
stored there in a .csv file via the data log function.
The following functions are realized:
• recording the current GPS position.
• storing the data in the microSD card as a .csv file.
• preparing the data via an Excel macro.
• displaying of the position curve via a freeware tool.
Additional hardware components for “Temperature monitoring with SMS alarm” and
“Receiving SMS commands”
Table 2-3
Component Qty. Article number Note
LOGO! AM2 RTD 1 6ED1055-1MD00-0BA2 For connecting a resistivity
thermometer. Alternatively,
the temperature simulation
can also be used for testing.
SIMATIC HMI 1 6AV2123-2GB03-0AX0 For additional visualization.
KTP700 BASIC
Mobile wireless 1 6NH9860-1AA00
antenna
SIM card 1 SMS to be sent/received.
Software components
Table 2-6
Component Qty. Article number Note
LOGO!Soft Comfort 1 6ED1058-0BA08-0YA1
Version 8
WINCC Basic V15.1 1 6AV2100-0AA05-0AA5 Only optionally required for
the first two scenarios.
Microsoft Excel 1 Required for executing the
2010 Microsoft Excel macro.
3 Function Mechanisms
3.1 Overview
Division
Parts of the functionality of the four scenarios are already covered via the
configuration of the LOGO! CMR module. The following overviews show where the
functionality is realized in the example scenarios.
Overview
The LOGO!Soft Comfort project is divided into four independent parts according to
the four scenarios.
Figure 3-2
• Temperature acquisition
Send SMS • Temperature simulation
(temperature
monitoring) • Message text and display lighting
• Trigger the sending of SMS
Receive SMS
• Fan control via an output
(fan control)
LOGO! BM
PROGRAM • Synchronizing the time-of-day with
LOGO! CMR module
Time-of-day • Calling the “Astronomical clock” function
synchronization
• Setting an output depending on the
position of the sun.
• Trigger the transmission of GPS data
from LOGO!CMR to BM
• Reading the GPS position from
© Siemens AG 2019 All rights reserved
GPS Logging
LOGO! CMR
• Logging the GPS data on microSD card
Alternatively, the supplied configuration file can also be used and adjusted to your
application (see Chapter 5.3.3).
Table 4-1
No. Action
1. Open your Web browser. enter the IP address of LOGO! CMR and log on at the start page of
WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to assign your own password now.
Note
Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Go to “WAN > Mobile Wireless Settings”.
Make the following settings:
1. activate the “Activate mobile wireless interface” checkbox.
2. enter the PIN of your SIM card.
3. if necessary, enter the telephone number of the SMS service center of your provider.
2
© Siemens AG 2019 All rights reserved
3. Go to “Users/groups > User” and create a new user. To do this, click on the “Add” button and
follow the input mask. Confirm the entries with “Apply”.
No. Action
4. Now go to “Users/groups > Recipient groups”. Add a new recipient group via the “Add” button in
the input mask. By activating the checkbox at the user names you assign the user group. Confirm
the entries with “Apply”.
5. Go to the “Monitoring > LOGO! BM” menu and activate the “Active” checkbox. Enter the IP
address of LOGO! BM. Confirm the entries by clicking on the “Apply” button.
You can test the connection by clicking on the “Ping LOGO! BM” button.
© Siemens AG 2019 All rights reserved
6. Go to the “Message texts” tab. Create the following two message texts:
No. Action
7. Click on the “Signal definitions” tab and define a digital flag for the SMS.
Click on the “Add” button and confirm with “Apply” after entering the values.
Enter the following values:
“Temperature_normal”:
No. Action
9. In this step, actions are defined. Go to the “Actions” tab.
Press “Add” to define the actions “Temp_status_high” and “Temp_status_normal”.
Temp_status_high:
Temp_status_normal:
Description
The following table describes the configuration at LOGO! CMR via WBM, in order
to control an output with the existing example project.
When changing the signal controlled via the LOGO! BM user program, a feedback
shall be sent via SMS.
In the description it is assumed, that the configuration was already performed in
Chapter 4.1.
• Enabling the receiving of SMS.
• Defining text messages.
• Defining recipients and recipient groups.
• Configuring of events.
• Defining of actions.
• Subsequent assignment of the actions for the events.
Alternatively, you can also use the configuration file supplied in the download and
adjust it to your application.
Table 4-2
No. Action
1. Open your Web browser. Enter the IP address of LOGO! CMR and log on at the start page of
WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to then assign your own password.
Note
Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Go to “WAN > SMS”.
Make the following settings:
1. Activate the “Allow receipt of SMS messages” checkbox.
2. Enter a password of your choice, for example “LOGO!”.
3. Confirm the changes by clicking on “Apply”.
2
© Siemens AG 2019 All rights reserved
By adopting the settings, the commands listed in Figure 4-1 can be used.
3. Make the following settings in “Monitoring”, analog to Chapter 4.1.
“Message texts”:
• Fan_is_on_text: “The fan is on!”
• Fan_is_off_text: “The fan is off!”
No. Action
4. Two signals are defined. The “Switch_fan_on/off” signal shows the program of LOGO! BM that the
fan shall be switched on.
The “Fan_status_on/off” signal indicates the status of the fan. For any change of the fan status, an
SMS shall be sent.
“Signal definitions”:
“Switch_fan_on/off”:
“Fan_status_on/off”
© Siemens AG 2019 All rights reserved
5. “Events”:
Fan_switches_on:
Fan_switches_off:
No. Action
6. “Actions”:
Fan_status_on:
Fan_status_off:
7. “Assignments”:
SMS_fan_on:
© Siemens AG 2019 All rights reserved
SMS_fan_off:
These settings acknowledge a change in the fan control (output signal Q1 of LOGO! 8) by sending
an SMS message text.
8. In order to control the fan, you can use the following commands via SMS:
Switching on the fan: “LOGO;LOGO=VM6,1,BYTE”
Switching off the fan: “LOGO;LOGO=VM6,0,BYTE” (see Figure 4-1)
(Syntax: “Password; LOGO=VMx,y,BYTE”)
This controls the first bit of the internal flag 6. Depending on flag 6, output Q1 is then controlled for
controlling the fan.
Table 4-3
No. Action
1. Open your Web browser. enter the IP address of LOGO! CMR and log on at the start page of
WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to assign your own password now.
Note
Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Go to “System > General” and activate GPS by selecting entry “Yes” in the drop-down menu.
Confirm the entry by clicking on “Apply”.
© Siemens AG 2019 All rights reserved
No. Action
4. The LOGO! CMR module synchronizes its time-of-day via GPS. To forward the time to LOGO! BM
as well, activate checkbox “Forward time to LOGO! BM”.
Note Establishing the connection to an NTP server is only possible via the mobile
wireless interface.
Synchronization via the Ethernet interface is not possible.
The following table describes how to establish the time-of-day synchronization via
NTP.
Table 4-4
No. Action
1. Open your Web browser. enter the IP address of LOGO! CMR and log on at the start page of
WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to assign your own password now.
Note
Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Go to “WAN > mobile wireless settings” and activate the data connection via the mobile wireless
network. Enter your access details. These can be obtained from your provider.
© Siemens AG 2019 All rights reserved
No. Action
3. Then go to the “System time” tab in “System > General”.
Depending on the used NTP server, it may be useful to activate the “Accept time of day from
non-synchronized NTP servers” checkbox.
© Siemens AG 2019 All rights reserved
4. The LOGO! CMR module now synchronizes its time-of-day via NTP. To forward the time to
LOGO! BM as well, activate checkbox “Forward time to LOGO! BM”.
Note If you wish to synchronize the time-of-day via the mobile wireless network, you
must ensure beforehand that your provider provides the time-of-day
synchronization via mobile wireless network.
Table 4-5
No. Action
1. Open your Web browser. Enter the IP address of LOGO! CMR and log on at the start page of
WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to assign your own password now.
Note
• Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Then go to the “System time” tab in “System > General”.
© Siemens AG 2019 All rights reserved
In the drop-down menu you select the “Mobile wireless network” option.
No. Action
4. Make the following settings in the “Events” tab, analog to Chapter 4.1.
Send_GPS:
5. Make the following settings in the “Actions” tab, analog to Chapter 4.1.
Write_GPS:
6. Analog to Chapter 4.1 you make the following settings in the “Assignments” tab:
When changing the “Signal_send_GPS” signal, the current GPS position is sent to LOGO! BM.
© Siemens AG 2019 All rights reserved
7. The GPS data is processed in the LOGO! BM user program and by means of the Excel macro
also provided in the download.
Figure 5-1
Engineering PC
KTP 900
© Siemens AG 2019 All rights reserved
LOGO! 12/24RCE
& LOGO! AM2 RTD LOGO! TDE
LOGO! Power
24V
Note The setup guidelines for automation systems must generally be followed.
Table 5-1
No. Action Remarks
8. Install the GSM antenna and the GPS antenna For the hardware setup of LOGO! CMR see
at the respectively provided antenna also \4\.
connections of the LOGO! CMR.
9. Insert the SIM card into the respective slot of
the LOGO! CMR.
10. Insert your microSD card into the respective
slot of the LOGO! CMR.
11. Connect the LOGO! BM with the
LOGO! AM2 RTD.
12. Connect the LOGO! TDE and the KTP 700 Any other switch with a respective port number
with an Ethernet cable. can also be used.
Connect further modules (LOGO! TDE,
LOGO! BM, LOGO! CMR, Engineering PC)
with the LOGO! CSM12/24 via Ethernet.
13. Connect the individual components with the
respective power supply.
14. If using a temperature sensor: Connect the Alternatively, you can also simulate the
LOGO! AM2 RTD with the temperature sensor. temperature directly via the LOGO! BM.
15. Switch on the power supply at the devices.
© Siemens AG 2019 All rights reserved
5.3 Commissioning
IP addresses
The factory settings for the used LOGO! devices are the IP addresses from the
following table.
The subnet mask is 255.255.255.0.
Table 5-2
Name IP address
LOGO! 8/LOGO! BM 192.168.0.1
LOGO! TDE 192.168.0.2
LOGO! CMR 192.168.0.3
The procedure for changing the IP address is, for example, described in the
© Siemens AG 2019 All rights reserved
The following table describes the procedure for commissioning the basis station
LOGO! BM.
Table 5-3
No. Action
1. Open the downloaded LOGO!Soft Comfort project.
2. Right-click on the “LOGO!_LOGO! CMR20X0_LOGO!_8_3_0” diagram. Select
the “Ethernet Connections”.
No. Action
4. Load the diagram into the LOGO! BM via “Tools > Transfer > PC ->LOGO!”
6. After successful download you can restart the LOGO! BM via a dialog.
Table 5-4
No. Action
1. First, check the IP address of the LOGO! TDE.
Navigate to “TDE Settings > Network > IP Address” and select IP address
192.168.0.2.
2. Navigate back to the start menu via the “ESC” button. Select “LOGO! Selection”
and set the IP address to 192.168.0.1 (the IP address of the LOGO! BM).
LOGO! TDE then connects with LOGO! BM.
For commissioning the LOGO! CMR follow the instructions in the following table:
Table 5-5
No. Action
1. Open your Web browser. enter the IP address of LOGO! CMR and log on at the
start page of WBM.
Factory settings:
• IP address: 192.168.0.3
• User name: admin
• Password: admin
For security reasons you need to assign your own password now.
Note
Make sure that LOGO! CMR20X0 can be reached from your PC via the network.
2. Go to “Maintenance > Configuration” and click on “Browse”. Select the
downloaded configuration file (“user.cfg”) and then click on “Load”.
© Siemens AG 2019 All rights reserved
Note:
When loading the configuration, the password of the configuration file is also
adopted.
The “admin” password for the WBM then changes to “LOGO8cmr.”. For security
reasons you need to assign your own password.
3. The configuration described in Chapter 4 has now been performed. You only need
to adjust your mobile wireless parameters.
No. Action
4. Go to “WAN > Mobile wireless settings”.
The following table shows the procedure for commissioning the KTP700 BASIC
panel.
For the scenarios “Temperature monitoring with SMS alarm” and “Receiving SMS
commands”, the panel is used for visualization, control and simulation. The
respective functions are also realized via the LOGO! TDE.
Table 5-6
No. Action
1. Start the TIA Portal and open the downloaded project.
2. In “Online Access” you select your interface and start the search for accessible
nodes.
3. Select “Online & diagnostics” and assign the address 192.168.0.20 to the HMI via
“Functions > Assign IP address”.
© Siemens AG 2019 All rights reserved
4. In the project tree you then click on the HMI and download the project into the
device.
5. Search the device and confirm the dialog window.
No. Action
4. Simulation via WinCC-Panel KTP700 BASIC
• Click on the “Start simulation” button.
• Click on “Simulation value temperature” and enter a temperature value
>22°C.
4. Visually, you can also monitor the successful execution of the command directly at
the LOGO! BM, the LOGO! TDE and the KTP700.
Figure 6-2
© Siemens AG 2019 All rights reserved
Note The inputs for the end position switches of the outlet flap are realized as opener.
If the input = FALSE, it is assumed that this state is currently true.
5. Monitor the scenario. When currently between the configured sunrise and sunset,
output Q3 will be active to open the outlet flap.
© Siemens AG 2019 All rights reserved
6. Go back offline.
Change the system time of LOGO! BM. Go to “Tools > Transfer > PC → LOGO!”.
Confirm the stopping of LOGO! BM.
8. Press on the “Online Test” button and connect with LOGO! BM.
Since input I2 indicates that the outlet flap is not closed, output Q4 is set active.
No. Action
6. For visualizing the GPS data, for example, open the web page in \9\.
7. Select the file saved in 5. by clicking on the “Choose file” button. Then click on the
“Go!” button.
No. Action
9. Alternatively, you can delete the time stamp in step 5. This gives you a “route”
mapped out according to the GPS data.
Note The used freeware “GPS Visualizer” is a free converter for .csv files, for example
into .gpx files. Siemens does not provide this service.
© Siemens AG 2019 All rights reserved
If necessary, check the respective license terms of the freeware tool for your
application purpose.
2. On the second page in “Data logging of GPS data” you click on the B020 block (pulse
encoder) to change the given time cycle.
No. Action
3. Change the given time cycle in “Transmit GPS data constantly to LOGO! 8”. The time
cycle must be smaller or equal to the cycle in “Data logging of GPS data”.
Note Note that the smallest polling interval of the process interval of the LOGO! BM at
the LOGO! CMR is one second!
© Siemens AG 2019 All rights reserved
3. Right-click on the desired position on the map and select “What’s here?” from the
context menu.
No. Action
4. Under the search bar you click on the decimal specification of the geo data to
receive the specification in degrees, minutes, seconds.
7. Load the diagram into the LOGO! BM via “Tools > Transfer > PC → LOGO!”).
8 Related Literature
Table 8-1
Topic Title
\1\ Siemens Industry https://support.industry.siemens.com
Online Support
\2\ Download page of https://support.industry.siemens.com/cs/ww/en/view/105074237
the entry
\3\ LOGO! Manual https://support.industry.siemens.com/cs/ww/en/view/100761780
\4\ LOGO! CMR20X0 https://support.industry.siemens.com/cs/ww/en/view/103657268
Manual
\5\ LOGO! CMR20X0 https://support.industry.siemens.com/cs/ww/en/view/104507729
delivery release
\6\ STEP 7 Basic https://support.industry.siemens.com/cs/ww/de/view/109755202
V15.1
\7\ FAQ: What should you watch out for with communication by text
message (SMS) between a LOGO! CMR2020 and a LOGO! 8
with values of the data type BYTE, WORD or DWORD?
https://support.industry.siemens.com/cs/ww/en/view/107146628
\8\ Changing the http://windows.microsoft.com/en-us/windows/change-tcp-ip-
TCP/IP settings settings#1TC=windows-7
9 History
Table 9-1
Version Date Modifications
V1.0 01/2015 First version
V1.0.1 09/2015 Correction article number
V2.0 07/2019 Update to TIA Portal V15.1