background image

Programming - First steps

P. 

48 of 349

Time control

Motion detector

Thus our application program is:

[ETS-ESF]
// The exported ESF-Data from the ets
EibPC/Haus.esf
[EibPC]
if (systemstart()) then

 

     \\

MotionDetector=AUS;        \\
read("Switch-1/0/0") ;            \\
write("Lamp-1/1/1",AUS);       \\
write("Dimmer-1/1/2"u08,0%)   \\

           endif

// Variables
Switch="Switch-1/0/0"
MotionDetector=“MotionDetector-1/2/0“
Dimmer=100%
// The switch
if (Switch==ON)  then                                    \\

write("Lamp-1/1/1",EIN);             \\
write("Dimmer-1/1/1",EIN);            \\
write("DimmerValue-1/1/2",100%) \\
endif  

if (Switch==OFF) then                                \\

write("Lamp-1/1/1",AUS);       \\
write("Dimmer-1/1/2"u08,0%)   \\
endif

// Motion detector
if (htime(20,00,00)) and (Switch==OFF) then Dimmer=50% endif  
if (htime(23,00,00)) and (Switch==OFF) then Dimmer=30% endif  
if (htime(03,00,00)) and (Switch==OFF) then Dimmer=10% endif  
if (htime(07,30,00)) and (Switch==OFF) then Dimmer=100% endif  

if  (MotionDetector==EIN) and (Switch==OFF) then write("Dimmer-1/1/1",EIN); write("DimmerValue-1/1/2",Dimmer) endif   
if  (MotionDetector==AUS) and (Switch==OFF) then write("Dimmer-1/1/1",AUS) endif   

HandbuchEibPC_USA-30.odt, 2017-05-11

Enertex

®

 Bayern GmbH - Erlachstraße 13 -  91301 Forchheim - [email protected]

Summary of Contents for EibPC

Page 1: ... document may not be reproduced transferred distributed or stored in any form either in whole or in part Enertex is a registered trademark of Enertex Bayern GmbH Other product and company names mentioned in this manual may be trademarks or trade names of their respective owners This manual may be changed without notice or announcement and makes no claim to completeness or correctness ...

Page 2: ...gure the Interface 22 The further structure of the manual 23 Functional block 23 Introduction programming 23 Complete description of the Enertex EibPC 23 Self defined functional blocks 23 Using pre assembled functional blocks 24 Macros Functional blocks 24 Standards 24 Staircase lighting 25 Shading of a house 28 Visualization with the iPhone 30 Programming First steps 32 Five steps to create a pro...

Page 3: ...r 75 Single page version 75 Multiple page version 79 Detailed web server example 86 Programming for experts 101 Performance 101 Cycletime 101 Timerstop 102 Queue 103 Command Fusion 103 Presence state machine 103 Presence simulation 104 Useful 108 Encoding at C14 108 String concatenation with different length 109 FTP Data streams 110 Use of own Html code and graphics on the Web server 112 Weboutput...

Page 4: ...P Replacement 136 Fixed IP 136 Save and open the network settings 137 DNS server 137 Factory settings 137 E Mail settings Option NP 137 Configuration of the KNXTM Interface 138 KNXTM bus errors 139 The bus monitor of the Enertex EibPC 140 Connection status feedback 140 Two bus monitors 140 Save bus data 140 Current bus communication 140 Autolog 141 Filter with wildcards 141 Directly Storing on a F...

Page 5: ...ng to the KNX bus 162 Assigning variables and group address Reading from the KNX bus 162 Writing to the KNX bus write 164 Read request of a group address read 165 Initialize Groupaddresses 166 Using the InitGA Section 166 Initga 167 Bus Activity 168 Event 168 EventRead 169 Eventresponse 169 Eventwrite 169 Writersponse 169 Scene actuators 169 Commands and functions 170 Logical operators 170 AND lin...

Page 6: ...Sun Day or night 184 Azimuth 184 Elevation 185 Presun 185 Sunrisehour hour at sunrise 186 Sunriseminute minute at sunrise 186 Sunsethour hour at sunset 186 Sunsetminute minute at sunset 186 Time switch 187 Basics 187 Weekly time switch 187 Daily time switch 187 Hourly time switch 188 Minute time switch 188 Comparator time switches 189 Basics 189 Weekly comparator time switch 189 Daily comparator t...

Page 7: ... Elog 209 Elognum 210 Eval 211 Processingtime 211 System start 213 End of program 213 Random random number 213 Sleep passive mode 214 Eibtelegramm 215 Lighting scenes 217 Scene actuator scene 217 Presetscene 217 Store a scene storescene 218 Recall a scene callscene 219 Stringfunctions 220 Concatenate 220 Find 220 Stringcast 221 Stringset 221 String format 223 Split 225 Size 225 Capacity 226 Tostri...

Page 8: ...l 243 VPN Server 244 Startvpn 244 Stopvpn 245 Openvpnuser 246 Closevpnuser 246 Web server functions 247 Button Webbutton 247 Chart Webchart 247 Display Webdisplay 248 Getslider 249 Getpslider 249 Geteslider 249 Getpeslider 249 link 250 Mbutton 250 Mchart 251 Mpchart 252 Mpbutton 252 Plink 253 Setpeslider 254 Timebufferconfig 254 Timebufferadd 254 Timebufferclear 255 Timebufferstore 256 Timebufferr...

Page 9: ...r 280 Picture 281 Mpchart 281 Pchart 281 Slider 282 Pslider 282 Eslider 282 FTP Funktionen 283 Ftpconfig 283 Sendftp 283 Ftpstate 284 Ftptimeout 284 Ftpbuffer 284 Flushftp 284 Webinput 285 weboutput 285 Peslider 286 Page 286 User 286 Line 287 Header 287 Footer 287 None 287 Plink 288 Link 288 Frame 288 Dframe 288 Section WebServer 289 Initialization 290 Web icons 291 Behavior of the web server at u...

Page 10: ...41 Problems and solutions 344 Changelog 345 Version 30 from Patch 3 100 EibStudio 3 103 345 Version 26 Patches 3 0xx EibStudio 3 0xx 345 Version 24 Patches 3 0xx EibStudio 3 0xx 345 Version 22 Patches 2 303 EibStudio 2 305 346 Version 21 Patches 2 30x EibStudio 2 30x 347 Version 19 Patches 2 10x EibStudio 2 10x 347 Version 17 Firmware 2 00x Patches 2 00x EibStudio 2 00x 347 Version 15 Firmware 1 3...

Page 11: ...anual damages of the device fire or other dangers could appear This manual is part of the product and has to remain at the end user This device may not be used for applications with risk potential failure potential fault of the time switch etc At the purchase of the Enertex EibPC you gain a license for using this program The Enertex EibStudio and all independently running components may only be us...

Page 12: ...of the conservatory Within the KNX network the Enertex EibPC realizes the functionality of Scene actuators Conditional instructions if then Timers Time and date emitters synchronized via LAN KNXTM or Enertex Eibstudio Highly accurate timers in the ms range Controls with any structure Evaluation of mathematical expressions Delay elements Combination of KNX objects gates multiplexers Control of actu...

Page 13: ...ered telegrams in files FTP The Enertex EibPC can store telegram data on a arbitrary FTP server Enertex EibStudio evaluates this binary and exports it into readable CSV text By means of the Enertex EibStudio as a configuration program a home automation is provided via the LAN interface of the Enertex EibPC to a Windows Mac OS X or Linux PC This ensures that the Enertex EibPC can be programmed easi...

Page 14: ...wing FT1 2 interfaces are tested EIBMarkt IF RS232 you need to switch to the FT1 2 mode Siemens N148 04 5WG1 148 1AB04 you need to switch to the FT 1 2 mode Gira RS232 UP 0504xx BA 064500 Basically FT1 2 able are Siemens UP 146 Z1 for FT 1 2 5WG1 146 2AB11 Z1 BA UP 114 5WG1 114 2AB02 Berker RS 232 Data interface FT 1 2 750601xx BA Up 2 0 75040002 The following interfaces are surely improper ABB EA...

Page 15: ...available In this respect the Enertex KNXNet IP Router is the best supplement to the Enertex EibPC because it can be time synchronized after an electrical power failure without internet connection The Enertex KNXNet IP Router allows furthermore the connection with a Telnet Server which keeps further information for the bus transport The KNXnet IP Router is powered via Power over Ethernet or via an...

Page 16: ...age power supply only for the Enertex EibPC When the EibPC is starting the RS 232 interface must be already connected to the switched on bus To ensure this proceed as follows 1 Wiring as described above 2 Connect the interface to the switched on bus 3 Restart the Enertex EibPC by the EibStudio or simply interrupt the Enertex EibPC s power supply 4 If you are using an FT1 2 RS 232 interface When th...

Page 17: ...y and the boot process is started 2 Approximately four minutes after the start the green LED blinks every second with equal on and off times Only during this phase a reset is possible see below 3 Shortly after this phase the RS 232 interface is initialized A few short pulses can be seen here at the LED 4 If a telegram is triggered on the bus KNX switches etc a short pulse sequence is visible at th...

Page 18: ...for 3 seconds Only during this 3s phase the reset button is active By pressing the reset the following is triggered 1 Reset to factory settings of the network configurations 2 Deletion of the application program 3 Deletion the data of the solar altitude The pin out of the RS 232 interface of the Enertex EibPC corresponds to the standard EIA 232 Use the supplied cable for the communication of the E...

Page 19: ...software Enertex EibStudio is simply started by double clicking There is no installation in the conventional sense For example Enertex EibStudio does not edit the Windows registry Figure 1 Configuration of Windows Firewall Important An active firewall possibly presents the communication between the Enertex EibStudio and the Enertex EibPC When you query the IP address of your EibPC for the first ti...

Page 20: ... server on the network this DHCP server assigns the Enertex EibPC the IP address If your Enertex EibPC doesnot find any DHCP server it assigns itself an IP address after booting This can be useful if the Enertex EibPC is directly connected to the PC In this case however at least a LAN crossover cable between the PC and the Enertex EibPC is necessary When you click the button Automatic the address ...

Page 21: ... to the Enertex EibPC In case of an IP interface please note the commissioning instruction on page 15 and the following and enter the relevant data of the interface into the above configuration wizard The interface is accessed and activated only after the transfer and the subsequent start of an application program The Enertex EibPC uses the so called tunneling mode of the IP interface Thereby it i...

Page 22: ...fferent applications If you want to exhaust all possibilities of Enertex EibPC we recommend the section Step by Step to read From page 32 on programming the Enertex EibPC is presented in the form of a step by step introduction You will be able to exploit completely the possibilities of the Enertex EibPC The programming is simple and consistent The manual does not require any programming knowledge ...

Page 23: ...exTimeswitchesV2 lib Timeswitches EnertexFlash lib Lonh term storage of data in the internal flash EnertexScenes lib Easy to use scene macros EnertexPhyMonitor lib Physicalliy Monitoring of KNX devices EnertexPresence lib Presence simulation with the Enertex EibPC EnertexSqueezebox lib Controlling a Logitech Sequeezebox EnertexRussound lib Controlling a Multiroom Audio System Russound EnertexCodin...

Page 24: ...00 then seconds the installation is depicted by in Figure 1 EibPC EibPC RS 232 Switch 1 0 0 Lamp binary 1 1 1 KNX bus Figure 1 Block diagram staircase lighting First you run the Enertex EibStudio When you call Enertex EibStudio for the first time you will be guided through the setup procedure Then a window appears as shown in Figure 2 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachs...

Page 25: ...necessary information for your program is stored here The ESF file of the project is imported by clicking on the highlighted button from Figure 2 You can recognize that the import was successful because the addresses appear in the left window addresses of Figure 3 For more details e g how to create a ESF file within the ETS see page 144 Figure 3 ESF Import HandbuchEibPC_USA 30 odt 2017 05 11 Enert...

Page 26: ...xample the two addresses switch and lamp which are displayed with the physical address as an addition in the name Figure 4 Workspace Enertex EibStudio Now select PROGRAM MACRO the staircase lighting You will see a parameter dialog Now you can fill this according to your specifications Your project should now be completed as shown in Figure 1 Click on the highlighted button to transfer your program...

Page 27: ...outh 2 5 2 East WindowEast 2 5 1 East WindowEast 2 5 1 West WindowWest 2 5 3 West WindowWest 2 5 3 Figure 6 A house with three windows on the right the allocation of the group addresses within the ETS If you have set up the project as shown in the above figure with the ets export the group addresses out of the ets and by means of the OPC server file data exchange Then you start the Enertex EibStud...

Page 28: ...ed button of Figure 7 In this case a dialog opens and you can add libraries Choose EnertexBeschattung lib in the download area of www eibpc com Subsequently the macros are shown which are stored in the library cf Figure 9 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 29: ...de you will find a link to the freely available design based on the design of the Enertex Bayern GmbH Appropriate macros for the connection are pre defined in the library EnertexCommandFusion lib The application of the macros is as shown recently However the handling of Command Fusion and the required background knowledge are not content of this manual At www knx user forum de you will find furthe...

Page 30: ... can enter and modify the data directly in the text window of the user program instead of working with the wizard Note 2 The solar altitude depends on the location of the house The defaults are set roughly corresponding to the middle of Germany You can change these settings according to your actual location by changing the installation location inside of the menu OPTIONS SETUP COORDINATES FOR CALC...

Page 31: ...tex EibPC Together with the Enertex EibPC you purchase a license to use this program The Enertex EibStudio and all components may be used only in conjunction with the Enertex EibPC Application programs can be conveniently created modified and maintained by the Enertex EibStudio By pressing a button the file is translated compiled by an integrated compiler the so called Enertex EibParser and sent t...

Page 32: ... to the bus As simple a task this may seem Without automation it is not solvable Perhaps you think at this example also of scene actuators We will get down to this later By means of the Enertex EibPC this task is simple to solve We presume you have the documentation of the KNX network at hand so you know which actuator is configured with which address but you have no access to the ets or the origi...

Page 33: ...endif If the query condition is met the statement is executed once in the then branch Thus the if statement only reacts to changes More about that this in this introduction It can also be executed multiple statements as a block In this case the instructions are separated by semicolons After the last statement there is not a semicolon A query condition is considered to be fulfilled if it takes the ...

Page 34: ... telegramms Other data types can be found on page 153 or later in this step by step instructions The data type is compatible with the data type u08 and will be internally adjusted by scaling whereas the data type can be specified in tenths of a percent accuracy 100 internally corresponds to a value of 255 Now we return to expression 1 0 0 b01 ON The two equal signs are responsible for the comparis...

Page 35: ...tion etc are also processed there are so called sections within the user program These are characterized by a name in brackets A section starts with its name and ends with the beginning of the next section or the end of the file More information about the sections can also be found on page 125 Figure 5 Download ets Export File The path to the file appears in the section ETS ESF Now Enertex EibStud...

Page 36: ...nction this means that the first argument the group address must have the same data type as the second in the example of the percentage Thus the data type of the group address is indirectly specified by using the write function We call this approach an implicit conversion see page 153 The compiler knows the data types return values and objectives of functions e g the data type of the 1st argument ...

Page 37: ...nertex EibStudio always processes statements line by line Therefore once again urgently A statement must not be interrupted by a line break To make clear more instructions by several lines use two backslash characters as wrapping Thus we can write our program a little clearer Furthermore we simplify by the help of the else branch EibPC if Switch 1 0 0 ON then write Lamp 1 1 1 ON write Dimmer 1 1 2...

Page 38: ...igned integer The compiler notices this fact and returns an error You can comment your programming There are two possibilities 1 Comments begin with and are at the beginning of a line 2 Instead of a statement comments can be inserted at any point semi colon are sensitive which are surrounded by e g This is a comment u 5 This is second in the comment u4 5 Congratulations Now you have already unders...

Page 39: ...r to receive the effective actuator response the read flag has to be set within the ets Now to the actual program ETS ESF Haus esf EibPC if systemstart then read Switch 1 0 0 endif if Switch 1 0 0 EIN then write Lamp 1 1 1 EIN write Dimmer 1 1 2 u08 80 else write Lamp 1 1 1 AUS write Dimmer 1 1 2 u08 0 endif The read request will be now set at system startup The actuator sends its value Then in th...

Page 40: ...r 1 1 2 u08 80 else write Lamp 1 1 1 OFF write Dimmer 1 1 2 u08 0 endif Also this program must be transferred to the EibPC If you need to read more group addresses you can use the InitGA section as described at p 166 In this case the reads of the group addresses in this section have been read before the program is processed ETS ESF EibPc Haus esf InitGA Switch 1 0 0 EibPC if systemstart then write...

Page 41: ...us as expected an ON is not sent once again Suppose we have an installation as in Figure 7 If the closing switch ON is pressed the lamp should turn on and the dimmer is to go to 80 When the switch is OFF the lights will go out EibPC EibPC RS 232 ON switch 1 0 0 Lamp binary 1 1 1 Dimmer Percent 1 1 2 KNX Bus OFF Switch 1 0 1 Figure 7 Block diagram of Power On and Off If activated our ON switch will...

Page 42: ... event ON Switch 1 0 0 and ON Switch 1 0 0 ON then write Lamp 1 1 1 ON write Dimmer 1 1 2 u08 80 endif if event OFF Switch 1 0 1 and OFF Switch 1 0 1 OFF then write Lamp 1 1 1 OFF write Dimmer 1 1 2 u08 0 endif We still use the and function AND It links the two conditions of the if statement More logical links can be found on page 170 or in the further course of this introduction The ANDing is nec...

Page 43: ...the motion detector sends an ON telegram the dimmer is to go to 50 of its luminosity Before we go further on with the implementation we show an important element of programming variables Variables are placeholders for numbers values and telegrams In the Enertex EibStudio you can define a variable in several manners see page 158 Again one definition per line has to be used 1 Variable Value 2 Variab...

Page 44: ...r 1 2 0 if Detector then DimmVar 30 endif In the following user program the variable is set to the value of the group address 5 8 1 at the first run When the motion detector sends ON 1b01 to the group address 1 2 0 then DimmVar is set to 30 When the Enertex EibPC receives the next telegram and the value in the telegram is different from the current value DimmVar is set to the new value containing ...

Page 45: ...ch OFF or MotionDetector OFF then write Dimmer 1 1 1 OFF write Lamp 1 1 1 OFF endif In this example the or function is used It allows ORing logically different actuators i e if the variable Switch is ON or variable MotionSensor is ON or both are ON the if statement is true and thus the then branch is executed The and function combines the the two conditions with AND You can compare larger smaller ...

Page 46: ... the switch is active the motion is to be disabled If the motion detector sends an ON telegram the dimmer should go to 50 of its luminosity if it is after 20 00 Clock 30 of its luminosity if it is after 23 00 Clock 10 of its luminosity if it is after 3 00 Clock 100 of its luminosity if it is after 7 30 Clock With our previous considerations in mind you can do this almost without help But you shoul...

Page 47: ...EIN write DimmerValue 1 1 2 100 endif if Switch OFF then write Lamp 1 1 1 AUS write Dimmer 1 1 2 u08 0 endif Motion detector if htime 20 00 00 and Switch OFF then Dimmer 50 endif if htime 23 00 00 and Switch OFF then Dimmer 30 endif if htime 03 00 00 and Switch OFF then Dimmer 10 endif if htime 07 30 00 and Switch OFF then Dimmer 100 endif if MotionDetector EIN and Switch OFF then write Dimmer 1 1...

Page 48: ...ponds the dimming actuator will adopt this value But it could be that the commissioning transfer of the user program takes place at e g 20 00 01 Since htime performs an exact time comparison and thus the corresponding if statement is only executed when the specified time is reached the Dimmer is not changed By using of the debugger Figure 11 request the value of the variable Dimmer With our just m...

Page 49: ...up address 1 0 1 is set to OFF the switch ON will be ignored A simple task ETS ESF EibPC Haus esf EibPC if systemstart then read Switch 1 0 0 read ReleaseSwitch 1 0 1 endif if Switch 1 0 0 EIN and ReleaseSwitch 1 0 1 ON then write Lamp 1 1 1 ON write Dimmer 1 1 2 u08 80 else write Lamp 1 1 1 OFF write Dimmer 1 1 2 u08 0 endif if statements can be nested You might be of the opinion to proceed as fo...

Page 50: ...n this case the lamp and the dimmer are switched on or off whichever value was sent via the group address Switch 1 0 0 If now ReleaseSwitch 1 0 1 is still ON the group address Switch 1 0 0 changes no further telegram is triggered because the condition of the outer if statement does not change also see comments on page 43 The mapping of states of received telegrams is called validation scheme It ma...

Page 51: ...hould be arbitrary the light shall turn on and automatically turn off again after three minutes The sum of the switching processes already made will be shown on KNX display element Variation 1 At re pressing the switch during the 3 minutes turn on time the timer switch shall not restart Variation 2 At re pressing the switch during the 3 minutes turn on time the timer switch shall restart First we ...

Page 52: ... of 1 ms after Variable Type b01 Time in ms Type u64 The precision timer expects a variable or an expression of binary type data type b01 data types see also page 35 and 151 and the following as the first argument The function after delays the input ON and OFF for the time specified in the second argument The return value is also ON or OFF This can be quite clearly represented graphically by Figur...

Page 53: ...ue which is stored in Variable1 but is converted into the type of Variable2 The value of Variable2 is ignored it is only used to determine the new data types For example a binary value can be converted into an 8 bit unsigned number by convert a 1 2 2 b01 b convert a 1u08 In this example we increase the variable numerator within the then branch at each switching cycle of the lamp Counter Counter 1u...

Page 54: ... we have to interlock the event function in the if statement Another useful feature is the sun function It returns the value ON 1b01 when the sun rises or OFF 0b01 if it is set see also pages 184 and 150 Turning to Variant 2 For the light circuit the timer is to be restarted again it the light switch is pressed again Therefore we need delay Signal Type b01 Time in ms Type u64 The delay function re...

Page 55: ... then write 1 1 1 b01 AUS SwitchingOperation OFF write 1 2 2 c14 convert Counter EmptyString endif At this point please note again The number of delay timers used in the program is not limited This function can be used repeatedly For each called delay function a new object is created Therefore the delay functions do not limit each other in use This is always true and also for all other functions w...

Page 56: ...splayBirth Alex c14 Birthday ON endif if month 15 01 then DisplayBirth Martin c14 Birthday ON endif if month 21 02 then DisplayBirth Jürgen c14 Birthday ON endif Reset short of switching if htime 23 59 59 then Birthday OFF endif Here is the output of the time if change DisplayOnline and Birthday then write HallText 0 2 1 c14 DisplayOnline endif if systemstart then write HallText 0 2 1 c14 DisplayO...

Page 57: ...ude and Latitude of the installation location 11 083333333333334 49 45 Macros Macros ShadingRolloEastTime ShadeRelease Window East 2 5 1 Window East 2 5 1 5000 ShadingRolloSouthTime ShadePassing WindowSouth 2 5 2 WindowSouthStop 2 5 5 4500 ShadingRolloWestTime ShadePassing WindowWest 2 5 3 WindowWestStop 2 5 6 4000 MacroLibs Macro Libraries EnertexBeschattung lib ETS ESF From the ets exported ESF ...

Page 58: ...ve humidity T Temperature in C TD dew point temperature in C DD vapor pressure in hPa SDD saturation vapor pressure in hPa Parameters a 7 5 b 237 3 for Temperature 0 Formulas TD r T b v a v with v r T log10 DD r T 6 1078 DD r T r 100 SDD T SDD T 6 1078 10 a T b T The implementation is then a 7 5f32 b 237 3f32 r SensorHumidity 1 0 2 T SensorTemperature 1 0 3 SDDT 6 1078f32 pow 10f32 a T b T DDrT r ...

Page 59: ... data tabularly The individual data are separated by commas Then you can import the data into Microsoft Excel or OpenOffice Calc or into a spreadsheet program of your choice Figure 17 Import of recording data in OpenOffice In Microsoft Excel select the submenu IMPORT within the dialog DATA In the following best choose the format described as text and the text label as no Additionally the current b...

Page 60: ...ted Figure 21 The filter acts both to messages in the message window as well as when saving messages to a CSV file Figure 21 Filter display in the bottom right of the status display right picture Filter enabled You have the option of using wildcards If the last entry for the target is written 1 1 2 3 all group addresses 1 1 203 1 1 213 1 1 293 are filtered out You can use any number of wildcards Y...

Page 61: ...d to a scene actuator and a scene function respectively is arbitrary The scene actuator can store 64 different scenarios Values 0 to 63 By the GroupAddress SceneBlock 8 bit unsigned these scenario numbers 0u08 until 63u08 are stored and retrieved by their appropriate actuators As usual the actuators and switches have to be programmed in the ets By the scene function this task is easily solved as f...

Page 62: ... as to an external scene module presetscene can be used to pre configure a scene p 217 Finally a small goody Suppose the switch of your KNX network Figure 22 can only supply binary messages You have programmed your system so that the OFF telegram already switches off all lights Now when you press ON the scene with number 1 is to be called i e a bit is now only sent to group address 1 0 0 But you w...

Page 63: ...er via a UDP telegram Then the music player sends a string Play Music Title to port 4806 in which Title is the currently playing track The Enertex EibPC shall write the title to the KNX display After playing 10 titles the Enertex EibPC shall send an e mail containing the 10 played titles concatenated separated by space characters to EibPC enertex de Subject of the mail A Hello from EIBPC Then it s...

Page 64: ...onfiguration Eibpc gmx de smtp gmx de eibpc web de Supermollycoddle 1 EibPC Init Saving of Title Title if delay systemstart 10000u64 then write 1 0 0 b01 EIN endif if 1 0 0 b01 then write 1 0 1 b01 EIN Title TitleNr 0 endif Transmission of Start Music if delay 1 0 1 b01 4000u64 then sendudp 3807u16 192 168 22 25 Start Music endif Strings for processing StringPlayer KNXTitle c14 TitleNr 0 Port 0u16...

Page 65: ...on resolve String c1400 For example in this case you can also use an expression of the form sendudp 3807u16 resolve www enertex HomeMusicPlayer de Start Music The sendudp function can handle arbitrary data formats Therefore you are not restricted to the use of c1400 strings as in this example However more on that later The counterpart to the sending of a UDP telegram is its reception For this purp...

Page 66: ...the position of the SearchString By the variable Occur the preceding matches could be skipped Pos find Hello Welt Hello Hello 1u16 Then in this example Pos is reserved with the value 12u16 If the find function cannot find anything then it returns the value 65535u16 For this value the built in constant EOS end of string can be used Back to the example Now the character strings of the UDP telegram c...

Page 67: ...result of the sum of the two numbers shall be sent on the same communication channel The reply message has the same structure and the result shall be sent at the position of the of number1 Command of the response amounts to 1100 If command has a value of 1001 the difference of the two numbers shall be sent on the same communication channel as a floating point number The reply message has the same ...

Page 68: ...ommand2 and FloatingPoint 0f32 then sendudp Port IP 2001u16 sqrt FloatingPoint 0u32 endif Square root does not run because argument is smaller than zero if Command 2001u32 and Command2 and FloatingPoint 0f32 then sendudp Port IP 2001u16 FloatingPoint 1u32 endif With any incoming UDP telegram at port 5220 the function event readudp is temporarily changing from 0b01 to 1b01 Then the telegram types C...

Page 69: ...hen sendudp Port IP 1100u16 Number1 Number2 FloatingPoint Number2 endif Difference back if Command 1001u32 and Telegram then sendudp Port IP 1100u16 Number1 convert Number1 FloatingPoint convert Number2 FloatingPoint Number2 endif Square root if Command 2001u32 and Telegram and FloatingPoint 0f32 then sendudp Port IP 2001u16 sqrt FloatingPoint 0u32 endif Square root if Command 2001u32 and Telegram...

Page 70: ...r data start with the 3rd argument They are arbitrary in number and data type Again holds If your LAN device can be addressed via DNS and a name you can use the function resolve also here readtcp looks into the input buffer of the Enertex EibPC for a received TCP telegram If a TCP telegram is available the arguments of the function but in any case port and IP address are filled with data until the...

Page 71: ...n comfortable be created with the Enertex visualisation assistent With only six steps to your own visu Step 1 Open the assistent Abbildung 28 Aufrufen des Visualisierungsassistenen Step 2 Install floors and rooms Each room gets in the visualisiation an own page Abbildung 29 Seiten anlegen Step 3 Creat rooms individual Each room can be parametrised seperate and fast You can choose various standard ...

Page 72: ...the group address the project has to be loaded into the EibPC program A dialog is leading through the necessary steps Picture 32 Saving and importing the project of visualisation There will be three data applied and per include included in the epc program This could be done by the assistant completely autonomous At the end the actual EnertexWebVx lib has to be loaded in the epc program How to invo...

Page 73: ... transfer because all statuses are requested for the webserver The webserver in the EibPC will be called by the input of the IP in the address line of the browser Picture Webserver Example 33 If you wish to get in deeper into the surface programming please read the following chapter carefully HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 74: ...eb server arranges its elements which have either a predefined single or double length like a checkerboard pattern There is basically the option not to use some fields and to insert dividers The arrangement and configuration of the web elements will be made in the section WebServer Due to the fixed target of built in icons lengths and variables the configuration can be purely text based without gr...

Page 75: ...aximum of ten columns Each line of the configuration corresponds to a row of visualization Thus we are already be able to design the web server But now the question arises How can we respond to the user s input in the user program The attentive reader will already have noticed the numbers in parentheses within the definitions of the elements These are used for the allocation in the application pro...

Page 76: ...es are displayed starting from the left When the end is reached after 47 calls the values are shifted to the left The x axis label is specified by the arguments X1 X2 data type c14 and can be adjusted at runtime Thus our application program reads as follows EibPC Webserver if stime 0 then webdisplay 21 settime CLOCK INACTIVE GREY endif if stime 0 then webdisplay 22 setdate CLOCK INACTIVE GREY endi...

Page 77: ...ime CLOCK INACTIVE GREY endif if stime 0 then webdisplay DateWebID setdate CLOCK INACTIVE GREY endif Please note that here the web server evaluates the variable statically So if the variable ClockWebID changes at runtime the index still refers to the initial value 221 What happens when you click on the buttons The integrated web server is designed in such a way that it immediately responds to pres...

Page 78: ...gn Figure 35 The web server multipage version blue Design Figure 36 The web server multipage version black Design In figures 35 and 36 the two current desgin variations are shown By default the blue version is used HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 79: ...er respectively Besides you have the possibility to embed a graphic from an external source The design of the the header and the footer is identical on every page There exist global and local elements for the visualization Global means that an element can be used on different pages but has been instanced only once Accessing or changing the element via the application program is therefore identical...

Page 80: ...by their appearance global and local elements cannot be distinguished This is true in the same way for all further elements the names of which differ in the prefix p The mbutton constitutes another interesting element Figure 38 To begin with we look at its global variant This element has two control levels 1 The button with symbol display on the left 2 A configurable listbox with up to 255 element...

Page 81: ...To this end we complete our configuration WebServer Page 1 page CentralHeatingRoomPageID Basement Heating button LightID LIGHT All lights button PlugID LIGHT Sockets mbutton mPlugID SWITCH 1 Socket 2 Socket 3 Socket MultiSwitch Page 2 page 2 2nd floor Bedroom button LightID LIGHT All lights button PlugID LIGHT Sockets In this manner we have added the global web element mbutton Similarly we could h...

Page 82: ...the button which shall represent the state of the switching actuator This is achieved as follows if 1 5 1 b01 and mChoice mPlug1 then mText ON mDeco GREEN mState DISPLAY endif if 1 5 1 b01 and mChoice mPlug1 then mText OFF mDeco GREY mState INACTIVE endif if 1 5 2 b01 and mChoice mPlug2 then mText ON mDeco GREEN mState DISPLAY endif if 1 5 2 b01 and mChoice mPlug2 then mText OFF mDeco GREY mState ...

Page 83: ...SliderID LIGHT All dimmers pslider pSliderID LIGHT TV illumination EibPC SliderPageID 3 SliderID 4 pSliderID 5 MySlider getslider SliderID if change MySlider then setslider SliderID MySlider LIGHT INACTIVE endif MypSlider getpslider pSliderID SliderPageID if change MypSlider then setpslider pSliderID MypSlider LIGHT INACTIVE SliderPageID endif Here too the user has to perform the programming of th...

Page 84: ...pchart respectively particularly the visualization options on page 278 At this the design of an XY chart is to be configured as follows mpchart DOUBLE XY Temperature TempID LINE Flow FlowID LINEDOTS OutdoorTemperature OutdoorID COLUMN mpchart DOUBLE XY Temperature TempID LINE The first statement defines a chart which records up to three graphs whereas at the second statement only one graph is reco...

Page 85: ...pages Let s start with the main page which is shown as follows Figure 41 Main page of visualization At the beginning we want to allocate our structure to the programming in the EibStudio this classification is necessary for the functionality of the instructions Basically there are different sections marked with In these sections we will introduce sub points where step by step descriptions variable...

Page 86: ...he menu item Data transfer dialog Figure 42 Data transfer dialog With the possibility to load your own images into the Enertex EibPC you can also use them to create your own display for the header and footer graphics First of all you have to upload the graphics in advance to the Enertex EibPC In our example we set the header and the footer to 0 respectively thus omitting the header and footer as w...

Page 87: ...PageID General WeatherPage design black upload EnertexLogoSilber2 jpg header 0 footer 0 First Line button WINDID WIND Wind in km h pbutton 31 TEMPERATURE Outdoor temperature pshifter 17 TEMPERATURE TEMPERATURE Outer temp Min and Max in C pbutton 5 OKCIRCLE Status HG Second Line pbutton 15 WEATHER Light in Lux button WolkenID WEATHER current weather pshifter 14 WEATHER NIGHT Sunrise and Sunset pbut...

Page 88: ...Outer temp Min and Max in C pbutton 5 OKCIRCLE Status HG Second Line pbutton 15 WEATHER Light in Lux button WolkenID WEATHER current weather pshifter 14 WEATHER NIGHT Sunrise and Sunset pbutton 6 OKCIRCLE Status NG Third Line picture 7 DOUBLE CENTERGRAF Average daily temperatures http wetter tagesschau de import wetter cms vorhersagen img de vs tt_webL jpg none none picture 8 DOUBLE CENTERGRAF 3 D...

Page 89: ...on up to pbutton 1 TEMPERATURE Outdoor temperature pbutton 3 OKCIRCLE Status HG pbutton 6 OKCIRCLE Status NG The ID s 3 and 6 will be used later The pbutton 1 however is to be given a dynamic icon which is colored according to the outside temperature and also indicates this So blue is said to be cold gray for moderate dark red for pleasant warm and red for hot This is achieved by the following fun...

Page 90: ...emperature To give the last display a functionality the following button is missing button WolkenID WEATHER Current weather Here we want to implement a sun exposure dependent lux value display of the current cloudiness It is differentiated in summer time month May to month September and winter time month October to month March since the sun elevation angle elevation and thus the intensity of the i...

Page 91: ...F and Light 14 6 4 20000f16 and delay Light 14 6 4 45000f16 60000u64 then webdisplay WolkenID cloudy WEATHER STATE4 GREY endif if Summer time ON and Rain message 14 6 1 OFF and Light 14 6 4 45000f16 and delay Light 14 6 4 70000f16 60000u64 then webdisplay WolkenID sunny WEATHER DISPLAY GREY endif if Summer time ON and Rain message 14 6 1 OFF and delay Light 14 6 4 70000f16 60000u64 then webdisplay...

Page 92: ...button WolkenID WEATHER Current Weather pshifter 5 WEATHER NIGHT Sunrise and Sunset plink 11 RIGHT StatusNGID To status page Secondary building pbutton 6 OKCIRCLE Status NG Third Line picture 7 DOUBLE CENTERGRAF Average daily temperatures http wetter tagesschau de import wetter cms vorhersagen img de vs tt_webL jpg none none picture 8 DOUBLE CENTERGRAF 3 Day prediction http wetter tagesschau de im...

Page 93: ...is with several or all floors with just one click this can be realized by pressing the main switch in the bottom line between the time and date display The page is now built step by step again and starts as our main page with the integration of the shifter and plinks This will give them their functionality and design flare In order to ensure the functionality however you should before build up you...

Page 94: ...e each floor switch consists of a variable which can be true or false type b01 The variable is written by the status group addresses of the lamps and is true as soon as a light is on in a room For example If Status_Room1 OFF or Status_Room2 OFF or Status_Room 3 OFF then the variable Licht_Erdgeschoss should be set to ON otherwise set to ON In the EibStudio this is then implemented for all desired ...

Page 95: ...else pdisplay 10 Window close WINDOW INACTIVE GREY StatusID endif In order to be able to switch all floors or the complete main building a group address must be created in the ETS which switches all desired lamps This is then inserted into the macro ShiftShifterAUSLocal Now you can switch the building with one click To adjust the icon we use pdisplay and represent it depending on the condition Eib...

Page 96: ... provides the data you want to implement If everything fits the data can now be displayed using a button or shifter Example Webserver page WeatherPageID General Weather page 2 design black header 0 footer 0 button WINDID WIND Wind in km h pbutton 14 WEATHER Weather pbutton 25 WEATHER Rain probability pbutton 24 RAIN humidity pbutton 12 TEMPERATURE Outer temp Min pbutton 13 TEMPERATURE Outer temp M...

Page 97: ...erstore ChartBufferID timebufferread ChartBufferID are created for this task timebufferstore permanently stores the values of the timebuffer with the ChartBufferID into the flash memory of the Enertex EibPC timebufferread reads back a stored buffer button ELEVATION WEATHER Height angle in button SunAltitude UP Altitude of sun button AZIMUTH WEATHER AZIMUTH pbutton 23 CLOCK Highest altitude of sun ...

Page 98: ...display Altitude of sun is rising UP BRIGHTRED BLINKRED endif if change elevation and azimuth 175f32 and elevation 185f32 then webdisplay Altitude of sun Sun in zenith WEATHER BRIGHTRED BLINKRED endif if change elevation and azimuth 185f32 and elevation 0f32 then webdisplay Altitude of sun is sinking DOWN ACTIVE BLINKBLUE endif if change elevation and azimuth 185f32 and elevation 0f32 then webdisp...

Page 99: ...RL12 endif With this code every five minutes the radar image is refreshed but the URLs are still missing For this we need the URL of the graphic which is returned at 09 45 as follows The numbers marked in bold are responsible for the date italicized and underlined indicates the time http www wetteronline de pid p_radar_map ireq true src radar vermarktung p_radar_map wom 2014 09 30 Intensity BAY gr...

Page 100: ... each cycle from the beginning of the trigger pulse of variable while the remaining time variable while the remaining time 3 argument is updated as countdown timer The initial value of variable is max The change of remaining time is always at exactly the time at which the processing is active in one cycle The chance of remaining time is thus the sum of the aforementioned deadtime plus the processi...

Page 101: ...ables to this store Zähler 1 RestZeit1 0u64 RestZeit2 0u64 if afterc systemstart 10000u64 Restzeit1 then write 1 2 3 c14 Timer1 c14 endif if afterc systemstart 13000u64 Restzeit2 then write 1 2 3 c14 Timer2 c14 endif The same applies to the function delayc TriggerVariable Typ b01 Max Typ u64 RemaingTimest Typ u64 whose timer just like delay through every change of the TriggerVariable 1 argument fr...

Page 102: ...the other participants 5 Perform various KNX actions on the bus Each of these conditions is at least in principle independently of the other i e the EibPC has to accept data while e g KNX telegrams arrive In addition various states can triggering each other respectively the arrival of a KNX telegram encourage the data processing On http knx user forum de special Enertex EibPC and Command Fusion is...

Page 103: ...d3 Spätmodus if TFrueh and sun then FreigabeVar Anwesenheit 8 1 1 endif Especially here is the use of variable TFrueh This is realized via a link from one timer at midnight and a second at noon This is ensures that TFrueh is set at 0 00 clock to ON and from the afternoon to OFF The macro collection includes macros for presence simulation The basis concept of these macros is to be explained in the ...

Page 104: ...l of a telegram as follows if event readrawknx Sim_Kontroll Sim_Sender Sim_GA Sim_IsGa Sim_RoutingCnt Sim_Len Sim_Data then It should be noted that the group address Sim_GA is calculated as 16 bit value In order to compare this address with the usual spelling is the function getaddress at your disposal In the following example MeinGA getaddress Licht 1 2 3 there is now MeinGA the 16 bit value whic...

Page 105: ...on there gives the target data type conversion on which specifies the number of bytes and defines the conversion to the result X Based on Picture 1 it is explained The graphic shows the string as byte arrangement At position 3 u16 the value is hexadecimal 0x74 0x10 0xXX 0xXX 0x74 0xA0 0xXX 0x10 0x01 0xXX 0xXX 0xXX 0xE1 3u16 4u16 5u16 6u16 0xXX 0xXX Picture 1 String src as arrayfield A statement Z1...

Page 106: ...ing GA is to be recorded Sim_MyGA at ON thus the data in the string Data and die group address in the string Recoder are saved As the group addresses are only 16 bits wide the bit length can saved in the same array at the same time For storing the raw data in one string stringset is used stringset dest cxxxx src pos u16 This function writes into the target string dest on its position of location P...

Page 107: ...on optional ISO8859 1 which itself exists only from 1 byte character comp http de wikipedia org wiki ISO_8859 1 The specification of the string in the Enertex EibStudio follows the coding of the operating system so that e g Windows XP German version the character MASCULINE ORDINAL INDICATOR is handed over as a one byte 0xBA to the parser If you work under OSX 10 6 8 with the Enertex EibStudio so i...

Page 108: ...he concatenation lost because only s3 can max hold 1000 Bytes The following code is to be sonsidered as well s1 Hallo c1000 s2 Welt c1000 s3 c2000 if htime 10 00 00 then s3 s1 s2 endif Again the concatenation is s1 s2 the length of 1000 Bytes as they are composed out of two 1000 byte strings The assignment to the 2000 bytes long s3 ovvurs only after the concatenation However as already the concate...

Page 109: ...e number timeout seconds have elapsed since the last transfer ServerDaten server ftp enertex de user enertex password enertex path KNX Telegramme Timeout in Sekunden timeout 900u32 FTP Queue anlegen Wenn Handle ungleich Null dann ist das fehlerfrei gelungen Handle ftpConfig server user password path timeout During operation the data must now be written into the buffer Therefore sendftp handle data...

Page 110: ... the buffer the second function describes the elapsed time since the last transfer if mtime 0 0 then Füllstand des FTP Buffers buffer ftpbuffer Handle 1u16 Bereits verstrichene Zeit seit dem letzten Transfer in Sekunden timeout ftptimeout Handle endif In addition to the automatic writing of the data to the FTP server the buffer can also be manually emptied flushed with the use of the function flus...

Page 111: ...ID Data is the data written of the field In this case is Data a string with a maximum length of 65534 bytes type c65534 A special feature is that this string can be a valid html code This makes it possible to dynamic formatting and display We are going to describe the both at the outset specified fields so that a website as in Abbildung 2 is created Abbildung 2 Gewünschte Ausgabe For the creation ...

Page 112: ...code section the HTML string is made of substrings by the use of concatenation Signs It is important to ensure that the concatention produces the matching string length The function weboutput can transfer up to 65564 bytes to weboutput element The concatenation consists only of c1400 and one c10000 string The string concatenation reserves for the result the number of bytes such as the longest stri...

Page 113: ...is has been happened with untergang png and aufgang png and sun png Picture 5 Use your own graphics Instead of the external links in header and footer comp p 287 you can now have a reference to the praphics that were saved in the Enertex EibPC link Instead of an external link enter the graphic stored as a path upload filename in the configuration WebServer page 2 Haus Sonnenstand header 2 upload u...

Page 114: ... series The user can scroll left and right in the time series buttons respectively as well as zooming Both operations are applied to all graphs of a mtimechart With the field Δd can be an offset in days for the displayed time series individually adjusted in order e g to compare the consumption data from two time series during the year These control functions are part the EXT diagrams itself so no ...

Page 115: ...ed diagram are automatically updated in the visualization i e it can be represented basically the same time series in different diagrams For example writing every 15 minutes a value in the buffer and indicating the most recent 192 values in our diagram you only need the following code Werte in den Buffer schreiben if mtime 0 0 or mtime 15 0 or mtime 30 0 or mtime 45 0 then timebufferadd ChartBuffe...

Page 116: ... this task comp p 256 timebufferstore sets the values of the timebuffer with the ChartBufferID permanently into the flash memory of the Enertex EibPC timebufferread reads a stored buffer back In addition the values with Enertex EibStudio as described on page 200 to an external device to ensure data can be downloaded and uploaded Thus we store our buffer every 24 h in the following way Wert im Flas...

Page 117: ...artpos TimeChartID ChartIdx ChartBuffer StartPos EndPos mtimechart TimeChartID ChartIdx ChartBuffer StartZeit EndZeit comp p can also be changed by the application program the display similar to the direct value input in Picture 8 of the display area of the art webelements mtimechartpos requires additionally to the ID and the graph index mtimechart the position of the value range of the data in th...

Page 118: ...ist linked to the timebuffer with ID chartbuffer3 WebServer page PageID Log Room5 design black mtimechart TimeChartID LONG 2 255 30 17 256 0 Room1 LEFTGRAF ChartBuffer3 mpshifter SelectID 2011 2012 2013 DATE Room1 pshifter ClockID CLOCK Aktuelle Uhrzeit We define three time series time buffer MemTyp 1 Len 30640u16 Datatyp 3 3f16 timebufferconfig ChartBuffer0 MemTyp Len RkWohnzimmerTemp 3 1 28 time...

Page 119: ... GREY PageID 2 endif if mpbutton SelectID 3 PageID 255 then mtimechartpos TimeChartID 0 ChartBuffer2 0u16 30639u16 pdisplay SelectID Es wird 2013 dargestellt DATE DISPLAY GREY PageID 3 endif It can be seen how the graph with index 0 of the mtimechart is diverted to the different time buffer via ID We fall back to the function mtimechartpos which links the year chart buffer each with the graph 0 Ev...

Page 120: ... true and then another telegram would be initiated This is not intended of course The tasks are 1 Real time The whole program shall be processed in one cycle 2 Multithreading Each statement shall be processed in one cycle 3 Easy programming The first steps when programming the user shall rapidly find solutions If a switch is pressed send a telegram to the actor From these requirements the validati...

Page 121: ... write Temperatur 1 2 1 22 3 endif if 1 2 3 b01 then write Temperatur 1 2 1 22 3 endif In the example stime and depending on it the a will be invalid each 33 seconds after the last full minute The query condition of the if statement is therefore invalid and therefore it will be re evaluated When query condition changing and is equal to ON the if statement invalidates once the functions of its then...

Page 122: ...still 1 The second inner if statement is invalidating its then branch and executes this branch The next and all other only the first if statement is executed As with the first example referring to variable y the following if statement will invalidate the then branch only if the OR operation itself is invalid if 1 2 3 b01 or 1 2 4 b01 then endif Time functions are evaluated only in a nested if stat...

Page 123: ...ystemstart then stringset s b 0u16 writeflash b 0u16 b b 1 endif First b is incremented by 1 and therefore both s and the writeflash queue both work with b equals 2 For some function calls such as creating a TCP connection it can not be guaranteed that they will update their return value within a processing loop of the EibPC Therefore these functions were implemented as separate threads within the...

Page 124: ...y there are so called sections within the user program These are characterized by a name in brackets A section starts with its name and ends at the beginning of the next section or the end of the file The following sections subdivide the text EibPC Your programming ETS ESF Import of ets Data page 151 Location Geographical data of the installation location page 184 and page 150 MacroLibs Predefined...

Page 125: ...dif if AUS then also possible z 4 finished endif If two or more statements are executed as a block they can be combined into a block of statements These instructions are to be separated by a semicolon There is no semicolon after the last statement This is the same for a statement block It may not interrupted by a newline RETURN If you want a line break for improved readability the line must be fin...

Page 126: ...crease or decrease the response time of the graphical user interface vgl Figure 11 With the menu OPTIONEN PERFORMANCE SETTINGS you can set both time intervals to control the performance The dialog creates the following section which is inserted in the application program and could also be manipulated directly in the application program code Refresh time after pressing a button is currently not sup...

Page 127: ...rective include file Effect Includes a file path and filename at the position in the program In an included File another include can be used recursively Directive break_if_older_version number Effect The compiler EibParser stops if its version number is smaller than the given number Directive addto EibPC addto Macros addto WebServer Effect The compiler EibParser inserts the following lines of the ...

Page 128: ...f String Effect Un define a symbol string for the Praeprocessor Directive ifdef String Effect The following code is compiled until a endif occurs if String is defined Directive ifndef String Effect The following code is compiled until a endif occurs if String is not defined Directive endif Effect ends an ifdef directive HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 ...

Page 129: ...mport addresses they can be inserted via copy and paste into your project D Editor with syntax highlighting and autocompletion E Pane for predefined constants these are inserted via copy and paste F Pane for messages generated by the EibParser when compiling G Current connection status H Macros of loaded libraries HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchh...

Page 130: ...t passage from the clipboard Comment selection Ctrl D Comment the current selection of the application program Uncomment selection Ctrl Shift D Uncomment the current selection of the application program if applicable Copy addresses Copy the selected address in the address window Copy definition Copy the selected variable in the definitions window Add Macro Insert a macro Search Ctrl F Search an ex...

Page 131: ...x EibPC can be entered Load EibStudio Settings Load a set file that contains the settings of the Enertex EibStudio Save EibStudio Settings Overwrite the previously opened or saved set file Save EibStudio Settings as Save the current settings of the Enertex EibStudio in a given file Setup Coordinates for Calculation of Solar Altitude Edit the coordinates used for calculating the sunset sunrise azim...

Page 132: ...FTP server and exported as CSV file Retrieve EIB Messages cyclically All the stored EIB telegrams will be deleted Delete EIB Messages Delete all EIB telegrams stored in the Enertex EibPC Query number of EIB Messages Request the number of the Enertex EibPC saved from telegrams Monitor current EIB Messages F2 Print the current telegram in the message window Filter current EIB Messages Current EIB te...

Page 133: ...tion of the Enertex EibPC to an EIBnet IP interface Help F1 Open the manual Pack information for support request Creates a compressed file containing all the necessary firmware and software data for efficent support Info Version information of the Enertex EibStudio Enertex EibPC Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim www enertex de ...

Page 134: ...ate the communication port 4805 and 4806 for UDP telegrams in your firewall If you want to send UDP telegrams see page 235 you have to open the port 4807 additionally Alternative For example in a Windows firewall you can also directly establish an exception for the program nconf exe part program of the Enertex EibStudio For this the Enertex EibStudio has to be started at least once After calling E...

Page 135: ... already connected to the Enertex EibPC the network settings of the Enertex EibPC can be easily changed Click on menu EIBPC CHANGE NETWORK SETTINGS OF EIBPC as shown in Figure 6 The dialog on the right should open with the default settings Now enter your desired network settings Figure 6 Enter network settings To actually take over the network settings the data have to be transmitted to the Enerte...

Page 136: ...nd whether the DNS server is reachable just click EIBPC TEST DNS SERVER AND PAY ATTENTION TO THE WINDOW MESSAGES The factory settings can be reset using the reset button see p 19 for usage In this case you may also delete any stored scenes and the user program The network settings can also be restored by the function EIBPC RESET NETWORK SETTINGS For this feature the Enertex EibPC must be restarted...

Page 137: ...ion of its power supply before the application program is transmitted to the Enertex EibPC In case of an IP interface please note the commissioning instruction on page 15 and the following and enter the relevant data of the interface into the above configuration wizard The interface is accessed and activated only after the transfer and the subsequent start of an application program The Enertex Eib...

Page 138: ...nterface to the ets 2 Open the project in the ets and start the bus monitor Be careful not to use the group monitor of the ets 3 If the bus monitor of the ets displays telegrams with a green background Figure 12 the installation is not free of problems In this case reduce the frequency of the telegrams by parametrizing the respective actuator with telegram rate limitation 4 If the previously notic...

Page 139: ...click in menu EIBPC on RETRIEVE EIB MESSAGES In the bottom left of the status bar you will see the progress in the collection of telegrams The speed of the transmission of telegrams depends primarily on the performance of your PC If all messages are picked up or the transmission is interrupted a dialog appears By this dialog you can save these telegrams into a CSV file This CSV file is a text file...

Page 140: ...up filters so that only telegrams of certain group addresses or specified device addresses senders are displayed or stored You must first set up the filter see Figure 17 which you can set up within the menu item EIBPC CONFIGURE FILTER Figure 17 Filter EIB telegrams With the settings in Figure 17 only frames which arrive from the sender with the physical address 1 1 2 and are sent to the target gro...

Page 141: ...ny middle group are going to be processed Enertex EibPC can also store telegrams on a FTP server In this case the telegrams will be stored in binary form at the FTP server You can set the configuration of the FTP service in the menu OPTIONS FTP TRANSFER Alternatively you also can specify the settings direct in the application program by creating the section FTP like this FTP FTP server 192 179 169...

Page 142: ...Menu EibPC RETRIEVE EIB MESSAGES FROM FTP Remark For a correct conversion of the binary files on the FTP into a readable format the current loaded application program must be the same as the program which has stored the binary telegram data on the FTP HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 143: ...resses from the current ets project For more details see the description on page 151 Imported addresses are displayed in the window Address as shown in Figure 22 By a drag and drop mechanism or by copying the selection CTRL C you can also simply copy the addresses across the keyboard and then pasted in the application program Figure 22 Addresses To debug your program i e to look for errors you can...

Page 144: ...ou debug group addresses the value which is saved for the group address by the Enertex EibPC is displayed thus no read request on the bus In the message window the retrieved or written value is displayed When you select an object i e a variable constant or a group address and you press the right mouse button there are three options available Write value Read value from bus only if you have selecte...

Page 145: ...n the respective column of the debugger When a bus device with the respective group address does not reply the term not readable is displayed in the column value With the button Update you can query more values from the bus at the same time E g as seen in Figure 24 you can set crosses at variables of interrest Pressing the button Update will automaticly update the values of all marked variables Va...

Page 146: ...tex Bayern GmbH In the menu EIBPC the firmware version can be checked any time The version information will appear in the message window see Figure 25 You can reset the user program in the Enertex EibPC Thus the present program is cleared and the Enertex EibPC is set to idle The power supply must be interrupted because this process requires a hardware restart of the Enertex EibPC Proceed as follow...

Page 147: ...ss the reset button see p 19 for usage In this case the user program data on the installation location and network settings are deleted or reset to default values Note also the above item 6 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 148: ... protocol the current time and synchronizes with this time You also have the possibility to indicate up to nine NTP server The time synchronization can be inhibited by OPTIONS NTP TIME SYNCHRONIZATION Therefore it is necessary to determine whether the application program to be started only after the time synchronization or immediately after system start By default starts the application program wh...

Page 149: ...oordinates 11 3 29 E 49 43 11 N as decimal 11 07 and 49 68 Example Location Longitude and latitude of the installation location 49 0722222222222 11 06888888888889 After the change of the data and the start of the user program the Enertex EibPC calculates the sunrise and sunset as well as the position of the sun again This process may take several minutes to complete and is indicated when you conne...

Page 150: ...tions necessary to use your ets data with the Enertex EibStudio Export of group addresses from the ets as a so called ESF export Import of group addresses into the Enertex EibStudio To export group addresses from the ets proceed as follows Within the ets you open the export function data exchange in the menu FILE see Figure 1 Figure 1 Export within ets Then the dialog appears according to figure F...

Page 151: ...load the ESF file click FILE IMPORT GROUP ADDRESSES FROM ETS EXPORT FILE Figure 3 Loading ETS export file Now the Enertex EibStudio automatically generates the section ETS ESF in the user program as shown in Figure 4 Figure 4 ETS ESF Section In the ETS ESF section the absolute path to the exported ESF file is now displayed In the address field the addresses imported from this file are visible and ...

Page 152: ...ith both 1 bit 4 bit 8 bits and so on Because of this ambiguity the so called data type must be accurately specified in the programming The term data type summarizes the numeric type interpretation and bit length in one unit In the Enertex EibStudio the following syntax has been chosen The data type is appended to a number or a address The data type mostly consists of one letter and a 2 digit numb...

Page 153: ...ion of a variable Y is more generally as follows X u08 Y 100 255 for cutting off the decimal points The built in compiler within the Enertex EibStudio will make those adjustments for you so that you can address actuators as usual When different types of data are linked in your application program with each other e g the sum of 2u08 and 2u32 then an error is reported by the integrated compiler in E...

Page 154: ...nts any text but may now consist of up to 1400 characters So one should distinguish Hello c14 Character string with a maximum of 14 characters Hello Character string with a maximum of 1400 characters The two character strings can be transformed into each other by means of the convert function see page 208 IP addresses add on Option NP have the following syntax 192 168 22 100 An IP address is of da...

Page 155: ... 16 bit integer with sign s16 450s16 32768 32767 EIS10 001 24 bit integer without sign u24 292235u24 0 16777216 EIS11 000 24 bit integer with sign s24 92999s24 8388608 8388607 EIS11 001 32 bit integer without sign u32 92235u32 0 4294967295 EIS11 000 32 bit integer with sign s32 9999s32 2147483648 2147483647 EIS11 001 64 bit integer without sign u64 92235u64 0 18446744073709551615 n a 64 bit intege...

Page 156: ...are KNX DTP types handled properly by their definition in Enertex EibPC An input as a constant is not necessary and therefore not possible These data types are needed only in connection with the functions getdate and gettime Further information can be found on 174 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim www enertex de ...

Page 157: ...e16f32 Variables may not be defined depending on themselves recursion Therefore the following expression is invalid as a definition a a 1 In contrast it is permissible to program a counter using variables in this way Declaration a 0 Counting if sun then a a 1 endif Umlauts are not allowed in variable names Therefore the following expression is invalid KücheLightOn 1b01 Only variables with a valid ...

Page 158: ... 144 and want to use this group address in your user program Name Address Major group Lighting Power socket 1 Middle group Basement 0 Subgroup BasementWC 0 Table 2 ETS Group address For this you need to know how such a variable is imported or how it is made accessible in the application program According to generating law Imported address Subgroup name Group address the group addresses are automat...

Page 159: ...cognizes which addresses have not been fully defined by the ets and are therefore incomplete However based on the specifications of the data types the compiler may conclude to the data type Therefore in the following example the compiler recognizes that the variable a must be of the data type u08 percentage EibPC b 5 a Dimmer 5 1 0 b Explanation A sum may be made only with the same data types Sinc...

Page 160: ...hen Statement1 else Statement2 endif The query condition must be of type b01 If the query condition is not of this type the integrated compiler of the Enertex EibStudio issues an error Multiple statements can also be executed as a block In this case the instructions are separated by semicolons point After the last statement there is no semicolon A query condition is considered true when it takes t...

Page 161: ...n values at boot time A variable depending on a bus telegram in some way is only evaluated if the value which arrives in the bus telegram changes Example c 1u08 1 0 1 u08 if systemstart then c 2u08 endif if c 2u08 then write 3 3 3 b01 EIN endif if change c then write 3 3 2 b01 EIN endif The Enertex EibPC initializes the evaluation of the telegram with the group address 1 0 1 to 0 thus c is initial...

Page 162: ... see page 208 The variable c in the example uses the max function which is the maximum of any number of variables or group addresses The data types of group addresses have to be equal arguments of the max function Here the variable c is of the data type of the arguments of the max function and therefore its data type is determined by the arguments of the max function see also page 158 The variable...

Page 163: ...y GroupAddress Imported or manual KNXTM group address Value The value which is to be written to the KNX group address via the KNX bus Effect A valid KNXTM which writes the value to the group address is sent to the bus Data type result return value none Example write BasementWC write 1 0 1 u08 10 endif Note The data types u08 and are equivalent and compatible see also page 153 HandbuchEibPC_USA 30 ...

Page 164: ...2 3 4 The bit read request is set in the ets i e the temperature can be retrieved via a read request Every day at 18 30 clock and 20 seconds the variable should be obtained from temperature sensor Implementation Temperature 2 3 4 f16 if chtime 18 30 20 then read 2 3 4 f16 endif By means of the command Variable Group address the information which is sent to the group address triggered by the read f...

Page 165: ...his section If you use manually defined group addresses as 2 3 4 f16 above this group address must be really used at least once in your user program Initializing the group addresses means the EibPC sends read telegrams to the group addresses Each Groupaddress will be sent after waiting for a response with a timeout of 1500 ms After the last read telegram is initiated the EibPC starts processing th...

Page 166: ...Return none Alternatively to the syntax above the following is possible too Example EibPC Temperature manually defined initGA 2 3 4 f16 initGA Heating 2 3 4 initGA Lights 2 3 2 if Lights 2 3 2 and 2 3 4 f16 10 0 then write Heating 2 3 4 100 endif Example 2 comobject The following example shows the use in combination with the function comobject EibPC initga Licht KG Treppe 0 0 2 initga comobject Li...

Page 167: ...t this function may not be placed at if statements with else branch The event function is only switched to ON for one processing cycle and will be execute the then branch of the if statement on the arrival of a telegram to the group address In the next cycle event returns to OFF and now the else branch is executed To simplify programming here the use of the event function is limited by the compile...

Page 168: ...ata type b01 Definition Function eventwrite Group address Arguments Group address Imported or manual KNXTM group address The groupaddress can be optionally negated using the Sign Effect Return value 1b01 ON pulse when an write telegram with the group address has been written on the KNXTM bus regardless of its content Data type results Return value Data type b01 Definition Function writeresponse Gr...

Page 169: ...of the user program is then LightActuatorON ButtonOn and LightRelease If ButtonOn is 1b01 and LightRelease is 1b01 then LightActuatorOn is 1b01 otherwise it is 0b01 Example And Link with different variables If the variable ButtonOn is 1 and the variable wind speed is exactly 2 9 m s the variable LightActuatorOn has to be set to 1 For the implementation we need the if statement and the comparison h...

Page 170: ...f To create exclusive or links either or the xor instruction is provided This statement is constructed as follows Definition A xor B xor C etc Arguments All arguments A B C are of the same data type But otherwise the data types are arbitrary Any number of links Effect The variable A is bitwise XORed with the variable B and the variable C etc which means the result of the operation xor is zero bitw...

Page 171: ...have the same value as the variable B In all other cases the result is 0b01 Data type result Return Data type b01 Definition Function hysteresis Var LowerLimit UpperLimit Arguments 3 arguments Var LowerLimit UpperLimit of the same data type Data types uXX sXX fXX with XX arbitrary bit lengths defined on page 154 Effect The argument Var is compared with the LowerLimit and UpperLimit of a hysteresis...

Page 172: ...to KEY1 b01 The reaction is then LightActuatorOn Button1 If KEY1 is 1b01 then LightActuator is 0b01 If KEY1 is 0b01 then LightActuator is 1b01 The following function is available for shifting numeric data types Definition shift Operand Number Arguments Argument Operand of any numerical data type Argument Number of data type s08 Effect Arithmetic shift of the operand by number With positive number ...

Page 173: ...actuators etc within the KNXTM bus can be synchronized with the Enertex EibPC or the system clock of the Enertex EibPC can be adjusted There is both the possibility of sending data from the Enertex EibPC to the KNXTM bus as well as data from the KNX bus to the Enertex EibPC Moreover there is the possibility to read and change the system time in the application program by means of variables Please ...

Page 174: ... if cwtime 0 0 0 0 then read RadioClock 1 2 1 endif if event RadioClock 1 2 1 then gettime RadioClock 1 2 1 endif By the read function a read request to the group address will be generated The information which is then sent to the KNX bus is written into the system clock of the Enertex EibPC by the gettime function Definition Function settime Arguments none Effect The system time is read from the ...

Page 175: ... date is to be synchronized with a radio clock existing in the KNX bus and to be reset Implementation in the user program if month 1 1 or month 1 7 then read RadioClock 1 2 2 endif if event RadioClock 1 2 2 then getdate RadioClock 1 2 2 endif Definition Function setdate Arguments none Effect The system date is read from the Enertex EibPC The return value is the time in the format of type d24 Data ...

Page 176: ... the KNXTM bus and to be reset Implementation in the user program if month 1 1 or month 1 7 then read RadioClock 1 2 3 endif if event RadioClock 1 2 3 then gettimedate RadioClock 1 2 3 endif Definition Function settimedate Arguments none Effect The system time and system date are read from the Enertex EibPC and assigned to a variable as a value Data type result Return Data type y64 Example SetDate...

Page 177: ...be found in the variable Stopper_time and the formatted output in Stopper Cf example Stop watch V2 on page 224 EibPC Stopper Stopper_start 0s32 Stopper_time 1s32 Stopper_Go AUS Start the stop watch calculate offset if Stopper_Go then Stopper_start convert hour 0s32 3600s32 convert minute 0s32 60s32 convert second 0s32 endif if change dayofweek then Stopper_start Stopper_start 86400s32 endif End of...

Page 178: ...e is set to the value of arg Please note that the timer functions can be disturbed by setting or changing respectively the system time If your Enertex EibPC establishes an NTP connection the time is reset again cf note on page 174 Data type result Return none Definition Function changesecond arg Arguments arg Data type u08 Effect The system time second is set to the value of arg Please note that t...

Page 179: ...1 00 00 00 This function is compatible to the Unix time stamp Data type result return u64 Definition Function utcconvert utc Arguments utc time in ms data type u64 Effect Converts the time specification from the utc format into a c1400 string format YYYY MM DD HH MM SS Data type result return string Example UTC Transformation Conversion in the user program Gibt aktuelle Zeitangabe im UTC Format zu...

Page 180: ...th dd mm with dd Day 1 31 mm Month 1 January 12 December Arguments 2 arguments are of data type u08 Effect The output is 1b01 if the date is reached or already passed If the date is before the set value the output goes to 0b01 With the beginning of a new year January 1 the output goes to 0b01 until the month and day reach the set value Data type Result Return Data type b01 Example Monthly comparis...

Page 181: ...am then reads if day 6 then SprinklerOn 1 endif Definition Function dayofweek with Arguments none Effect The output returns the current day of the week 0 Sunday 6 Saturday Data type result Return Data type u08 Example Day timer comparison Request the current day of the week In case it is Sunday the variable SprinklerOn is to be set to 1 The implementation in the user program then reads if dayofwee...

Page 182: ...t for the calculation is indicated e g Easter Sunday 40 days Easter Sunday 30 days Data type result Return Data type u08 Example Calculation of Ash Wednesday Ash Wednesday is 46 days before Easter Sunday uAschermittwochTag easterday 46s16 uAschermittwochMonat eastermonth 46s16 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 183: ...ined variable see page 339 with the binary value 1b01 and hence can be stated as a comparison operator instead of 1b01 Definition Function azimuth Arguments None However the Enertex EibPC should know the longitude and latitude of the place These can be entered in Enertex EibStudio see page 184 Effect This function cyclically time frame 5 minutes calculates the azimuth of the sun in degrees north t...

Page 184: ... program then reads HAngle 0f32 if htime 5 00 then HAngle elevation endif Note This function is needed in house awnings In the library EnertexBeschattung lib you will find detailed examples Definition Function presun hh mm hh hours 0 23 mm minutes 0 59 Arguments two arguments of data type u08 Effect Shows 1 to 0 in the specified time before chancing from day to night The programm has to know the g...

Page 185: ...type c14 The implementation in the user program then reads if htime sunrisehour sunriseminute 0 then write 1 4 4 c14 convert sunrisehour c14 c14 convert sunriseminute c14 endif Definition Function sunsethour Arguments none Effect The hour 0 to 23 at sunset is returned Data type result Return Data type u08 Definition Function sunsetminute Arguments none Effect The minute 0 to 59 at sunset is return...

Page 186: ... Weekdays 8 Weekends Arguments 4 arguments are of data type u08 Effect The return value is 0b01 if the current time and date of the Enertex EibPC s system clock are not equal to hh mm ss and dd When the time is reached and matches exactly the output value rises to 1b01 if the time is exceeded it returns to 0b01 Data type result Return Data type b01 Example Weekly time switch Every Tuesday at 01 00...

Page 187: ... if mtime 22 07 then LightActuatorOn 0b01 endif The minute timer is defined as follows Definition stime ss with ss Seconds 0 59 Arguments 1 argument is of data type u08 Effect The return value is 0b01 when the current second time of the Enertex EibPC s system clock is not equal to ss hour and minute are not relevant When the time is reached and matches exactly the output value is set to 1b01 if th...

Page 188: ...y the hourly comparator time switch which is active once hourly and finally the minute comparator time switch which triggers one action per minute A weekly comparator time switch is defined as follows Definition cwtime hh mm ss dd with ss Seconds 0 59 mm Minutes 0 59 hh Hours 0 23 dd Day 0 Sunday 6 Saturday Arguments 4 arguments are of data type u08 Effect The return value is 0b01 if the current t...

Page 189: ...k to 1 Implementation in the user program if chtime 22 04 07 then LightActuatorOn 0 else LightActuatorOn 1 endif A hourly comparator time switch is defined as follows Definition cmtime mm ss with ss Seconds 0 59 mm Minutes 0 59 Arguments 2 arguments are of the data type u08 Effect The return value is 0b01 if the current minute second time of the Enertex EibPC s system clock is not equal to mm ss W...

Page 190: ...the output value is set on 1b01 and remains at this value until the next minute Data type result Return Data type b01 Example Minutes comparator time switch Always after 34 seconds after a full minute the variable WindowContacts is to be set to 0 At the beginning of a new minute until it reaches the preset time the variable should be set to 1 Implementation in the user program if cstime 34 then Wi...

Page 191: ...he timer restarts Data type result Return Data type b01 Note Do not use delay in the then or else branch of an if statement If the delay using an if statement and a write writes a telegram there can arise an additional delay time of a few ms depending on the bus load and the bus speed Example Delayed variable assignment If the variable LightActuator Date type f16 is less than 1000f16 the variable ...

Page 192: ...ffect Works as delay p 192 The remaining time of the internal timer can be read with variable xT CAUTION If you use the same variable xT for different delayc in the programm code a non predictable behavoir will be the consequence Data type result Return Data type b01 Note Do not use delayc in the then or else branch of an if statement If the delayc using an if statement and a write writes a telegr...

Page 193: ...le LightButton data type b01 after 1000 ms Implementation in the user program LightActuator after LightButton 1000u64 Example On delay If LightButton data type b01 is ON the variable LightActuator data type b01 is to be set to ON after 1300 ms Implementation in the user program if after LightButton 1300u64 1b01 then LightActuator 1b01 endif Alternative 1 if after LightButton 1b01 1300u64 then Ligh...

Page 194: ... of the internal timer can be read with variable xT CAUTION If you use the same variable xT for different delayc in the programm code a non predictable behavoir will be the consequence Data type result Return Data type b01 Note If the afterc using an if statement and a write writes a telegram there can arise an additional delay time of a few ms depending on the bus load and the bus speed Example O...

Page 195: ... 1b01 for one processing cycle otherwise it is 0b01 The repetition time is defined in mm ss minutes seconds Data type result Return Data type b01 Example Cycle Always after 1 minutes and 5 seconds a read request is to be sent to the address Light1 0 0 1 Implementation in the user program if cycle 01 05 then read Light1 0 0 1 endif HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraß...

Page 196: ...her details Without the patch 1 100 we do not guarantee for file system errors if the customer applies the function to store variables into the flash memory We will prove it via a log function whether this function was applied or net Definition Function readflash Variable Flash memory cell Arguments Variable arbitrary data type Flash memory cell of data type u16 Valid values are from 0u16 to 999u1...

Page 197: ...u08 if change Wohnküche RTR Modus 5 1 7 then writeflash Wohnküche RTR Modus 5 1 7 0u16 endif if systemstart then readflash Value 0u16 endif if after systemstart 1000u64 then write Wohnküche RTR Modus 5 1 7 Value endif Definition Function readflashvar Variable Arguments Variable arbitrary data type Effect In the built in flash the binary data is written back to the memory of the Variable as it can ...

Page 198: ...n sufficient time e g to store values to the flash see p 213 ValuePowerK1 K1 Wirkenergiezähler Verbrauch 14 2 76 if htime 0 0 0 or SHUTDOWN then writeflashvar ValuePowerK1 endif if systemstart then readflashvar ValuePowerK1 endif In addition to the values in the remanent memory which can addressed with the functions readflash and writeflash Are additionally archived on the flash of the Enertex Eib...

Page 199: ...l be saved on a local pc in a backup data Enertex EibPC The up and downloadmanager transfers depending on ending of the data the allocation for the converting on the Enertex EibPC Picture data files must have the ending jpg or png scene has to follow the intern procedure of the Enertex EibPC time series can be identified an allocated by the data name I e depending on the data name the Enertex EibS...

Page 200: ...able1 variable2 Arguments All arguments are of the same data type Data type uXX sXX and fXX with XX arbitrary bit length defined on page 154 Effect The values of the variables are added Only values of the same type can be added If you nevertheless want to add e g an unsigned 8 bit value and a signed 16 bit value use the convert function see page Fehler Referenz nicht gefunden Data type result Retu...

Page 201: ... Arguments 1 argument variable is of data type f32 Effect Calculation of the arc tangent of the variable given in RAD Data type result Return Data type f32 Example Arctangent In variable b is the result of the arctangent of variable a Implementation in the user program a 5f32 b atan a Definition Function cos variable1 Arguments 1 argument variable is of data type f32 Effect Calculation of the cosi...

Page 202: ...FlowTemperature 30f16 25f16 30f16 30f16 OutdoorTemperature 3 5 0 f16 Definition Function average variable1 variable2 Arguments all arguments are of the same data type Data type uXX sXX and fXX with XX arbitrary bit length defined on page 92 Effect Return value The average value of the given variables which must all be of the same data type instead of variables manual or ets imported group addresse...

Page 203: ...is not positive no calculation is performed Data type result Return data type f32 The maximum value function is defined as follows Definition Function max variable1 variable2 Arguments all arguments are of the same data type Data type uXX sXX and fXX with XX arbitrary bit length defined on page 92 Effect Return value The maximum value of the given variables which must all be of the same data type ...

Page 204: ... 0 2 HeatingBasement2 1 0 3 HeatingBasement3 1 0 4 HeatingBasement4 1 0 5 HeatingBasement5 1 0 6 Definition variable1 variable2 Arguments all arguments are of the same data type Data type uXX sXX and fXX with XX arbitrary bit length defined on page 92 Effect The values of the variables are multiplied Data type result Return Data type of arguments Definition Function pow variable1 variable2 Argumen...

Page 205: ...er program a 5f32 b sqrt a Definition Function sin variable Arguments 1 argument of data type f32 Effect Return value Sine of variable in radian Data type result Return Data type f32 Example Sinus Variable b is the sine of variable a Implementation in the user program a 4f32 b sin a Definition variable1 variable2 Arguments all arguments are of the same data type Data type uXX sXX and fXX with XX a...

Page 206: ...ent of data type f32 Effect Tangent of variable Data type result Return Data type f32 Example tangent Variable b is the tangent of variable a Implementation in the user program a 5f32 b tan a HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 207: ... the maximum heating output changes the flow temperature shall be readjusted Implementation in the user program if change HeatingMax then write FlowTemperature 0 0 1 HeatingNeed endif Definition Function comobject variable1 variable2 Arguments all arguments are of the same data type Data type uXX sXX and fXX with XX arbitrary bit length defined on page 92 Effect Return value The value of the varia...

Page 208: ... variable1 to the data type of variable2 Note Information may be lost by the conversion of data types e g by the truncation of bits Example Convert function An unsigned 8 bit value shall be added to a signed 16 bit value Implementation in the user program Var1 10u08 Var2 300s16 Var3 convert Var1 Var2 Var2 Definition Function devicenr Arguments none Effect Serial number inquery of EibPC Data type r...

Page 209: ...n the error memory Data type result Return data type u16 Example elognum Read the last event number and reset the memory by one Implementation in the user program EventInfo EventNr elognum if change EventNr then EventInfo elog endif HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 210: ...ng and hence generates a higher system load If you used instead of if 1 0 0 b01 then write 1 0 1 b01 AUS endif if eval 1 0 0 b01 inadvertently you could cause your KNXTM installation to crash We recommend the use of the function eval only to experienced programmers because the validation scheme is optimized for the Enertex EibPC and its programming A statement if Counter 100 then Counter Counter 1...

Page 211: ...processingtime endif write to chart if cycle 0 1 then timebufferadd Buffer0 t t 0u16 endif Generate some load y 0f32 if cycle 0 10 then y cos 34f32 sqrt 234f32 tan 34f32 7f32 cos 34f32 sqrt 234f32 tan 34f32 7f32 cos 34f 32 sqrt 234f32 tan 34f32 7f32 cos 34f32 sqrt 234f32 tan 34f32 7f32 cos 34f32 sqrt 234f32 tan 34f32 7f32 cos 34f32 sqrt 234f32 tan 34f32 7f32 cos 34f32 sqrt 234f32 t an 34f32 7f32 e...

Page 212: ...udio sets the built in variable SHUTDOWN ON so that the appropriate program can be executed in the user program Enertex EibStudio then waits 5 seconds before the application program is stopped Ongoing running of the Flash is still running properly Example see p 199 Definition Function random max Arguments 1 argument max of data type u32 Effect Returns a random number in the range of 0 to max Data ...

Page 213: ...terface Data type result Return none Example Put the Enertex EibPC to passive mode You want to put an Enertex EibPC to passive mode through the group address 2 5 6 b01 Implementation in the user program if 2 5 6 b01 then sleep EIN else sleep AUS endif Note This function is helpful when testing a program in an existing system without actually writing to the bus Without disrupting users or the progr...

Page 214: ... Figure 4 Controlfield of a KNX Telegram Bit W Repeat is normally set to 1 P1 and P0 define the priority level Normally a telegram is sent with low priority P1 P0 1 A normal telegram therefore will have a Conntrolfield 10111100b 188u08 Destination physical address or group address with Data type u16 Bit 16 12 11 8 7 0 Adress main middle low Expample 1 3 5 Binär 0001 0011 0101 1 4096 1 512 1 256 0 ...

Page 215: ... state of the input objects are copied to an KNX Telegram object The individual address of the sender can not be given as It will be set to the address of the bus access unit interface connected to the Enertex EibPC Data type result Return none Example physical Addressing Every 10 minutes a read request is to be sent to the actuator with the physical address of 1 3 5 if cycle 10 0 then eibtelegram...

Page 216: ...ee presetscene p 217 2 You can like other functions define an arbitrary number of scene actuators 3 Please see page 62 for detailed application information Example Lighting scenes You want to realize a scene actuator for a dimmer and a lamp Implementation in the user program scene SceneActuator 1 4 3 u08 Dimmer 1 1 2 DimmerValue 1 1 3 Lamp 1 1 1 Definition Function presetscene GroupAddressSceneAct...

Page 217: ...N 20s32 ON scene on ON Remark The functions scene and presetscene are toplevel which means independent of an if condition The macro library EnertexScene lib uses this functions and make the handling of this easier Definition Function storescene GroupAddressSceneActuator number Arguments 2 arguments GroupAddressSceneActuator and number of data type u08 Effect This function requires the parametrizat...

Page 218: ...ess either KNXTM scene actuators or scene functions The function triggers a telegram to GroupAddressSceneActuator and thereby recalling the scene number Data type result Return none Example Callscene You want to recall the scene defined in the above example of scene in number 1 Implementation in the user program if ButtonRecallScene EIN then callscene SceneActuator 1 4 3 u08 1 endif HandbuchEibPC_...

Page 219: ...character strings string1 and string2 shall be added or concatenated Implementation in the user program string1 Character string2 String result CharacterString result string1 string2 Definition Function find string1 string2 pos1 Arguments 3 arguments string1 string2 of data type c1400 pos1 of data type u16 Effect string1 Character string a partial character string shall be searched for in string2 ...

Page 220: ... and stringcast c1400 character strings can be used to manage data arrays See the example of stringset on page 221 Definition Function stringset string data pos Arguments 3 arguments string of data type c1400 data of arbitrary data type pos of data type u16 Effect string Character string one ore more bytes of which shall be replaced data This bytes characters replace characters of string pos The p...

Page 221: ...r integers EibPC array Var 1 1 1 f16 ReadVar 0 0 Bytessize of f16 2 ByteSize 2u16 Pos 0u16 if cycle 15 0 then Pos Pos ByteSize stringset array Var Pos if Pos END then Pos 0u16 endif endif if cycle 15 0 then if Pos 2u16 then ReadVar stringcast array Var Pos ByteSize stringcast array Var Pos endif endif HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail ener...

Page 222: ...red if data is of data type uXX or sXX and a precision is given 6 Left justified 7 Left justified and a blank before a positive number only permitted if data is of data type sXX or fXX and no conversion into octal or hexadecimal notation 8 Left justified and a sign before a positive number only permitted if data is of data type sXX or fXX and no conversion into octal or hexadecimal notation 9 Alte...

Page 223: ... watch V2 Cf Example Stop watch page 178 Timing the seconds at which the variable Stopper_Go has the value ON A c1400 text string shall be given that prints the time in the format 000d 000h 000m 000s days hours minutes seconds Here the implementation at which the seconds can be found in the variable Stopper_time and the formatted output in Stopper In contrast to Example Stop watch page 178 the tim...

Page 224: ...ng The first character of the character string to be separated has position 8 counting starts at 0 the last character has position 13 Implementation in the user program string CharacterString result split string 8u16 13u16 Example Search a character string 2 The character string Hello shall be separated from the variable string CharacterString Hello Implementation in the user program String Charac...

Page 225: ...e length of the string string band is to be determined Implementation in the user program Eurosign tostring 0xE2 0x82 0xAC Definition Function encode string source encoding target encoding Arguments An argument string of data type c1400 respectively with a self defined string length Source encoding with the usual designation e g UTF 8 Target encoding with the usual designation e g UTF 8 Effect A s...

Page 226: ...tp 3a 5c 5cenertex de utf 8 c14 utf 8 c14 Please also read the notes on p 108 Definition Function urlencode string source encoding target encoding Arguments String data type c1400 or with a user defined string length Source encoding with the usual designation e g UTF 8 Target encoding with the usual designation e g UTF 8 Effect A string String which is in source encoding is transmitted to the targ...

Page 227: ...ce Decimal notation OFF 0 RTS CTS 1 Xon Xoff 2 0 Definition Function readrs232 arg 1 arg2 argN Arguments arg2 to argN arbitrary Effect If an arbitrary RS232 telegram is sent to the Enertex EibPC every function readrs232 updates its arguments If this is the case the arguments of the function are filled with data until the amount of received data complies with the data length of the arguments of the...

Page 228: ...nts none Effect Performs a reset for the RS232 Interface Data type result Return none Definition Function sendrs232 arg 1 arg2 argN Arguments arg2 to argN arbitrary Effect User data to be transmitted are arbitrary in number and data type If arg2 to argN are data type c1400 the terminating zero of the string will not be transferred Data type result Return none HandbuchEibPC_USA 30 odt 2017 05 11 En...

Page 229: ...in group x 2048 middle group x 256 subgroup with main group 5 middle group 3 and subgroup 11 for the example 5 3 11 You have to calculate this number by yourself or you can use the function getaddress Example address You want to write ON to group address 5 3 11 b01at system startup Implementation in the user program if systemstart then write address 11019u16 ON endif Definition Function readknx Nu...

Page 230: ...rent data of the transmitter every time a KNX telegram is received The physically address variable phyAddress is defined in the usual notation e g 2 4 13 The IsGroubAddress shows wheather the telegram is addressed to a physical address or a group adress To detect incoming telegrams the function event can be applied to readrawknx This will become necessary if telegrams with identical content have t...

Page 231: ...assistant variables Raw_AvgTrigger 0u64 Raw_Error AUS Raw_AvgTimeSum 0u64 timescale 1000 accuracy in seconds 60000 accuracy in minutes Raw_TimeScale 1000u64 Raw_Time Raw_TimeWatch Respond only to group messages on the EibPC and only if the sender address is correct if event readrawknx Raw_Kontroll Raw_Sender Raw_GA Raw_IsGa Raw_RoutingCnt Raw_Len Raw_Data and Raw_Sender Raw_Dev and Raw_IsGa then c...

Page 232: ... retrigger otherwise error condition if delayc change Raw_AvgTrigger Raw_TimeWatch Raw_Time then Raw_Error EIN endif Note The function event can used with readrawknx function see example HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 233: ...e binary data of the telegram is converted into a string see convert and given as the return value of this function Data type result Return c1400 Note The Number is calculated as address main group x 2048 middle group x 256 subgroup As an example with main group 5 middle group 3 and subgroup 11 the telegramm imaga of 5 3 11 is addressed You have to calculate this number by yourself or you can use ...

Page 234: ...ort of data type u16 the transmitter s outbound port the transmitter s destination port must always be port 4806 Argument ip of data type u32 the transmitter s address in the usual notation e g 192 168 22 100 arg2 to argN of arbitrary data type Effect Received user data start with the 3rd argument Their number and data type is arbitrary If a UDP telegram is sent to the Enertex EibPC every function...

Page 235: ...the data sent by the Enertex EibPC The Enertex EibPC itself sends the data from its port 4807 Transmitted user data start with the 3rd argument Their number and data type is arbitrary The IP address variable ip is defined in the usual notation xxx xxx xxx xxx with xxx number between 0 and 255 If your LAN device can be addressed by a name and DNS the function resolve can replace an explicit IP addr...

Page 236: ...on xxx xxx xxx xxx with xxx number between 0 and 255 If your LAN device can be addressed by a name and DNS the function resolve can replace an explicit IP address Sends Nr Bytes of arg via UDP Protocol Data type result Return none Example Send UDP telegrams Every 2 minutes a UDP telegram shall be sent by the Enertex EibPC to the port 5555u16 of the receiver www enertex de The user data to be trans...

Page 237: ...rror 2 error due to an already existing connection 3 error caused by too many active connections 4 connection automatically closed due to a timeout not responding 6 connection closed by user with closetcp 7 TCP counterpart closed the connection 8 Initial value 9 After 30 seconds of inactivity of an existing connection the Enertex EibPC disconnects automatically Data type result Return u08 The retu...

Page 238: ...ntent have to be evaluated see below Data type result Return none Definition Function sendtcp port ip arg 1 arg2 argN Arguments Argument port of data type u16 Argument ip of data type u32 the receiver s address in the usual notation e g 192 168 22 100 arg2 to argN of arbitrary data type Effect Argument port is the destination port of the data sent by the Enertex EibPC The user data starts with the...

Page 239: ... number between 0 and 255 If your LAN device can be addressed by a name and DNS the function resolve can replace an explicit IP address Sends Nr Bytes of arg via TCP IP Protocol Data type result Return none Example Send TCP telegrams Every 2 minutes a TCP telegram shall be sent by the Enertex EibPC to the port 5555u16 of the receiver www enertex de The user data to be transmitted is the first 5 By...

Page 240: ...variable ip is defined in the usual notation xxx xxx xxx xxx with xxx number between 0 and 255 Effect Execution of the ping command The function returns its processing status successful 0 in progress 1 and error 2 Data type result Return u08 The return value is asynchronous to the main development loop see p 124 Example ping The address www enertex de should be pinged shortly after systemstart IP ...

Page 241: ...ith subject is sent to the destination character string All character strings are restricted to a maximum length of 1400 characters A line break can be achieved by using the two characters n in the string Return value 0 e mail successfully sent 1 in progress 2 error Data type result Return Data type u08 The return value goes asynchronous to the main development loop see p 124 Example sendmail Ever...

Page 242: ...or Data type result Return Data type u08 Example sendhtmlmail Every Monday at 08 00 an e mail shall be sent to eibpc enertex de The subject is EibPC and the message contains 2 lines Hello World in bold and Here we go Implementation in the user program email eibpc enertex de subject EibPC message html head meta name qrichtext content 1 head body style font size 11pt font family Sans Serif p span st...

Page 243: ... this You can configure the VPN Server using the wizard of Enertex EibStudio at EIBPC VPN CONFIGURATION The configuration is stored in the VPN section Figure 7 VPN configuration dialog With the Info Button in EibStudio can be read whether the VPN service is running and which users are enabled Definition Function startvpn Arguments none Effect Starts the VPN Service on the Enertex EibPC The VPN mus...

Page 244: ...r default All in the past enabled users to open a user s VPN access use openvpnuser are immediately closeed after this function call With the Info Button in EibStudio can be read whether the VPN service is running and which users are enabled Data type result Return none HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 245: ...utton in EibStudio can be read whether the VPN service is running and which users are enabled Data type result Return none Remark closevpnuser does not effect an already open VPN user access The access will denied if the user is logged out and will try to re login or the VPN Service is completely stopped and started again Example The access of User1 should be opened once there is an ON Signal 1b01...

Page 246: ...ents Arguments id var of data type u08 Arguments x1 x2 of data type c14 Effect This function addresses the XY diagram chart If there are multiple occurrences of id all elements of this id are addressed When calling this function the XY diagram of the value var is activated Values in the range of 1 30 can be displayed 0 refers to the value not being displayed and values greater than 30 are not perm...

Page 247: ...line of the web element Every icon has at least the states ACTIVE 1 INACTIVE 2 DARKRED 0 and BRIGHTRED 9 One of these states can be submitted as the argument state For an overview of the possible states see Table 3 page 159 The text to be displayed can be represented in the stylesGREY 0 GREEN 1 BLINKRED 2 and BLINKBLUE 3 Data type result Return none Example show current time A button element shall...

Page 248: ...is id on the web page with page_id are addressed Data type result Return Data type u08 Definition Function geteslider id Arguments Argument id of data type u08 This argument must not change at the runtime of the program Effect The function addresses the eslider and returns its position 0 to 255 If there are multiple occurrences of id all elements of this id are addressed Data type result Return Da...

Page 249: ...possible states see Table 3 page 159 The text to be displayed can be represented in the styles GREY 0 GREEN 1 BLINKRED 2 and BLINKBLUE 3 The argument website http address incl path and leading http of the destination site specified the new destination The link is shortened to 479 characters due to compatibilities restrictions Data type result Return none Definition Function mbutton id selection Ar...

Page 250: ... mchart displays four different graphs index 0 1 2 3 defines the graph to be addressed Up to 48 values are stored If more than 48 values are stored in the same index of mchart the value stored in the first location is lost The placement of the values in the graph is performed by the specification of the pairs of variates The labeling is generated automatically Data type result Return u08 internal ...

Page 251: ... mpbutton id selection page_id Arguments Argument id of data type u08 This argument must not change at the runtime of the program Argument page_id of data type u08 This argument must not change at the runtime of the program Argument selection of data type u08 Effect By operating the button of a multi button element that refers to a page and the given selection with index selection e g mpbutton or ...

Page 252: ...eb element The PageSprungIndex argument specifies the page number of the new jump destination Data type result Return none Example Dynamic Change of Web Links WebServer page 1 Haus OG plink 2 INFO 3 Zu Seite 3 picture 3 DOUBLE ZOOMGRAF Wetter http eur yimg com w wcom eur_germany_outlook_DE_DE_440_dmy_y jpg link 4 BLIND http eur yimg com w wcom eur_germany_outlook_DE_DE_440_dmy_y jpg Mein Link page...

Page 253: ...m 65535 records with max 4 bytes in length The data type has to be u16 The memory is of data type DataTyp of the input object Effect There is a pair of values buffer is created or configured here It can be set using the memory type if this becomes full after filling with the values or if the oldest value is discarded CAUTION The EibPC has a RAM of 64MB of which about 40 MB can be used by the user ...

Page 254: ...rID Arguments ChartBufferID of data type u08 Effect Delete the current time buffer in the memory and if necessary on the flash if existing Data type result Return Level of the time buffer of the data type u16 Example if systemstart then timebufferclear 2 endif HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 255: ...erread ChartBufferID Arguments ChartBufferID of data type u08 Wirkung A buffer is selected from the Flasch Datentyp Ergebnis Rückgabe 0 success 1 error 2 ongoing processing data type u08 Detailed example P 115 Definition Function timebuffersize ChartBufferID Arguments ChartBufferID of data type u08 Effect Show the current level of the time buffer Data type result Return Level of the time buffer of...

Page 256: ...value pair is searched for in the time buffer Data type result Return 0 success 1 error 2 persistent processing See a detailed example on timebuffering p 115 Example Reading values A timebuffer has f16 data types and records since 1 1 2016 The value in the time buffer at the time 12 00 00 on 2 1 2016 daily should be read at 9 30 00 If a value is present in the buffer written to the buffer with plu...

Page 257: ... Argumente ID of Webinput element data type u08 Data to show at weboutput field Wirkung sends the string to the corresponding weboutput field in the webserver Weboutput elements are all globally Data type result Return none Example webinput weboutput see p 112 WebServer page 1 Enertex Webserver webinput 1 INFO Eingabe hier Ausgabe in Outputfeldern weboutput 2 SINGLE ICON EibPC inputstring webinput...

Page 258: ...lement Data type result Return none Examples p 115 to 119 Definition Function mtimechart TimeChartID ChartIdx ChartBuffer StartZeit EndZeit Arguments TimeChartID of Datatyp u08 ChartIdx Index of charts 0 3 ChartBuffer Handle to the time buffer to be displayed by the web element The Webelement has to be configured accordingly StartZeit Starting position of the display used as UTC Time Tics EndZeit ...

Page 259: ...cifies the new link Every icon has at least the states ACTIVE 1 INACTIVE 2 DARKRED 0 and BRIGHTRED 9 One of these states can be submitted as the argument state For an overview of the possible states see Table 3 page 159 The text to be displayed can be represented in the styles GREY 0 GREEN 1 BLINKRED 2 and BLINKBLUE 3 Data type result Return none Definition Function pchart id var x1 x2 page_id Arg...

Page 260: ...ton or pshifter with the id page 265 and the following on the web page of page_id the function assumes a value not equal to zero for the duration of one processing pass and zero in all other cases For a pbutton element the return value when operated is 1 For a pshifter element the return value when operated is 1 2 3 or 4 u08 depending on the actually operated element of the web button The return v...

Page 261: ...image specified the new destination The link is shortened to 479 characters due to compatibilities restrictions Data type result Return none Definition Function plink id text icon page_id pageDestination Arguments Arguments id icon page_id and pageDestination of data type u08 Argument text of arbitrary data type Effect The function addresses the web button that refers to a page plink If there are ...

Page 262: ...addressed A call of the function sets the icon to the symbol with the number icon Possible symbols are shown on page 291 and are referenced with predefined values u08 Further predefined constants make the choice easier Table 2 page 159 lists the assignment Every icon has at least the states ACTIVE 1 INACTIVE 2 DARKRED 0 and BRIGHTRED 9 One of these states can be set in the argument state Table 3 p...

Page 263: ...alues u08 Further predefined constants make the choice easier Table 2 page 159 lists the assignment Every icon has at least the states ACTIVE 1 INACTIVE 2 DARKRED 0 and BRIGHTRED 9 One of these states can be set in the argument state Table 3 page 159 provides an overview over all possibel states Data type result Return none With Enertex EibPC secure communications via HTTPS between Web servers and...

Page 264: ... the multiple page version You can configure and use a maximum of 40 elements per page The graphic design of each button is fixed to a given design set You can change the design set of a complete set though see page Fehler Referenz nicht gefunden When using multiple pages you can assign every page to a group Via the list box of the page navigation cf Figure 10 you can select the grouped pages Figu...

Page 265: ...ser Florian PasswordF button 1 INFO page 1 page 2 user administration page 2 Passwords are going to overtaken user Michael user Florian button 1 INFO page 2 page 3 user administration page 3 This page is only for Michael Password is going to overtaken user Michael button 1 INFO page 3 page 4 user administration page 4 This page is only for Stefanie Password has to be specified because this user wa...

Page 266: ... can be modified only at the configuration The first line of text is static only changeable at the configuration The second line can be modified by the user program shifter pshifter The middle graphic can be modified by the user program The outer graphics can be modified only at the configuration The first line of text is static only changeable at the configuration The second line can be modified ...

Page 267: ...second line can be modified by the user program The listbox can administer a maximum of 4 entries By operating the listbox a signal which can be queried by the functions mbutton page 249 and mpbutton page 252 respectively is sent to the application program mshifter mpshifte r The right graphic can be modified by the user program The other graphics can be modified only at the configuration The firs...

Page 268: ...nd is reached after 47 calls the values are shifted to the left mchart mpchart The pairs of variates are addressed by the application program via the function mchart page Fehler Referenz nicht gefunden One element mchart administers up to 4 XY charts that can be supplied with data via the identical function mchart in the application program A maximum of 4 diagrams can be defined each having a labe...

Page 269: ...ivider in the web server arrangement The caption is optional header Header Can be switched off to make the handling of touchpanels easier Likewise a link to an external image source is possible At this the scale should be adapted to the size footer Footer Can be switched off to make the handling of touchpanels easier Likewise a link to an external image source is possible At this the scale should ...

Page 270: ...nto this grid or are integer multiples thereof as already explained in Figure 9 Therefore when a four fold height element e g mpchart is configured next to a simple height element WebServer page 1 Demo Compact the next command is default compact off Two elements mpchart 1 DOUBLE SXY Description1 LINE mpshifter 2 Basement OG WEATHER ICE NIGHT CLOCK Multi a clearance is created in the representation...

Page 271: ...st line is as before Now the clearances of Figure 12 can be used when working in Compact mode In Compact mode the elements are not arranged in rows at different heights Since the line mpchart 1 DOUBLE SXY Description1 LINE mpshifter 2 Basement OG WEATHER ICE NIGHT CLOCK Multi configures a mpchart with a double width and four fold height its display projects down into three further lines In the lin...

Page 272: ...mes two occupied unit elements Then a mpshifter is configured in the next line Therefore the side must be at least 6 unit elements wide This is also output by the eibparser Seite 01 Demo mchart 1 mchart 2 o o mpshifter 3 o o o o Ultimately the Web server will output a representation as in Figure 15 Figure 15 Representation example for line feed If you now want the four button button to be displaye...

Page 273: ...I e if the there are equal definitions on more than one pages all buttons with this ID are affected at all pages Activation of the buttons has to be evaluated by the function Button page 247 Element design design DESIGNSTRING Link Path Arguments DESIGNSTRING can be black for a black design well suited for wall mounted touch panels or smart phones DESIGNSTRING can be blue for a blue design shown in...

Page 274: ...4 label texts for mbutton The second and following elements are optional Image A value between 0 and 99 To arrange the application more clearly constants have been predefined page 291 Label A static labeling text first line Access by the user program The image and the text are accessed by the function Display Webdisplay page 248 It is a global button I e if the there are equal definitions on more ...

Page 275: ...button mpbutton ID Text1 Text2 Text254 Image Label Arguments ID Value between 0 and 59 as an index for programming and the access to this element You can also access variables of the section EibPC Text1 Text2 Text254 label texts for mbutton The second and following elements are optional Image A value between 0 and 99 To arrange the application more clearly constants have been predefined page 291 L...

Page 276: ...to Image4 are optional If only three images are defined the element has only three buttons etc Text A static labeling text first line Access by the user program The image and the text are accessed by the function pdisplay S 260 The operation of the buttons has to be evaluated by the function pbutton page 261 Element mshifter mshifter ID Text1 Text2 Text254 Image1 Image2 Image3 Image4 Label Argumen...

Page 277: ...am by the function Chart page 247 as explained in Table 1 Values from the field 1 30 can be represented With every call of this function the values are displayed starting from the left When the end is reached after 47 calls the values are shifted to the left Element mchart mchart ID Height Type Label1 Style1 Label2 Style2 Label3 Style3 Label4 Style4 Arguments ID Value between 0 and 59 as an index ...

Page 278: ...FTGRAF or 1 RIGHTGRAF 0 for marking on the left y axis for one caption on the right y axis or 2 STACK for graphically adding two graphs The outermost envelope is to be understood as the total sum of the individual graphs Buffer ID of the graphs associated with the respective time buffer Values between 0 and 255 as an index for the programming and the access CAUTION The EibPC has a RAM of 64MB To e...

Page 279: ...sual HTML color coding function see https wiki selfhtml org wiki Grafik Farbpaletten This setting is valid globally for all graphs and is placed behind a page command Example WebServer page wsMeter Smartmeter Measuring timechartcolor 1 337755 timechartcolor 2 e5a000 timechartcolor 3 0066ff timechartcolor 4 ffff00 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchhe...

Page 280: ...2 Style3 Style4 value 0 1 2 or 3 constant LINE DOTS LINEDOTS COLUMN Access by the user program XY values are accessed with the function mpchart page 252 in the user program as explained in in Table 1 A mchart manages up to 4 XY diagrams The number of diagrams is specified through the number of arguments Each XY diagram has a legend When you display 4 XY diagrams also 4 legend are displayed 47 floa...

Page 281: ...t are accessed by the function pdisplay page 260 as explained in Table 1 Activation of the slider has to be evaluated by the function getslider page 249 Changing the slider level has to be done by the function setslider page 263 Activation of the button has to be evaluated by the function Button page 247 The input field can be used to directly manipulate the slider value in the web interface Eleme...

Page 282: ...rguments Argument server of data type c1400 Argument user of data type c1400 Argument password of data type c1400 Argument path of data type c1400 Argument timeout of data type u32 in seconds Effect Configuration of an FTP server Updating the dependencies for value change or during the possible invocation of the startup function The FTP transfer writes files to a remote FTP server the maximum file...

Page 283: ...of data type u08 Effect Returns the elapsed time in seconds back since the last transfer Data type result return u32 Definition Function ftpbuffer handle Arguments Argument handle of data type u08 Effect Gives the fill level of the queue of transfers back Datentyp Ergebnis Rückgabe u16 Definition Function flushftp handle Arguments Argument handle of data type u08 Effect Write data manually on the ...

Page 284: ...iven as a string in the representation HH MM SS COLORPICK The input of an RGB color using a standard dialog depending on the web browser The output with webinput p 258 is a 24 bit string Access to the user program The element is addressed via function web input p 258 Elements of web input are always global Element weboutput weboutput ID Dimension style Arguments ID Value between 0 until 59 as inde...

Page 285: ...alue between 1 and 100 as an site index for programming and the access to local site elements first letter p You can also access u08 variables of the section EibPC Quick selection Next and Previous page button according Figure 10 is given by order of page definitions You have to define all elements of a page between the respective page definition and the definition of the next page Group Assignmen...

Page 286: ... set to 2 The header is configurable but then equal for each site Access to the user program none Element footer footer number WWW Link Arguments If number assumes the value 0 footer is hidden You can also access u08 variables of the section EibPC The link incl path and leading http is optional The URL can access an extern resource In this case the number must be set to 2 The footer is configurabl...

Page 287: ... Text Arguments ID Value between 0 and 59 as an index for programming and the access to this element You can also access u08 variables of the section EibPC This element is optically identical to the element button Website http address incl path and leading http of the destination site Image A value between 0 and 99 To arrange the application more clearly constants have been predefined page 291 Lab...

Page 288: ...onsists of five lines and four columns so that a visualization can be created on touchpanels with a resolution of 800x600 pixels However elements not required do not have to be configured A possible configuration with the help of icons page 291 then reads WebServer button 0 INFO InfoText None button 1 Clock Today is line chart 0 10 C 21 5 C 33 C shifter 2 PLUS TEMPERATURE MINUS SetpointValue shift...

Page 289: ...tion always state 1 INACTIVE is set Additional states see page 291 can be set by the function Display Webdisplay page 248 Each icon can have different decorations symbol variations etc In the configuration the compiler sets automatically the state1 INACTIVE More states see page 291 can be set with the function Display Webdisplay page 248 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erla...

Page 290: ...OP 9u08 MAIL 10u08 SCENES 11u08 MONITOR 12u08 WEATHER 13u08 ICE 14u08 NIGHT 15u08 CLOCK 16u08 WIND 17u08 WINDOW 18u08 DATE 19u08 PRESENT 20u08 ABSENT 21u08 REWIND 22u08 PLAY 23u08 PAUSE 24u08 FORWARD 25u08 RECORD 26u08 STOP 27u08 EJECT 28u08 Table 2 Overview of symbol groups Each symbol of a group can be displayed in different occurrences For this up to ten states exist which are again addressed b...

Page 291: ...responds to pressing the buttons in the web browser and sends corresponding information to the processing loop Moreover when pressing a button the icon of a symbol group always changes to the state ACTIVE immediately which is characterized by a lighting effect This aims at facilitating the detection of the activity The application program can now react to this keypress e g by changing the display ...

Page 292: ...D 0u08 INACTIVE 1u08 ACTIVE 2u08 DISPLAY 3u08 STATE4 4u08 STATE5 5u08 STATE6 6u08 STATE7 7u08 STATE8 8u08 BRIGHTRE D 9u08 INFO 0u08 SWITCH 1u08 UP 2u08 DOWN 3u08 PLUS 4u08 MINUS 5u08 LIGHT 6u08 TEMPERATURE 7u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 293: ...ibPC_USA 30 odt 2017 05 11 Version P 294 of 349 BLIND 8u08 STOP 9u08 MAIL 10u08 SCENES 11u08 MONITOR 12u08 WEATHER 13u08 ICE 14u08 NIGHT 15u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 294: ...A 30 odt 2017 05 11 Version P 295 of 349 CLOCK 16u08 WIND 17u08 WINDOW 18u08 DATE 19u08 PRESENT 20u08 ABSENT 21u08 REWIND 22u08 PLAY 23u08 PAUSE 24u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 295: ... odt 2017 05 11 Version P 296 of 349 FORWARD 25u08 RECORD 26u08 STOP 27u08 EJECT 28u08 NEXT 29u08 PREVIOUS 30u08 LEFT 31u08 RIGHT 32u08 CROSSCIRCLE 33u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 296: ...7 05 11 Version P 297 of 349 OKCIRCLE 34u08 STATESWITCH 35u08 PLUG 36u08 METER 37u08 PVSOLAR 38u08 THERMSOLAR 39u08 PUMP 40u08 HEATINGUNIT 41u08 HEATINGPUMP 42u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 297: ... odt 2017 05 11 Version P 298 of 349 FLOORHEATING 43u08 WALLHEATING 44u08 COOLER 45u08 MICRO 46u08 SPEAKER 47u08 RGB 48u08 LUX 49u08 RAIN 50u08 KEY 51u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 298: ...SA 30 odt 2017 05 11 Version P 299 of 349 WASTE 52u08 ASK 53u08 WARN 54u08 NEAR 55u08 CAMERA 56u08 SIGNAL 57u08 DOOR 58u08 GARAGE 59u08 CURTAIN 60u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 299: ...SA 30 odt 2017 05 11 Version P 300 of 349 ANGLE 61u08 ROLLER 62u08 EMAIL 63u08 PETS 64u08 PHONE 65u08 PERSON 66u08 TV 67u08 BEAMER 68u08 RADIO 69u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 300: ...SA 30 odt 2017 05 11 Version P 301 of 349 RECIEVER 70u08 MEDIA 71u08 STOVE 72u08 FRIDGE 73u08 WASHER 74u08 DISHWASHER 75u08 HOLIDAY 76u08 SLEEP 77u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 301: ...HandbuchEibPC_USA 30 odt 2017 05 11 Version P 302 of 349 UPDATE 78u08 Table 5 Overview icons blue design Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 302: ...D 0u08 INACTIVE 1u08 ACTIVE 2u08 DISPLAY 3u08 STATE4 4u08 STATE5 5u08 STATE6 6u08 STATE7 7u08 STATE8 8u08 BRIGHTRE D 9u08 INFO 0u08 SWITCH 1u08 UP 2u08 DOWN 3u08 PLUS 4u08 MINUS 5u08 LIGHT 6u08 TEMPERATURE 7u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 303: ...ibPC_USA 30 odt 2017 05 11 Version P 304 of 349 BLIND 8u08 STOP 9u08 MAIL 10u08 SCENES 11u08 MONITOR 12u08 WEATHER 13u08 ICE 14u08 NIGHT 15u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 304: ...A 30 odt 2017 05 11 Version P 305 of 349 CLOCK 16u08 WIND 17u08 WINDOW 18u08 DATE 19u08 PRESENT 20u08 ABSENT 21u08 REWIND 22u08 PLAY 23u08 PAUSE 24u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 305: ... odt 2017 05 11 Version P 306 of 349 FORWARD 25u08 RECORD 26u08 STOP 27u08 EJECT 28u08 NEXT 29u08 PREVIOUS 30u08 LEFT 31u08 RIGHT 32u08 CROSSCIRCLE 33u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 306: ...17 05 11 Version P 307 of 349 OKCIRCLE 34u08 STATESWITCH 35u08 PLUG 36u08 METER 37u08 PVSOLAR 38u08 THERMSOLAR 39u08 PUMP 40u08 HEATINGUNIT 41u08 HEATPUMP 42u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 307: ... odt 2017 05 11 Version P 308 of 349 FLOORHEATING 43u08 WALLHEATING 44u08 COOLER 45u08 MICRO 46u08 SPEAKER 47u08 RGB 48u08 LUX 49u08 RAIN 50u08 KEY 51u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 308: ...SA 30 odt 2017 05 11 Version P 309 of 349 WASTE 52u08 ASK 53u08 WARN 54u08 NEAR 55u08 CAMERA 56u08 SIGNAL 57u08 DOOR 58u08 GARAGE 59u08 CURTAIN 60u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 309: ...SA 30 odt 2017 05 11 Version P 310 of 349 ANGLE 61u08 ROLLER 62u08 EMAIL 63u08 PETS 64u08 PHONE 65u08 PERSON 66u08 TV 67u08 BEAMER 68u08 RADIO 69u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 310: ...dt 2017 05 11 Version P 311 of 349 RECIEVER 70u08 MEDIA 71u08 STOVE 72u08 FRIDGE 73u08 WASHER 74u08 DISHWASHER 75u08 HOLIDAY 76u08 SLEEP 77u08 UPDATE 78u08 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 311: ...HandbuchEibPC_USA 30 odt 2017 05 11 Version P 312 of 349 Table 6 Overview icons black design Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 312: ...e address 3 4 5 The following user program arises EIBPC DoubleClick 0 if event 0 0 1 b01 and 0 0 1 b01 EIN then DoubleClick DoubleClick 1 endif if after DoubleClick 1 800u64 then write 3 4 5 b01 EIN endif if after DoubleClick 1 800u64 and DoubleClick 2 then write 3 4 6 b01 EIN endif if after DoubleClick 1 1000u64 then DoubleClick 0 endif To transfer this functionality to additional buttons and gro...

Page 313: ...gram would generate a faulty behavior Runtime errors or syntax errors due to the erroneous use of e g group address assignments first occur at the expansion of the macro You can document your macros directly in the source code for the application For this the keyword info exists At the first position after the keyword the description of the function is located followed by a description of each arg...

Page 314: ...ates the cosh function return exp x exp x 2f32 end Additionally the return command could be left due to compatibility reasons to older macros so the code begin cosh x info Calculates the cosh function exp x exp x 2f32 end is still equivalent to the code above If the last line before end is empty or only spaces no return value is defined So it is a good coding style always to use return return can ...

Page 315: ...ith define DEBUG a message is sent via UDP In the event that the define DEBUG is uncommented no messages will be sent A special feature is the use of __EMPTY This statement ensures that the macro does not expand and does not generate any code x 3 If x 5 then x x 2 vmDebugUDP x ist nun convert x endif Now with active define DEBUG via UDP the value is automatically transferred to the receiver at run...

Page 316: ...s to 1 7 W Access In order to access the KNXTM bus the Enertex EibPC requires a KNXTM interface For this either an external EIB RS232 interface for the FT1 2 protocol or an IP interface is required Operating system Debian Linux 2 6 29 rt1 The corresponding software sources are provided by us for a handling fee at any time HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 9130...

Page 317: ...r2 Comparison of sizes Var1 Var2 Comparison of sizes Hysteresis Var LowerLimit UpperLimit The argument Var is compared with the variables LowerLimit and UpperLimit with a hysteresis function Conversion convert Var1 Var2 Converts the data type of Var1 to that of Var2 Caution Data may be lost Arithmetic operators Var1 Var2 VarN Addition Var1 Var2 VarN Subtraction Var1 Var2 VarN Multiplication Var1 V...

Page 318: ...sTime xT Control Binary value msTime Time in ms 264 xT remaining time in ms delay Signal Time At the transition of the variable Signal from OFF to ON the function starts a timer and sets the return value of the function to ON After the expiry of the time in ms the output returns to OFF delay Signal Time xT At the transition of the variable Signal from OFF to ON the function starts a timer and sets...

Page 319: ...m Minutes 0 59 cstime ss Minute comparator time switch ss Seconds 0 59 Synchronization with the KNXTM bus gettime address Sets the system time of the Enertex EibPC anew settime Writes the system time of the Enertex EibPC to the KNXTM bus getdate address Sets the date of the Enertex EibPC anew setdate Writes the date of the Enertex EibPC to the KNXTM bus gettimedate address Sets the system time and...

Page 320: ...f the actuators etc reply the result is determined as the return value of the function Bus Activity event GroupAddress Return value 1b01 ON pulse when a telegram with the group address is on the KNXTM bus regardless of its content eventread GroupAddress Return value 1b01 ON pulse when a Read telegram with the group address has been written on the KNXTM bus regardless of its content eventresponse G...

Page 321: ...GroupAddress Return value 1b01 ON impulse when a telegram is sent on the KNXTM bus regardless of its content initGA GroupAddress Send a read telegramm before processing user programm random Max Returns a random number in the range of 0 to Max systemstart At system start all given variables are updated Network functions closetcp port address The Enertex EibPC closes a TCP connection connecttcp port...

Page 322: ...data type the result is truncated to this length find String1 String2 Pos1 String1 Character string a partial character string shall be searched for in String2 Character string to be searched for Pos1 Ignore the first pos1 incidences of the character string to be searched for The function returns the position of the first character of the found character string 0 1399u16 It returns 1400u16 if the ...

Page 323: ...n also access u08 variables of the section EibPC The link incl path and leading http is optional The URL can access an extern resource In this case the number must be set to 2 The header is configurable but then equal for each site footer Number WWW Link If number assumes the value 0 footer is hidden You can also access u08 variables of the section EibPC The link incl path and leading http is opti...

Page 324: ...and the access to this element You can also access variables of the section EibPC Image1 to Image4 A value between 0 and 99 Image2 to Image4 are optional If only three images are defined the element has only three buttons etc Text A static labeling text first line mshifter ID Text1 Text2 Text254 Image1 Image2 Image3 Image4 Label ID Value between 0 and 59 as an index for programming and the access ...

Page 325: ...ge A value between 0 and 99 To arrange the application more clearly constants have been predefined page 291 Label A static labeling text first line eslider ID Image Min Increment Max Description Label ID Value between 0 and 59 as an index for programming and the access to this element You can also access u08 variables of the section EibPC Image A value between 0 and 99 To arrange the application m...

Page 326: ... and accessing this element You can also access V08 variable definitions in the EibPC section Height Value 0 1 or 2 or constant SINGLE DOUBLE and HALF Webserver elements functionality button ID By operating the button of a web button element e g button or shifter with the id the function assumes a value not equal to zero for the duration of one processing pass and zero in all other cases Identical...

Page 327: ...esses the pslider that refers to a page and returns its position 0 to 255 If there are multiple occurrences of id all elements of this id on the web page with page_id are addressed geteslider ID The function addresses the eslider and returns its position 0 to 255 If there are multiple occurrences of id all elements of this id are addressed getpeslider ID PageID The function addresses the peslider ...

Page 328: ...ction webbutton of former releases button ID Image Text ID Value between 0 and 59 as an index for programming and the access to this element You can also access variables of the section EibPC Image A value between 0 and 99 Text A static labeling text first line callscene GroupAddressSceneActuator Number A scene actuator shall recall its scene with the corresponding number change Var1 Return value ...

Page 329: ... 31 day dd Daily comparison dd Day 1 31 delay Signal Time xT At the transition of the variable Signal from OFF to ON the function starts a timer and sets the return value of the function to ON After the expiry of the time in ms the output returns to OFF xT Remaining time delay Signal Time At the transition of the variable Signal from OFF to ON the function starts a timer and sets the return value ...

Page 330: ...n on the KNXTM bus regardless of its content eventwrite GroupAddress Return value 1b01 ON pulse when an write telegram with the group address has been written on the KNXTM bus regardless of its content exp Var1 Exponential function find String1 String2 Pos1 String1 Character string a partial character string shall be searched for in String2 Character string to be searched for Pos1 Ignore the first...

Page 331: ... ss Daily time switch ss Seconds 0 59 mm Minutes 0 59 hh Hours 0 23 Hysteresis Var LowerLimit UpperLimit The argument Var is compared with the variables LowerLimit and UpperLimit with a hysteresis function if then else endif If then else if then endif If then initGA GroupAddress Send a read telegramm before processing user programm Line Text The element inserts a divider between two lines link ID ...

Page 332: ...cess to this element You can also access variables of the section EibPC Text1 Text2 Text254 label texts for mbutton The second and following elements are optional Image A value between 0 and 99 To arrange the application more clearly constants have been predefined page 291 Label A static labeling text first line mpchart ID VarX VarY Index PageID This function addresses the element mpchart that ref...

Page 333: ...of the section EibPC Image A value between 0 and 99 Text A static labeling text first line pchart ID Var X1 X2 PageID This function addresses the XY diagram chart If there are multiple occurrences of id on the web page of PageID all elements of this id are addressed X1 X2 The labeling of the x axis pchart ID Y0 Y1 Y2 ID A value between 0 and 255 as an index for programming and the access to this e...

Page 334: ...een predefined page 291 Label A static labeling text first line random Max Returns a random number in the range of 0 to Max read GroupAddress An EIB telegram with a read request to the group address is generated on the bus If the actuators etc reply the result is determined as the return value of the function readknx Adr String Converting of a telegram an decoding its information readrawknx contro...

Page 335: ...ments of this id are addressed settime Writes the system time of the Enertex EibPC to the KNXTM bus settimedate Writes the system time and the date of the Enertex EibPC to the KNXTM bus shifter ID Image1 Image2 Image3 Image4 Text ID Value between 0 and 59 as an index for programming and the access to this element You can also access variables of the section EibPC Image1 to Image4 A value between 0...

Page 336: ...he concerned location sunrisehour Hour at sunrise of the current day sunriseminute Minute at sunrise of the current day sunsethour Hour at sunset of the current day sunsetminute Minute at sunset of the current day systemstart At system start all given variables are updated tan Var1 Tangent Var1 Var2 VarN Subtraction Var1 Var2 Comparison of sizes Var1 Var2 VarN Multiplication Var1 Var2 VarN Divisio...

Page 337: ...sets the Graphic The available standard graphics are selectable to the lower right in the Enertex Enertex EibStudio encoded as predefined values write GroupAddress Value A valid EIB telegram is generated on the bus writeresponse GroupAddress Value Responds to a read request by a valid telegram generated by KNXTM which writes the value to the group address is sent to the bus wtime dd hh mm ss Weekl...

Page 338: ... WEEKEND 8u08 END 65534u16 EOS 65535u16 GREY 1u08 GREEN 2u08 BLINKRED 3u08 BLINKBLUE 4u08 INFO 0u08 SWITCH 1u08 UP 2u08 DOWN 3u08 PLUS 4u08 MINUS 5u08 LIGHT 6u08 TEMERATURE 7u08 BLIND 8u08 STOP 9u08 MAIL 10u08 SCENES 11u08 MONITOR 12u08 WEATHER 13u08 ICE 14u08 NIGHT 15u08 CLOCK 16u08 WIND 17u08 WINDOW 18u08 DATE 19u08 DARKRED 0u08 INACTIVE 1u08 ACTIVE 2u08 HandbuchEibPC_USA 30 odt 2017 05 11 Enert...

Page 339: ...ariables P 340 of 349 DISPLAY 3u08 STATE4 4u08 STATE5 5u08 STATE6 6u08 STATE7 7u08 STATE8 8u08 BRIGHTRED 9u08 HandbuchEibPC_USA 30 odt 2017 05 11 Enertex Bayern GmbH Erlachstraße 13 91301 Forchheim mail enertex de ...

Page 340: ...out ERR_ASIN_OF_ARG_OUT_OF_RANGE The error was asin When processing function detected that the argument outside the interval 1 1 is The calculation is therefore carried out ERR_ACOS_OF_ARG_OUT_OF_RANGE When processing the acos function the error was detected that the argument outside the interval 1 1 is The calculation is therefore carried out ERR_DIVISION_BY_ZERO During processing of a division o...

Page 341: ... 2 interface ERR_FT12_IN_BUFFER_FULL It is an error when connecting to the FT1 2 interface occurred ERR_MEM_OBJECTS_COUNT Obsolete in V3 ERR_MEM_OBJECT_OBJECT_TYPE Obsolete in V3 ERR_MEM_OBJECT_CALC_TYPE Obsolete in V3 ERR_MEM_OBJECT_BIT_LEN Obsolete in V3 ERR_MEM_OBJECT_DATA_SIZE Obsolete in V3 ERR_MEM_OBJECT_NAME Obsolete in V3 ERR_MEM_OBJECT_EXPRESSION Obsolete in V3 ERR_MEM_OBJECT_INPUT_COUNTE...

Page 342: ...haps the EibPC with the current application program is temporarily overloaded ERR_MSGSND_UDP_IN_0 A received UDP message could not be passed to the application program because an internal queue was not available Perhaps the EibPC with the current application program is temporarily overloaded ERR_MSGSND_PING_0 The ping function could not be executed because an internal queue was not available Perha...

Page 343: ...predefined variables are listed in the Enertex EibStudio in the right section of the window They cannot be defined again Datatypes of parameters are not the same sun 1 The return value of the function is binary A number without the definition of a data type is always an unsigned 8 bit value As a relational operator a binary value must be given sun 1b01 Syntax error in line 13 a 4 6e1f32 Valid unti...

Page 344: ...day p 182 New function eastermonth p 183 SHUTDOWN variable for controlling storage in the user program p 213 New function timebuffervalue p 257 New function timebufferclear S 255 New function writeflashvar p 199 New function readflashvar p 198 Changing communication ports UDP and TCP of the Enertex EibPC p 235 New web server element timechartcolor p 280 New function tostring S 226 Description of t...

Page 345: ... p 283 Detailed example for using the new FTP functions p 110 New and enlarged functions of time series New function encode p 226 and p 108 Variable length of time series are possible p 220 New function capacity p 226 Definition changed EOS on 65535 Definition changed END on 65534 Detailed example for encoding of c14 strings and encode p 108 Conatenating strings of different length p 109 New funct...

Page 346: ...on devicenr p 209 New function ping p 241 New function afterc p 195 New function delayc p 193 Supplement firewall problems and solutions Supplement NTP functions 174 Correction of typos Supplement to readflash and writeflash p 197 Supplement to connecttcp p 238 New function sendtcparray p 240 New function sendudparray p 237 Version 19 Patches 2 10x EibStudio 2 10x Supplement to text syles Suppleme...

Page 347: ...ackets at if statements p 38 p 126 Address function p 230 Eval function p 211 Stringcast function p 221 Stringset function p 221 Button function p 247 Chart function p 247 Getslider function p 249 Getpslider function p 249 Getpeslider function p 249 Pbutton function p 261 Mpchart function p 252 Mpbutton function p 252 Pdisplay function p 260 Pchart function p 260 Setslider function p 263 Setpslide...

Page 348: ... to variable definitions p 45 New symbol template WebElement for formating the web configuration commands e g page Adaption of the intern config file 5 web elements Storing of telegrams at a FTP 142 Auslagern auf FTP Verzeichnis p 60 and 142 Performance settings p 127 All Eibstudio screenshots have been updated Screenshots show now the Eibstudio V1 207 Win XP New Debugger explained at p 144 Handbu...

Reviews: