Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street...

26
https://support.industry.siemens.com/cs/ww/en/view/109063024 Application Example 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1

Transcript of Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street...

Page 1: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

https://support.industry.siemens.com/cs/ww/en/view/109063024

Application Example 07/2015

Street light control withLOGO! 8 and LOGO! CMRLOGO Set 1

Page 2: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

Warranty and Liability

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 2

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Warranty and LiabilityNote The application examples are not binding and do not claim to be complete with

regard to configuration, equipment or any contingencies. The applicationexamples do not represent customer-specific solutions. They are only intendedto provide support for typical applications. You are responsible for the correctoperation of the described products. These application examples do not relieveyou of the responsibility of safely and professionally using, installing, operatingand servicing equipment. When using these Application Examples, yourecognize that we cannot be made liable for any damage/claims beyond theliability clause described. We reserve the right to make changes to theseapplication examples at any time and without prior notice. If there are anydeviations between the recommendations provided in this Application Exampleand other Siemens publications – e.g. Catalogs – the contents of the otherdocuments shall have priority.

We do not accept any liability for the information contained in this document.Any claims against us – based on whatever legal reason – resulting from the use ofthe examples, information, programs, engineering and performance data etc.,described in this Application Example shall be excluded. Such an exclusion shallnot apply in the case of mandatory liability, e.g. under the German Product LiabilityAct (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,body or health, guarantee for the quality of a product, fraudulent concealment of adeficiency or breach of fundamental contractual obligations (“wesentlicheVertragspflichten”). The compensation for damages due to a breach of afundamental contractual obligation is, however, limited to the foreseeable damage,typical for the type of contract, except in the event of intent or gross negligence orinjury to life, body or health. The above provisions do not imply a change of theburden of proof to your detriment.Any form of duplication or distribution of these application examples or excerptshereof is prohibited without the expressed consent of Siemens AG.

Securityinforma-

tion

Siemens provides products and solutions with industrial security functions thatsupport the secure operation of plants, solutions, machines, equipment and/ornetworks. They are important components in a holistic industrial securityconcept. With this in mind, Siemens’ products and solutions undergo continuousdevelopment. Siemens recommends strongly that you regularly check forproduct updates.

For the secure operation of Siemens products and solutions, it is necessary totake suitable preventive action (e.g. cell protection concept) and integrate eachcomponent into a holistic, state-of-the-art industrial security concept. Third-partyproducts that may be in use should also be considered. For more informationabout 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, visithttps://support.industry.siemens.com.

Page 3: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

Table of Contents

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 3

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Table of ContentsWarranty and Liability .............................................................................................. 21 Task................................................................................................................. 42 Solution........................................................................................................... 4

2.1 Overview ........................................................................................... 42.2 Hardware and software components .................................................. 52.2.1 Validity .............................................................................................. 52.2.2 Components used ............................................................................. 5

3 Mode of Operation .......................................................................................... 6

3.1 Switching on the street lights by entering the time manually(user-defined mode) .......................................................................... 6

3.2 Function mechanism of the user-defined time of day input ................. 73.3 Automatic street light control (astro clock mode) ................................ 83.4 Changeover between astro clock mode/ user-defined mode:.............. 83.4.1 Mode change via LOGO! TDE ........................................................... 83.4.2 Mode change via SMS ....................................................................... 8

4 Configuration and Settings ............................................................................ 9

4.1 Configuring LOGO! CMR for sending/receiving SMS messages ......... 94.2 Monitoring of signals/process values of LOGO! 8 with LOGO!

CMR ................................................................................................ 134.3 Configuring time-of-day synchronization from LOGO! CMR via

NTP server ...................................................................................... 15

5 Installation and Commissioning .................................................................. 185.1 Installing the hardware ..................................................................... 185.1.1 LOGO! 8 and LOGO! TDE ............................................................... 185.1.2 LOGO! CMR .................................................................................... 185.1.3 Contactor with auxiliary motor .......................................................... 185.2 Installing the software ...................................................................... 185.3 Commissioning ................................................................................ 185.3.1 Assigning IP addresses and subnet masks to devices ...................... 185.3.2 Loading the configuration file into LOGO! CMR and entering the

settings of the SIM card ................................................................... 195.3.3 Downloading a program into LOGO! 8 ............................................. 22

6 Operating the Application ............................................................................ 23

6.1 Setting the user-defined time of day via SMS ................................... 236.2 Setting the user-defined time of day via the LOGO! display or

LOGO! TDE ..................................................................................... 246.3 Changing between user-defined mode/astro clock mode via

SMS ................................................................................................ 25

7 Links & Literature ......................................................................................... 26

7.1 Bibliographic references .................................................................. 267.2 Internet link specifications ................................................................ 26

8 History .......................................................................................................... 26

Page 4: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

1 Task2.1 Overview

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 4

Sie

men

sA

G20

15A

llrig

hts

rese

rved

1 TaskIntroduction

For street lights, factors like remote control, networking and potential energy savingare becoming increasingly important.With this in mind, the street lights in a street shall be automatically switchedon and off at sunset and sunrise. In addition, it shall be possible to insert a switch-on time for the street lights via SMS, or manually on site.

2 Solution2.1 Overview

Schematic layoutThe figure below shows a schematic overview of the most important components ofthe solution:Figure 2-1

SMS

hh:mm

Control command

Astro clock

Time-of-daysynchronizationNTP server

In the automation solution, the street light is controlled with a LOGO! 8 connectedto a LOGO! CMR.Setting a manual street light control (user-defined mode) or an automatic control(astro clock mode) can be performed via SMS or LOGO! TDE.In astro clock mode, the street light is switched off in the morning and back on atnight using the “Astronomical clock” function.In user-defined mode, a user-defined time of day can be entered via LOGO!display or LOGO! TDE at which the street light shall be switched on, the day after.The time of day of the LOGO! controller is synchronized with an NTP server usingLOGO! CMR so LOGO! constantly has the correct UTC time.

Page 5: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

2 Solution2.2 Hardware and software components

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 5

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Note Throughout the entire document, the term “LOGO! CMR” refers to “LOGO!CMR2020” as well as “LOGO! CMR2040”.

Advantages

This application example offers you the following advantages:

Energy saving by automatically switching the street lights on and off at sunsetand sunrise.

Cost-efficient remote access for setting the switch-on time of the street lightsvia SMS.

2.2 Hardware and software components

2.2.1 Validity

This application is valid for LOGO! 8 LOGO! Soft Comfort V8

2.2.2 Components used

The application was created with the following components:

Hardware componentsTable 2-1

Component No. Article number Note

LOGO! POWER 24V/4 A 1 6EP1332-1SH52LOGO! 12/24 RCE 1 6ED1052-1MD00-0BA8LOGO! CMR2020

16GK7142-7BX00-0AX0 LOGO! CMR2020, or alternatively

LOGO! CMR2040 can be both be usedLOGO! CMR2040 6GK7142-7EX00-0AX0ANT794-4MR, rodantenna

1 6NH9 860-1AA00 GPRS/LTE antenna

LOGO! TDE 1 6ED1055-4MH00-0BA1Contactor with auxiliarycontact

1 3RT23 26-1AP00 For this application, it is recommendednot to control the street lights directly viathe LOGO! outputs but by using acontactor. If necessary, check the powerconsumption in your application and findout which contactor is best suitable for it.

SIM card 1 For time-of-day synchronization via NTPserver, please be sure to choose aprovider with mobile data services(internet).

Page 6: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

3 Mode of Operation3.1 Switching on the street lights by entering the time manually (user-defined mode)

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 6

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Software componentsTable 2-2

Component No. Article number Note

LOGO!Soft ComfortVersion 8

1 6ED1058-0BA08-0YA1

Sample files and projectsThe following list includes all files and projects that are used in this example.Table 2-3

Component Note109063024_Street_light_control_project.zip This zip-file contains

the LOGO!Soft Comfort project. a configuration file for LOGO! CMR

109063024_Street_light_control_DOKU_v10_en.pdf This document.

3 Mode of Operation3.1 Switching on the street lights by entering the time

manually (user-defined mode)

Determine manually, via SMS or the LOGO! TDE, at which time of day the streetlights shall be switched on the day after.The time value is written to function block “Set time” via variable address “VW6”and further processed in the program.Figure 3-1

A valid format for the time input is the hours as numerals “1-24” and the minutes asnumerals “0-59”. If, for example, the user-defined time of day “11:30 h” shall be set,the value “1130” must be entered here via SMS, LOGO! display, or LOGO! TDE.The correctness of the entered time value is verified in the LOGO! program bymeans of analog function blocks (analog comparators, analog MUX, etc.).If an invalid time format is entered (e.g. “2430”), a warning message is output viaSMS, and locally on LOGO! display or LOGO! TDE, and the astro clock mode isautomatically activated.As soon as a valid time format is inserted, the user-defined mode is automaticallyactivated again.

Page 7: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

3 Mode of Operation3.2 Function mechanism of the user-defined time of day input

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 7

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Note Please note that for the time of day value “00:00” h, the analog value “2400”must be entered. Entering the value “0000” as analog value prompts a warningmessage stating that the time format is wrong.

3.2 Function mechanism of the user-defined time of dayinput

The time base for setting the switch-on time for the street lights is implementedwith a weekly timer and a wiping relay.The analog value written to the LOGO! program as time of day input is furtherprocessed as pulse width parameter (TH) via the wiping relay.For switch-on time “1130”, for example, the calculated pulse duration (TH) is 690minutes. Converting the 690 minutes yields 11 hours and 30 minutes.

Figure 3-2

Each day at 00:00 h, the weekly timer sends a pulse for one minute. As soon asthe wiping relay detects this pulse at the “Trg” input, the pulse width (TH) iscounted down in minutes (690 minutes in this example).After the pulse width (TH) of the wiping relay has elapsed, the street lights areswitched on.

Note The pulse of the weekly timer for counting the pulse width is sent at 00:00 hevery day by the wiping relay. When entering a user-defined switch-on time asan analog value, this value will be counted down as pulse width (TH) by thewiping relay on the following day. The inserted switch-on time for the street lightstherefore applies to the following day.

Page 8: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

3 Mode of Operation3.3 Automatic street light control (astro clock mode)

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 8

Sie

men

sA

G20

15A

llrig

hts

rese

rved

3.3 Automatic street light control (astro clock mode)

When setting the astro clock mode for controlling the street lights,street lighting is automatically switched off at sunrise and switched on at sunset.

3.4 Changeover between astro clock mode/ user-definedmode:

Changing between user-defined and astro clock mode is possible at any time viaSMS and LOGO! TDE.

3.4.1 Mode change via LOGO! TDE

With LOGO! TDE, the mode is changed by pressing the F1 button.

3.4.2 Mode change via SMS

Changing the mode via SMS requires generating a trigger for the pulse relay(function block B042):

Figure 3-3

A random analog value is written to analog network input NAI2 via SMS (at leastvalue "1"). As soon as the analog value has been entered, the threshold trigger(function block B007) switches to “true” and forwards the trigger to the currentpulse relay (function block B042).

Figure 3-4

If at a later point in time, the mode shall be changed again, another value must bewritten to analog network input NAI2 to generate a new trigger.

Page 9: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.1 Configuring LOGO! CMR for sending/receiving SMS messages

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 9

Sie

men

sA

G20

15A

llrig

hts

rese

rved

To enable writing a new value to analog network input NAI2, it must first be reset.Analog network input NAI2 is reset by analog MUX (function block B015) via outputAQ, to which the same address VW8 has been assigned by address network inputNAI2 via the parameter VM mapping table.As soon as a new value is written to analog network input NAI2, output AQ is set to“0” after 2 seconds by the analog MUX (function B015). This resets the analognetwork input NAI2 automatically back to “0”.

4 Configuration and Settings

NoteIn this application example, a completed configuration file for LOGO! CMR isoffered for download. In the configuration file, the following settings havealready been made:

Settings for receiving and sending SMS messages Settings for monitoring the signals from the LOGO! program Settings for time-of-day synchronization via NTP server

Please ensure that when loading the configuration for the LOGO! CMR, thepassword of the configuration file is also adopted.In this application, password “LOGO8cmr.” was assigned in the configurationfor the user “Staff” as well as for the user “admin”. In addition, password“SMSwrite” was specified in the configuration as password for writecommands via SMS. In the web interface (WBM) of LOGO! CMR you canchange the password for the user and the password for write commands viaSMS at any time.Further information, on how to load the completed configuration file into LOGO!CMR is available in Chapters 5.3.2.

4.1 Configuring LOGO! CMR for sending/receiving SMSmessages

The tables below contain descriptions on the settings necessary in the webinterface (WBM) of LOGO! CMR to enable sending or receiving an SMS withLOGO! CMR.

Note It is assumed that LOGO! CMR has been connected to a power supply,connected to a PC network, and that a SIM card has been inserted.Please ensure that the IP address of the network connection of your PC(or USB Ethernet adapter) used for connecting to LOGO! 8 is located in thesame subnet as the LOGO! device and the LOGO! TDE. An instructionon how to change the IP address of a network card is available, for example, onthe internet in the Microsoft Knowledge Base at “Changing TCP/IP settings”.

Table 4-1

No. Action

1. Open your Web browser and enter the IP address of LOGO! CMR (factory setting: 192.168.0.3).2. The web interface (WBM) of LOGO! CMR automatically opens.

Page 10: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.1 Configuring LOGO! CMR for sending/receiving SMS messages

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 10

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

3. When initially logging on, you enter the Login “admin” and the Password “admin” (factory setting).Then you need to assign your own password.

4. Navigate to “WAN > Mobile wireless settings”and make the following settings:1. Activate the “Activate mobile wireless interface” checkbox.2. Enter the PIN of the SIM card inserted in the LOGO! CMR.3. Click on “Apply” to save the settings.

5. Navigate to “WAN > SMS” and make the following settings:1. Activate the “Allow receipt of SMS messages” checkbox.2. To be able to send SMS commands to LOGO!, enter any password in “Password for write

commands”.Note:The configuration file supplied with this application contains the password “SMSwrite” as thepassword for write commands.

3. Click on “Apply” to save the settings.

1

2

3

12

3

Page 11: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.1 Configuring LOGO! CMR for sending/receiving SMS messages

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 11

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

6. Navigate to “User/groups > User” and make the following settings:

1. Enter a name (in this case, not the user login) and a description for the user who is to gainaccess to operating the application.

2. Enter the mobile phone number of the user.3. Select “Yes” in “Allow receipt of SMS messages”.4. If desired, select “Yes” in “Phone number of this user can be changed using SMS”.5. Activate the “Change login data” checkbox.6. Assign a login to your user (polled each time when logging in at the web interface (WBM) of

LOGO! CMR).7. In “Password” you enter the password you wish to use each time when you log in at the web

interface (WBM).Note:As long as the administrator has been inserted in users, you can continue to log on withfactory setting Login “admin” and the Password which you may have assigned after theinitial login at the web interface (WBM) of LOGO! CMR (Table 4-1, step 3).

8. Click on “Apply” to save the settings.

1

2

3

4

56

7

8

Page 12: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.1 Configuring LOGO! CMR for sending/receiving SMS messages

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 12

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

7. Navigate to “User/groups > Recipient groups”) and make the following settings:

1. Click on “Add”.2. Enter a name and a description of your user group.3. Select which of the users you entered shall be added to the recipient group,

by activating the respective checkbox next to the user name.4. Click on “Apply” to save the settings.

1

2

3

4

Page 13: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.2 Monitoring of signals/process values of LOGO! 8 with LOGO! CMR

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 13

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

8. Navigate to “Monitoring > LOGO! BM” and make the following settings:

1. Activate checkbox “Active” to activate the connection from LOGO! CMR to LOGO! 8.2. Enter the IP address of your LOGO!.3. Select in which time interval the process image of LOGO! shall be read (“Query interval for

process image”).Note:It is recommended to select a query interval of “1 second”.

4. Click on “Apply” to save the settings.5. With “Ping LOGO! BM” you can verify whether the connection between LOGO! CMR and

LOGO! has been successful.

9. The configuration of the settings for sending and receiving SMS messages with LOGO! CMRhas now been completed successfully.

4.2 Monitoring of signals/process values of LOGO! 8 withLOGO! CMR

Note In the completed configuration file for LOGO! CMR also offered in this applicationexample for download, the settings for the monitoring of signals and processvalues of LOGO! 8 have already been made with LOGO! CMR.

After you have configured the basic settings for sending and receiving of SMSmessages with LOGO! CMR, as described in Chapter 4.1, you can, in the webinterface (WBM) of LOGO! CMR, specify which signals and process values ofLOGO! 8 shall be able to be monitored via SMS or changed at any time.

Table 4-2

No. Action

1. In the web interface (WBM) of LOGO! CMR you navigate to “Monitoring” and make the followingsettings:

12

3

4

5

Page 14: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.2 Monitoring of signals/process values of LOGO! 8 with LOGO! CMR

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 14

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

2. In “Message texts” you can enter possible SMS message texts.

3. All signals of LOGO! 8 to be changed or monitored via SMS, need to be entered at “Signaldefinitions”.Note:Please ensure that analog values from LOGO! 8, to be monitored or changed with LOGO! CMRmust previously be entered in LOGO! Soft Comfort V8 at “Tools > Parameter VM Mapping” (e.g.the output of an analog MUX). For digital values, this rule does not apply.

4. In “Events”, the type of signal change must be defined for which something shall happen (e.g. avalue exceeds a certain limit or a bit changes to 1).

Page 15: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.3 Configuring time-of-day synchronization from LOGO! CMR via NTP server

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 15

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

5. In “Actions” you specify what exactly should happen in the event of a signal change(e.g. LOGO! should switch to “STOP” or an SMS should be sent).

6. To complete the configuration for monitoring the signals or process values of LOGO! 8 with theLOGO! CMR, all possible “Events” defined for the signals of LOGO! 8 need to be linked with the“Action” to be performed in “Assignments”.

4.3 Configuring time-of-day synchronization from LOGO!CMR via NTP server

LOGO! CMR enables synchronizing the time of day using different methods (GPS,GSM, NTP server) and forwarding it to LOGO! 8.The correct UTC time is therefore always set in LOGO! which is very important inapplications where a timer, for example, is used.In this application example it is ensured by the time-of-day synchronization thatstreet lighting is controlled at the right time of day via the astronomical clock.

The tables below describe the settings to be made in the web interface (WBM) of LOGO! CMRto enable sending or receiving an SMS with LOGO! CMR.

Note In the completed configuration file for LOGO! CMR, also offered in thisapplication example for download, the settings for the time-of-daysynchronization of LOGO! CMR via NTP server have already been made.

Further information, on how to load the completed configuration file into LOGO!CMR is available in Chapter 5.3.2.

The NTP server used in this example is a free to use NTP server. Siemensdoes not provide this service.

Alternatively, another NTP server can also be used.If necessary, check the respective license terms of the NTP server for yourapplication purpose.

Page 16: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.3 Configuring time-of-day synchronization from LOGO! CMR via NTP server

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 16

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Table 4-3

No. Action

1. In the web interface (WBM) of LOGO! CMR you navigate to “System > System time” and makethe following settings:

1. Depending on the location at which your LOGO! CMR module is located you select the“Local time zone”.

2. Ensure, that the “Automatic daylight saving time switchover” checkbox has been activated.Note:It is recommended to deactivate the automatic daylight saving time switchover of LOGO! 8,or else there might be deviations if the automatic daylight saving time switchover has beenactivated in the LOGO! CMR configuration as well as in the settings of LOGO! 8. Furtherinformation on how to deactivate the automatic daylight saving time switchover is availablein the LOGO! manual in Chapter “Summertime/wintertime conversion”.

3. Activate the “Activate time-of-day synchronization” checkbox.

4. Select the “NTP” procedure as “Time-of-day synchronization method”.

5. Enter the address of the NTP server (DNS name or IP address)

6. Activate the “Forward time of day to LOGO! BM” checkbox so the time of day of LOGO! 8is synchronized.

7. Click on “Apply” to save the settings.

2

5

1

3

6

4

7

Page 17: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

4 Configuration and Settings4.3 Configuring time-of-day synchronization from LOGO! CMR via NTP server

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 17

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

2. 1. Navigate to “WAN > mobile wireless settings” and activate the “Activate data connectionvia the mobile wireless network” checkbox.

2. Enter the access details of your mobile network operator if you are able to use the mobiledata services (internet) of the mobile network operator.Note:In this example, entering the access detail “APN” is sufficient. If necessary, check againwhether further access details are necessary, depending on which mobile networkoperator you use. The access details (APN, user name, password) can be requesteddirectly from your provider.

3. Enter the user name (available from the mobile service provider), if requested by yourprovider as access control.

4. Enter the password (available from the mobile service provider), if requested by yourprovider as access control.

5. Specify whether the password and the user name of your provider shall be transferred witha certain authentication method. In this example, the authentication method “None” for noauthentication was selected.Note:Further information on the various authentication methods is available in the manual onLOGO! CMR in Chapter “APN/ User name/ Password”.

6. Click on “Apply” to save the settings.

21

3

45

6

Page 18: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

5 Installation and Commissioning5.1 Installing the hardware

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 18

Sie

men

sA

G20

15A

llrig

hts

rese

rved

5 Installation and CommissioningThis chapter describes the steps necessary to start up the example with the codefrom the download and the hardware list.

5.1 Installing the hardware

5.1.1 LOGO! 8 and LOGO! TDE

Please note the respective setup guidelines for LOGO! 8 and LOGO! TDE. Furtherinformation is available in the LOGO! manual in Chapter “LOGO! installation andwiring”.

5.1.2 LOGO! CMR

Please note the respective setup guidelines for LOGO! CMR2020 or LOGO!CMR2040, as well as for the used mobile telecommunications antenna. Furtherinformation is available in the LOGO! CMR manual in Chapter “Installation,connecting up, commissioning”.For the LOGO! CMR, IP address 192.168.0.3 is used here (already default inLOGO! CMR).

Note When using LOGO! CMR, please note the country approvals for mobile networkbased products. Further information is available under the following link:www.siemens.com/mobilenetwork-approvals.

5.1.3 Contactor with auxiliary motor

For this application, it is recommended not to control the street lights directly viathe LOGO! outputs but by using a contactor with auxiliary contact. The contactor iscontrolled by means of a LOGO! output. In this application example, LOGO! outputQ1 was used.Further information on how the contactor must be wired and which setup guidelinesmust be observed are available in the Device manual for SIRIUS contactors

5.2 Installing the software

Note It is assumed that the necessary LOGO!Soft Comfort V8 software has beeninstalled on your PC and that you are familiar with the basic handling of thissoftware.

5.3 Commissioning

5.3.1 Assigning IP addresses and subnet masks to devices

For LOGO! 8 and LOGO! TDE, one IP address and one subnet mask each must beassigned so they are located in the same subnet.

Page 19: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

5 Installation and Commissioning5.3 Commissioning

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 19

Sie

men

sA

G20

15A

llrig

hts

rese

rved

LOGO! 8Information on how to assign an IP address and a subnet for LOGO! 8 is availablein the LOGO! manual in Chapter “Configuring network settings”.

LOGO! TDEInformation on how to assign an IP address for the LOGO! TDE is available in theLOGO! manual in Chapter “LOGO! TDE settings menu”.

PCPlease ensure that the IP address of the network connection of your PC (or USBEthernet adapter) used for connecting to LOGO! 8 is located in the same subnet asLOGO! 8, LOGO! TDE, and LOGO! CMR.An instruction on how to change the IP address of a network card is available, forexample, on the internet in the Microsoft Knowledge Base at “Changing TCP/IPsettings”.The table below gives you an example of how to assign IP addresses so they arelocated in the same subnet.

Table 5-1

No. Device IP address Subnet mask

1. LOGO! 12/24 RCE 192.168.0.10 255.255.255.02. LOGO! CMR 192.168.0.3 255.255.255.03. LOGO! TDE 192.168.0.12 255.255.255.04. PC 192.168.0.14 255.255.255.0

5.3.2 Loading the configuration file into LOGO! CMR and entering thesettings of the SIM card

Note It is assumed that LOGO! CMR has been connected to a power supply, to a PCnetwork, and that a SIM card has been inserted.

The table below contains a description on how to load the completed configurationfile for the LOGO! CMR, which in this example is offered for download, into theLOGO! CMR.After the completed configuration file has been downloaded, follow the steps in thetable below.

Page 20: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

5 Installation and Commissioning5.3 Commissioning

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 20

Sie

men

sA

G20

15A

llrig

hts

rese

rved

Table 5-2

No. Action

1. 1. In the web interface (WBM) you navigate from LOGO! CMR to “Maintenance >Configuration”.

2. Click “Browse” and select the storage location of the downloaded configuration file.

3. If you have saved the downloaded configuration file on a micro SD card, you can alsodownload the configuration directly via the micro SD card.In this case, click on “Load from SD card”.Note:Further information on handling micro SD cards with LOGO! CMR is available in themanual of LOGO! CMR in Chapter “Inserting micro SD card”.

4. As soon as the configuration has been loaded successfully into the LOGO! CMR, a greencheckmark appears indicating that the configuration was verified and is active.

1

2

3

4

Page 21: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

5 Installation and Commissioning5.3 Commissioning

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 21

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

2. Now go to “WAN > Mobile wireless settings” andmake the following settings:1. Enter the PIN of the SIM card inserted in the LOGO! CMR.2. If necessary, enter the phone number of the SMS service center of your provider.3. To be able to use the time-of-day synchronization via NTP server, the data connection via

mobile radio network must be activated. Then you enter the access details of your mobilenetwork operator if you are able to use the data services (internet) of the mobile networkoperator.Note:Further information on the individual access details is available in the manual on LOGO!CMR in Chapter “APN/ User name/ Password”.

3. Navigate to “User/groups > User” and enter “Staff” as the user name as well as the phonenumber of the mobile phone to which the SMS messages shall be sent.

1

2

3

Page 22: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

5 Installation and Commissioning5.3 Commissioning

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 22

Sie

men

sA

G20

15A

llrig

hts

rese

rved

5.3.3 Downloading a program into LOGO! 8

Note It is assumed that LOGO! 8 has been connected to a power supply and a PCnetwork.

In this application example a completed LOGO! program for LOGO! 8 is offered fordownload. The table below contains a description on how to load the completedLOGO! program into LOGO! 8. Start LOGO!Soft Comfort V8 and make thefollowing settings:

Table 5-3

No. Action

1. Navigate to “File > Open” and select the downloaded LOGO! program“Street_light_control_with_SMS”.

2. Click on the “Download” button or press Ctrl+D.

3. Select the “Interface” for your connection to LOGO! and enter the IP address of your LOGO!.Click on “Test” to check whether the connection has been successful. If the connection issuccessful click “OK” in order to load the program into the device.

Page 23: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

6 Operating the Application6.1 Setting the user-defined time of day via SMS

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 23

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

4. Click on “Yes” to set the LOGO! to STOP before the download.

5. After the successful completion of the download click “Yes” in order to set the LOGO! back toRUN.

6 Operating the Application6.1 Setting the user-defined time of day via SMSTable 6-1

No. Action

1. In the menu of your mobile phone you navigate to the point for sending SMS messages.2. Enter the following text as SMS message, to set the time 22:00 h as user-defined time of day

for switching on the street lights on the following day:“SMSwrite;LOGO=VM6,2200,WORD”.

Note:The command for writing a value to LOGO! 8 follows a defined structure<Password>;LOGO=VM<address>,value>,<data_type>.In the SMS command at the top, the following values were entered according to thisstructure:password “SMSwrite” assigned in the web interface (WBM) of LOGO! CMR at “WAN >SMS” (

Table 4-1, Step 5). variable address “6” of function block “Mathematic instruction” in the

LOGO! program, in which the time of day is entered.

value “2200” for the time of day “22:00 h”

3. Enter the mobile phone number of the SIM card plugged into LOGO! CMR as the receiver inthe SMS message.

4. The user-defined time of day for switching on the street lights on the following day has nowbeen set to 22:00 h.

Page 24: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

6 Operating the Application6.2 Setting the user-defined time of day via the LOGO! display or LOGO! TDE

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 24

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

5. If the user enters a wrong time of day (e.g. 24:01), the mode for switching the street lights isautomatically set to astro clock mode and the user receives an error message.Note:The mode only changes back into user-defined mode after a correct time format has beenentered again, unless the user changes the mode manually beforehand via SMS or LOGO!TDE.

6.2 Setting the user-defined time of day via the LOGO!display or LOGO! TDE

Table 6-2

No. Action

1. On LOGO! 8 or LOGO! TDE you press the ESC button for at least one second

2. The parameter for changing the time of day is marked black (at present, time of day “15:24” isstill set).

3. Press the OK button on LOGO!, or the ENTER button on LOGO! TDE respectively, to changethe time of day. A black cursor is now blinking.

Page 25: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

6 Operating the Application6.3 Changing between user-defined mode/astro clock mode via SMS

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 25

Sie

men

sA

G20

15A

llrig

hts

rese

rved

No. Action

4. Use the or keys to move the curser to the parameter you wish to change.

5. Use the curser keys or to change the parameter.

Note:When editing the parameters for the time via LOGO! or LOGO! TDE, please note that youneed to leave a blank for the first digit. Value “01724” must therefore be set as the parameterfor time of day “17:24” (see screenshot).

6. After the changes have been made, you press the ESC button on LOGO! or LOGO! TDE.

7. The parameter has now been changed and a new user-defined time of day (in this case 17:24h) has been set for switching the street lights.

6.3 Changing between user-defined mode/astro clockmode via SMS

In order to be able to change the mode via SMS, a trigger must be created in theLOGO! program (see also Chapter 3.2). Any analog value (at least value “1”) mustbe written to network block NAI2 here with variable address “8”. If, for example,analog value “2” is written to the analog network block NAI2, a trigger is createdand the mode for switching the street lights changes:

Table 6-3

No. Action

1. Enter the following text as SMS message:“SMSwrite;LOGO=VM8,2,WORD”.

As soon as the mode has changed, the user is informed via SMS.

Page 26: Application Exampley 07/2015 Street light control with ... · Application Exampley 07/2015 Street light control with LOGO! 8 and LOGO! CMR LOGO Set 1. Warranty and Liability LOGO!

7 Links & Literature7.1 Bibliographic references

LOGO! Set 1Entry ID: 109063024, V1.0, 07/2015 26

Sie

men

sA

G20

15A

llrig

hts

rese

rved

7 Links & Literature7.1 Bibliographic referencesTable 7-1

Topic Title

\1\ LOGO! 8 LOGO! 8A Practical Introduction, with Circuit Solutionsand Example ProgramsAuthor: Stefan KrusePublished by: PublicisISBN: 9783895789267

\2\ LOGO! 8 LOGO!8-MiniTrainerSchoolAuthor: Klaus MachalekProduct No.: LOGO! MTS

7.2 Internet link specificationsTable 7-2

Topic Link

\1\ Siemens IndustryOnline Support

https://support.industry.siemens.com

\2\ Download page of theentry

https://support.industry.siemens.com/cs/ww/en/view/109063024

\3\ LOGO! 8 Manual https://support.industry.siemens.com/cs/ww/en/view/100761780/67518106635

\4\ LOGO! CMR Manual https://support.industry.siemens.com/cs/ww/en/view/103657268/78256255755

\5\ FW Update 1.1 forLOGO! CMR2020

https://support.industry.siemens.com/cs/ww/en/view/109475356

8 HistoryTable 8-1

Version Date Modifications

V1.0 04/2015 First version