LOGO8-KNX LogicFunction DOC en
LOGO8-KNX LogicFunction DOC en
8
Logic Function
"Window Contacts"
for KNX
Siemens
LOGO! 8, LOGO! CMK2000 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109748586 Support
Warranty and Liability
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
Siemens AG 2017 All rights reserved
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of the Siemens AG.
Security Siemens provides products and solutions with industrial security functions that support the
informa- secure operation of plants, systems, machines and networks.
tion 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 only form one element of such a
concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines
and networks. Systems, machines and components should only be connected to the
enterprise network or the internet if and to the extent necessary and with appropriate
security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be taken into
account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends to apply product updates as soon as available and
to always use the latest product versions. Use of product versions that are no longer
supported, and failure to apply latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security
RSS Feed under http://www.siemens.com/industrialsecurity.
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Introduction ........................................................................................................ 4
1.1 Task Description ................................................................................... 5
1.2 Mode of operation ................................................................................ 5
2 Setup and description ....................................................................................... 6
2.1 Components used ................................................................................ 6
2.2 Hardware setup .................................................................................... 7
2.3 LOGO! program .................................................................................... 8
2.4 Mounting the LOGO! into KNX ............................................................. 9
2.4.1 Configuration of LOGO! CMK2000 .................................................... 10
3 Commissioning ................................................................................................ 11
4 Adjustments and expansions ......................................................................... 12
4.1 Functional expansions in the application example ............................. 12
4.2 Adapting the message texts ............................................................... 16
5 Appendix .......................................................................................................... 17
5.1 Service and Support ........................................................................... 17
5.2 Links and literature ............................................................................. 18
5.3 Change documentation ...................................................................... 18
Siemens AG 2017 All rights reserved
1 Introduction
This application example offers you a complete function for monitoring the window
contacts with LOGO! 8. An expanded application of the application example (see
chapter 4) contains suggestions for useful and efficient expansion of the logic
function.
The integrated functions of a LOGO! 8 offer many options for quick and easy
solutions for automation tasks. Pre-programmed function blocks support you when
creating a project, e.g. week timer, pulse generator, astro timer, yearly timer,
stopwatch and simple logic gates.
The LOGO! text display unit (TDE) and the integrated LOGO! 8 web server offer
additional options for control and monitoring with function keys and message texts.
The communication module CMK2000 from Siemens provides a solution for
communication in building automation with LOGO! 8. The communication module
enables communication between a LOGO! 8 and any KNX device via the KNX
building system bus.
Window • Switches
Siemens AG 2017 All rights reserved
1 open
2 close • Actors
3 close
4 close
• Sensors
• …
ETHERNET TCP/IP
LOGO! TDE
Window
1 open
2 close
3 close
4 close
Advantages
The combination of the logic function in LOGO! 8 and the CMK2000 module offers
you the following advantages:
Logic function can be expanded, e.g. with additional window contacts
Software program can be expanded by further tasks (room lighting, staircase
lighting, partition wall control, etc.)
Integration of LOGO! inputs and output into a KNX system
Target group
This application example is aimed at experienced KNX users who seek to expand
their KNX system with the functionalities of a LOGO! 8.
You can flexibly expand the function with LOGO! 8, e.g. by the additional
monitoring of doors and by several alarm functions like motion alarms, pressure
sensors in the door mat, etc.
You can expand your application by functions like a week timer or automate
individual processes in the house. Chapter 4 shows a few possible expansions.
Note A functional description of the logic function can be found as a comment of the
switching program under LOGO! Soft Comfort:
> "Tools" > "Select Hardware" > "Offline settings" > "Comment".
Tip: Activate the "Comment" option box under "Tools" > "Options" > "Print" for
the function description to be printed together with the program.
PA: 1.1.1
IP: 192.168.0.10
Q1 Q2 Q3 Q4
LOGO! Power LOGO! 8 LOGO! DM8 LOGO! CMK
ETHERNET TCP/IP
Siemens AG 2017 All rights reserved
Switch B1 Switch B2
Switch C1 Switch C2
PA: 1.1.2
PA: 1.1.1
Note Two logic blocks of a KNX device (logic block N 301) are designed as hardware.
The inputs and outputs could be inverted to achieve the desired behavior.
LOGO! offers you the same flexibility, but already includes all logic blocks.
Siemens AG 2017 All rights reserved
Figure 2-2: LOGO! switching program for the application example (basic switching program)
Table 2-3: Input and output signals in the LOGO! (Basic switching program)
Signals Description
[I1] to [I4] Digital LOGO! inputs, interconnected with window contacts
[I5] The signals activate or deactivate the "Alarm message" function for
[F1] at least one open window.
[M40] [F1]: Function button at the LOGO! TDE or the web server.
[M40]: Signal from KNX => LOGO! (Table 2-4)
[Q1] Output signal as result of the operation of an OR block with inverted
inputs equals (NAND behavior).
[Q2] Output signal as result of the operation of an AND block with
inverted output equals (NAND behavior).
A message text block has been included in the switching program to show the
switching states of the window contacts. The content of the message text is
displayed on the LOGO! display, the LOGO! TDE and the web server (LOGO! TD).
Figure 2-3: Message texts (switching states of the window contacts)
Window
1: open
2: closed
3: closed
4: closed
switching programs in this application example. The ETS5 project included in the
delivery contains the LOGO! CMK2000 configured for use with a specific KNX
button.
Table 2-4: KNX group addresses and LOGO! channels for communication
Signals in the KNX Channel Description
LOGO! Group Communication
between
address LOGO! and KNX
Note In this application example, a 3-gang button with status LEDs is used as KNX
device for switching KNX signals.
Note In this application example, the KNX devices and the LOGO! communication
module CMK2000 have been integrated into the ETS software as "devices".
The basic prerequisites for the signal exchange between LOGO! 8 and the KNX
system bus are shown below.
The LOGO! CMK2000 communication module is configured via the ETS software.
direction "from LOGO! to KNX" and one for the direction "from KNX to LOGO!".
The LOGO! CMK2000 communication channels are connected with the group
addresses of the KNX devices in the "Communication objects" window.
3 Commissioning
Proceed as follows to commission the application example:
LOGO!
1. Start LOGO! Soft Comfort V8.1
2. Open the LOGO! example program included in the delivery:
"109748586_LOGO8_Logicfunctions_basic_en.lsc"
3. Load the program to the LOGO!
Note In this application example, the LOGO! IP address has been preconfigured as
192.168.0.1.
How to set the IP address of a LOGO! 8 can be found in the manual in chapter:
3.8.1 "Configuring network settings".
KNX
The following requirements apply to the KNX application:
The physical addresses "1.1.1" and "1.1.2" are freely available in your KNX
system.
Siemens AG 2017 All rights reserved
You can check the actual switching states of the window contacts using the
message texts from the switching program Figure 2-3.
Lighting control
The monitoring of the window contacts is linked with the lighting control, which
triggers the panic function when a window is open while the night alarm is
activated.
The room sensors are interconnected with the digital inputs of the LOGO!. As an
example, a button is connected via KNX to [M50].
Note KNX buttons can increasingly be found in the high-priced range and with
individual design, particularly for living areas. Therefore, the KNX buttons and
the buttons connected with the digital LOGO! inputs are differentiated in this
application example.
pressed.
You can switch off the lights in a room by pressing the room button of the specific
room again.
Exterior lighting
The button at input [I11] is used to switch on the exterior lighting for one minute.
Pressing the button again will immediately switch off the lighting.
You can activate the automatic switching on and off of the exterior lighting by the
astronomical clock via the button at input [I10] for the night operation, for example if
the house is empty.
The time zone of the astronomical clock is set via a message text.
Figure 4-2 below shows the lighting control with the panic function and the exterior
lighting.
Figure 4-2: Lighting control for a house (expanded LOGO! switching program)
Siemens AG 2017 All rights reserved
Table 4-1 shows the input and output signals of the logic function.
Table 4-1: Input and output signals in the LOGO! (expanded LOGO! switching program)
Input signals Description
Inputs The window contacts are interconnected with the digital inputs of
[I1] to [I4] the LOGO!.
Input [I5]; Activates/deactivates the "Warning signal" function.
[F1]; [F1]: Function button at the LOGO! TDE or the web server.
[M40] [M40]: Signal from KNX button A1 to LOGO! (Table 2-4)
Input [I6]; Activates/deactivates the "Night alarm" function.
[F2]; [F2]: Function button at the LOGO! TDE or the web server.
[M41] [M41]: Signal from KNX button A2 to LOGO! (Table 2-4)
Inputs [I7] and [I8] Lightings (room 1 and room 2)
Additional digital inputs must be implemented for additional
rooms.
Input [I10] Switches on the astronomical clock for the exterior lighting.
[I12] Backup switch, in case one KNX button (possibly KNX design
and [M50] button) is non-existent.
KNX button C1 is connected via flag [M50]. (Table 2-4)
Siemens AG 2017 All rights reserved
1 2 3
Siemens AG 2017 All rights reserved
Note A configuration mode for individual block parameters is offered for specific
function blocks.
A detailed description can be found in the LOGO! 8 manual in chapter:
8.1 "Switching to parameterization mode".
Manual: https://support.industry.siemens.com/cs/ww/en/view/100761780
5 Appendix
5.1 Service and Support
Industry Online Support
Do you have any questions or need support?
Siemens Industry Online Support offers access to our entire service and support
know-how as well as to our services.
Siemens Industry Online Support is the central address for information on our
products, solutions and services.
Product information, manuals, downloads, FAQs and application examples – all
information is accessible with just a few mouse clicks at:
https://support.industry.siemens.com/
Technical Support
Siemens Industry's Technical Support offers quick and competent support
regarding all technical queries with numerous tailor-made offers – from basic
support to individual support contracts.
Please address your requests to the Technical Support via the web form:
www.siemens.com/industry/supportrequest
Service offer
Siemens AG 2017 All rights reserved
Our service offer comprises, among other things, the following services:
Product Training
Plant Data Services
Spare Parts Services
Repair Services
On Site and Maintenance Services
Retrofit & Modernization Services
Service Programs and Agreements
Detailed information on our service offer is available in the Service Catalog:
https://support.industry.siemens.com/cs/sc