Connecting an EnOcean radio sensor to the WAGO-I/O-SYSTEM
Application notes
Last revision: 15.05.07
2 • General
Copyright © 2007 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved
WAGO Kontakttechnik GmbH & Co. KG Hansastraße 27
D-32423 Minden
Phone: +49 (0) 571/8 87 – 0 Fax: +49 (0) 571/8 87 – 1 69 E-Mail: info@wago.com
Web: http://www.wago.com
Technical Support Tel.: +49 (0) 571/8 87 – 777 Fax: +49 (0) 571/8 87 – 8777 E-Mail: tcba@wago.comT
Every conceivable measure has been taken to ensure the correctness and completeness of this documentation. However, as errors can never be fully excluded we would appreciate any information or suggestions.
We wish to point out that the software and hardware names and the
Contents • 3
LIST OF CONTENTS
1 Important Comments ... 4
1.1 Legal bases... 4
1.1.1 Copyright ... 4
1.1.2 Personnel Qualification... 4
1.1.3 Intended use ... 4
1.2 Range of validity... 5
1.3 Symbols ... 5
2 Description... 6
3 Components ... 6
4 Configuration ... 7
5 Connecting a 2-channel PEHA Easyclick sensor ... 8
5.1 Task... 8
5.2 Program... 8
5.3 Commissioning ... 10
6 Tables ... 11
6.1 Required Libraries ... 11
Application Note
4 • Important Comments
1 Important Comments
To ensure quick installation and start-up of the units described in this manual, we strongly recommend that you carefully read and apply the following instructions and explanations.
1.1 Legal bases
1.1.1 Copyright
This manual, together with all figures and illustrations contained therein, is subject to copyright. Any use of this manual that infringes the copyright provisions stipulated herein is not permitted. Reproduction, translation into other languages as well as electronic and photo-technical archiving and alteration require the written consent of WAGO Kontakttechnik GmbH & Co.
KG. Contravention will result in a claim for compensation.
WAGO Kontakttechnik GmbH & Co. KG reserves the right to make changes that reflect technical progress.
WAGO Kontakttechnik GmbH & Co. KG reserves all rights in relation to a granted patent or protected design. Third-party products are always named without reference to patent rights. The existence of such rights cannot therefore be ruled out.
1.1.2 Personnel Qualification
The instructions for use of the product as described in this manual are exclusively oriented to technicians trained in PLC programming as well as electricians or persons trained by electricians who are also familiar with the current standards. WAGO Kontakttechnik GmbH & Co. KG accepts no liability for improper actions and damage to WAGO products and third party products due to failure to take account of the information contained in this manual.
1.1.3 Intended use
The components for the respective application are supplied ex works with a dedicated hardware and software configuration. Modifications should only be made within the bounds of possibility documented in the manual. All other changes to the hardware and/or software and the improper use of components exclude WAGO Kontakttechnik GmbH & Co. KG from liability.
Should you require an adapted or new hardware or software configuration, please contact WAGO Kontakttechnik GmbH & Co. KG.
Important Comments • 5
1.2 Range of validity
This application note is based on the stated hardware and software of the specific manufacturer as well as the correspondent documentation. This application note is therefore only valid for the described installation.
New hardware and software versions may need to be handled differently.
Please note the detailed description in the specific manuals.
1.3 Symbols
Attention
Marginal conditions that must always be observed to ensure smooth operation.
Note
Routines or advice for efficient use of the device and software optimization.
More information
References to additional literature, manuals, data sheets and INTERNET pages
Application Note
6 • Description
2 Description
Radio telegrams can be received from sensors, which are based on EnOcean technology, using the EnOcean radio receiver 750-642 from the WAGO-I/O- SYSTEM 750.
This manual describes the connection of a 2-channel PEHA Easyclick wall sensor to the WAGO-I/O-SYSTEM using the WAGO-I/O-PRO programming software.
3 Components
Supplier Quantity Description Article No.
WAGO 1 Programmable fieldbus controller 750-8xx WAGO 1 4-channel digital output module 24 V DC 750-504 WAGO 1 Funk receiver module EnOcean 750-642
WAGO 1 RF-antenna 789-910
WAGO 1 Bus end module 750-600
WAGO 1 WAGO-I/O-PRO CAA 759-333
PEHA 2 Easyclick sensor 2-channel 372713 Optional:
WAGO Communication cable 750-920
Note
The node structure described is only an example how to receive an EnOcean telegram with the WAGO I/O SYSTEM. The modules may be exchanged as required by the respective application.
Configuration • 7
4 Configuration
Fig. 4.1 WAGO-I/O-SYSTEM with Enocean radio receiver
Ethernet Cross-Over Kabel
750-504 e.g. Ethernet fieldbus-
controller 750-841
750-600 750-642
Note
For the visualization of the WAGO-I/O-PRO CAA, a connection between the PC and the WAGO fieldbus controller must be established. Depending on the fieldbus controller used, two options are available.
For this, connection is made to the service interface of the fieldbus controller using the communication cable 750-920. For this, connection is made to the service interface of the fieldbus controller using the communication cable 750-920. Ethernet fieldbus controllers also offer the option to establish the connection via the Ethernet interface.
Application Note
8 • Connecting a 2-channel PEHA Easyclick sensor
5 Connecting a 2-channel PEHA Easyclick sensor
5.1 Task
The telegrams from a 2-channel PEHA Easyclick wall sensor are to be evaluated with the help of the WAGO-I/O-SYSTEM. To do this, the PEHA sensor must be installed within receiving range of the WAGO EnOcean 750- 642 radio receiver. A teach-in process with the WAGO 750-642 radio receiver is not necessary. Discrimination between the individual radio sensors is
carried out in the application program. The programming for evaluating radio telegrams in the WAGO-I/O-SYSTEM is described below.
5.2 Program
Figures 5.1 to 5.3 show the basic structure for programming an application with the EnOcean 750-642 radio receiver. A prerequisite for communicating with the 750-642 EnOcean radio receiver terminal is the FbEnoceanReceive function module (Fig. 5.1). The controller recognizes the plugged Enocean modules on its own and counts them one after the other, starting from the left.
To address the function block to the proper Enocean module, the corresponding module index must be entered as a constant.
Any further EnOcean function modules in the program can only be used in conjunction with the FbEnoceanReceive module. The modules are
synchronised by means of the "typEnocean" variable structure, which is provided as an input on all modules in the EnOcean library (Enocean_04.lib).
Fig. 5.1: FbEnocean_Receive module
Connecting a 2-channel PEHA Easyclick sensor • 9
The "FbShow_ID_By_Click" module (Fig. 5.2) is used to determine the sensor transmitter ID. In this example program, the "SEL" operator is only used as an auxiliary function for the visualisation system (Fig. 5.4) to enable the transmitter ID that is read in to be stored in the controller. Normally, the sensor transmitter ID is entered as a constant at the input of function modules.
Fig. 5.2: Determining the transmitter ID
Note
Transmitter IDs are normally specified by the sensor manufacturers in hexadecimal notation. Hexadecimal numbers are entered in the WAGO-I/O- PRO software by entering the base followed by a hash sign.
(Example: 16#4525AA6E)
The FbButton_2_Channel function module (Fig. 5.3) has the task of
converting radio telegrams from individual touch sensors with EnOcean radio technology into Boolean output signals. In our example, these output signals are linked to the addresses of the first digital output terminal (750-504).
Fig. 5.3: Evaluation of radio telegrams from PEHA sensing devices
Application Note
10 • Connecting a 2-channel PEHA Easyclick sensor
5.3 Commissioning
After the program has been loaded into the controller, the function of the application can be checked. This is done by setting up a simple visualisation interface with the WAGO-I/O-PRO software. Each sensor has a unique transmitter ID, which enables it to identify the sender of a radio telegram. The visualisation is used to assign the received transmitter ID on the
FbButton_2_Channel function module.
When the button is pressed, a number appears in the line "Received ID
number". This number corresponds to the transmitter ID of the button pressed.
The ID can then be assigned to the input of the function module by pressing the "LEARN" button. The learned ID number is displayed in the line "Learned ID number". When the assignment has been made, then each subsequent press of the button will be shown in the visualisation by a colour change in the rocker.
Tables • 11
6 Tables
6.1 Required Libraries
Column heading
Enocean_04.lib Application modules for the EnOcean radio receiver
Standard.lib Standard functions
mod_com.lib Indicates the module position
Application Note
WAGO Kontakttechnik GmbH & Co. KG P.O. Box 2880 • D-32385 Minden Hansastraße 27 • D-32423 Minden Phone: +49 5 71/8 87 – 0 Fax: +49 5 71/8 87 – 1 69 E-Mail: info@wago.com