Embedded Systems LM5p-GSM Product Manual Download Page 150

150 

 

 

Image

 

– Add specific image on the visualization 

 

Frame

 

– add frame object to the visualization 

 

Gauge

 

– Metering gauge  

 

Camera

 – IP web camera integration into visualization 

 

Graph

 – Real-time graph to monitor value of scale-type objects   

 
While in editing mode, on the left side you can change plan resolution on the fly 
 

 

 
When some object is selected and in the editing mode, there appears Delete / Duplicate 
buttons so you can either delete or copy the object 

 

 

6.9.2.

 

Object 

 

 

 

Main  object

  –  list  of  existing  group  addresses  on  KNX/EIB  bus,  the  ones  available  for 

configuration in 

Objects

 tab 

 

Status object

 – list of status objects on KNX/EIB bus 

 

Custom name

 – Name for the object 

 

Read-only

 – the object is read-only, no write permission 

 

Hide in touch

– do not show this object in 

Touch Visualization 

 

Hide background

– Hide icon background  

 

Send fixed value

– Allows to send specific value to the bus each time the object is 

pressed 

 

No bus write 

– do not send telegram into the bus once clicked on this object in 

Usermode/Touch visualizations 

 

PIN code 

– PIN code which will be asked to provide when click on this object to perform 

group write 

 

Widget 

– specify widget which will be launched when click on this object 

 

Display mode [icon and value; icon; value] 

– how to display the object 

 

Touch icon 

– icon for Touch visualization 

 

On icon 

– 

On state icon for binary-type objects. Icons library is located in 

Vis.graphics 

 

Icons tab

 

 

Off icon 

Off state icon for binary-type objects. Icons library is located in 

Vis.graphics 

 

Icons tab 

 

Additional classes 

– additional CSS classes for the element

 

 

Show control 

–scale-type object 

specific setting defining 

either to show the control in 

Usermode visualization 

without icon  

 

Show value background 

– show value background color 

 
 

Summary of Contents for LM5p-GSM

Page 1: ...0003411103 47 Katolu str Riga LV 1003 LATVIA Phone 371 67648888 fax 371 67205036 e mail sales openrb com LogicMachine5 Reactor GSM LM5p GSMC LM5p GSM Product Manual Document Issue 1 0 October 2018 Technical Support support openrb com ...

Page 2: ...exibility benefit to end users in a cost effective way LM5p GSM is an embedded platform with integrated Ethernet USB CAN FT or KNX TP1 1 Wire Serial interfaces and I O ports LM allows to use it as cross standard gateway logic engine visualization platform IP Router 3G for internet access Scripting templates provides user friendly flexible configuration interface and integration with cloud web serv...

Page 3: ...health or life or with application that can result danger of people animals or real value Mounting advice The devices are supplied in operational status The cables connections included can be clamped to the housing if required Electrical connection The devices are constructed for the operation of protective low voltage SELV Grounding of device is not needed When switching the power supply on or of...

Page 4: ...ION DEVELOPMENT 56 6 LOGICMACHINE CONFIGURATION 67 6 1 REACTOR 68 6 1 1 Universal input output 68 6 1 2 Output Binary 69 6 1 3 Input Voltage 70 6 1 4 Input Binary On Off 71 6 1 5 Input Binary Short Long 72 6 1 6 Input Step dimmer 1 byte 73 6 1 7 Input Relative dimmer 4 bit 74 6 1 8 Input Pulse meter 75 6 1 9 Input Frequency 76 6 1 10 Voltage input 77 6 1 11 Current clamp input 78 6 2 SCRIPTING 79 ...

Page 5: ... 6 4 1 Export logs 133 6 5 SCHEDULERS 135 6 5 1 Add new scheduler 135 6 5 2 Scheduler events 135 6 5 3 Scheduler holidays 137 6 5 4 Direct link 137 6 6 TREND LOGS 137 6 6 1 Add new trend log 138 6 6 2 Direct link 139 6 6 3 Trend logs functions 139 6 7 SCENES 140 6 8 VISUALIZATION STRUCTURE 142 6 8 1 Levels Plans 143 6 8 2 Layouts Widgets 145 6 9 VISUALIZATION 149 6 9 1 Plan editor 149 6 9 2 Object...

Page 6: ... 12 5 ADDING MODBUS DEVICE 206 12 6 PROGRAM ADDRESS FOR UIO20 MODBUS DEVICE 207 12 7 MODBUS SLAVE EXAMPLES 207 13 BACNET IP INTERCONNECTION WITH LM 217 13 1 BACNET SERVER MODE TRANSPARENT DATA TRANSFER TO BACNET NETWORK 217 13 2 BACNET CLIENT MODE 219 14 DALI CONFIGURATION 222 14 1 DALI OBJECT MAPPING 224 14 2 ACCESS DALI BUS FROM SCRIPTS 224 15 1 WIRE CONFIGURATION 233 16 DMX INTERCONNECTION WITH...

Page 7: ...IGURATION 276 27 4 DEVICE CONFIGURATION 279 27 5 LOCATIONS 283 27 6 REPORTS 284 27 7 MONITORING THE FIELDBUS LINE 284 27 8 WRITE DEVICE PHYSICAL ADDRESS 287 27 9 SEE CURRENT PHYSICAL ADDRESS OF THE DEVICE 287 27 10 PROJECT CONFIGURATION 288 27 11 NEW DEVICE PROFILES 288 27 12 FIND DEVICE IF YOU HAVE SEVERAL OF THEM IN THE LINE 289 27 13 CONNECTION HELPER 289 27 14 RESET THE DEVICE 290 27 15 ACCESS...

Page 8: ...V DC Passive Power over Ethernet Power consummation 1 3W Interface GSM module with Antenna 1 Push push micro SIM connector 1 10BaseT 100BaseTX 1 RS 485 1 RS 485 RS 232 1 switchable in software full duplex RS232 half duplex RS485 USB2 0 1 Analog input Digital output 16 Analog input 0 10V 1 Analog inputs for current Measurement clamps 3 sensor specification 1 Wire 1 CAN FT 1 protocol features GSM mo...

Page 9: ...y Screw 5 mm2 Serial Screw 3 5 mm2 I O Screw 3 5 mm2 1 wire Screw 3 5 mm2 Operating elements LED 1 CPU load 1 Activity Enclosure Material Polyamide Color Gray Dimensions 61 W x90 H x108 L mm Usage temperature 0C 45C Storage temperature 15C 55C Weight 150g Warranty 2 years Relative Humidity 10 95 without condensation ...

Page 10: ...10 1 Terminal connection schemes Model ...

Page 11: ...own passive PoE powering over 24V DC Jumpers down Please note that there are two PoE types of PoE switches adapters passive and active 802 3af In passive mode 4 Ethernet cable wires are used for data and 4 are used for power In active PoE mode data and power goes together Passive PoE switch Passive PoE adapters ...

Page 12: ...12 canX connection Powering over 24V terminals ...

Page 13: ...able either it works as RS 485 or as RS 232 If it is set up as full duplex it will operate as RS 232 and respective TX RX GND screw terminals should be used If it is set up as half duplex it will operate as RS 485 and respective A B GND screw terminals should be used RS 485 is chosen in this case RS 232 is not activated ...

Page 14: ...onnection If second serial port is set as full duplex in LogicMachine configuration it will operate as RS 232 and respective TX RX GND screw terminals should be used RS 232 is chosen in this case RS 485 is not activated ...

Page 15: ...15 Digital output e g relay contactor ...

Page 16: ...16 Digital or Analog input e g pushbutton or 0 5V current measurement sensor ...

Page 17: ...17 Digital input e g pushbutton ...

Page 18: ...18 1 wire connection ...

Page 19: ...19 2 Standards supported ...

Page 20: ... through USB modem DMX512 through RS485 DALI through RS485 gateway 1 Wire AllJoyn Ekey biometrical access systems RS485 HVAC systems can be controller through RS485 Ethernet interface by using scripting SMTP Email SSL SIP XML export object values alerts or errors integration with Fidelio RSS read Error or Alert tab content JSON XMPP MQTT REDIS etc The system is made so that each of the standards c...

Page 21: ... startup guide 3 1 Insert SIM card 1 Open front cover of the enclosure with help of screwdriver by pushing to yourself the side edge of base cover 2 Open MicroSIM holder by moving down the top part and lifting up ...

Page 22: ...22 3 Insert SIM card and close the holder Close the front cover ...

Page 23: ...o the device either through separate 24V crew terminals or through Passive 24V DC Power Over Ethernet 3 Connect Ethernet LAN cable coming from the PC switch 3 3 Setting up 3G modem In System configuration go to Network 3G PPP connection Fill required fields depending on your 3G operator settings apply settings ...

Page 24: ... for OS X 3 5 Factory default You can either reboot the device by pressing RESET button or reset the configuration to factory defaults Press and hold for 10 sec reboot the device Press and hold for 10 sec reset networking with IP to factory default Press and hold for 10 sec and again press and hold for 10 sec full reset of configuration to factory defaults For more info please see here http openrb...

Page 25: ... only if the IP address is given otherwise it s hidden Network mask network mask By default 255 255 255 0 24 Gateway IP gateway IP address DNS server DNS server IP address MTU maximum transmission unit the largest size of the packet which could be passed in the communication protocol By default 1500 When changes are done the following icon appears in the top right corner This should be applied cha...

Page 26: ... can find out the IP Windows PC ServiceBrowser Linux PC Avahi Android ZeroConf Browser iOS Discovery Windows PC Easiest way is by using the utility ServiceBrowser which can be downloaded here http marknelson us 2011 10 25 dns service discovery on windows Linux PC The utility called Avahi can be downloaded here www avahi org ...

Page 27: ...e https play google com store apps details id com grokkt android bonjour hl en iOS Mac OS The freely available app called Discovery can be downloaded in App Store https itunes apple com en app discovery bonjour browser id305441017 mt 8 For iPad install the iPhone iPod version of the utility ...

Page 28: ...achine Firmwares are available in a form of images and could be downloaded from support page ofwww openrb com Complete system upgrade can be done in System Configuration System Upgrade firmware LogicMachine visualization upgrade or patch installation can be done in Utilities tab and press on Install updates icon After LMU file is chosen from the corresponding location press Save button The device ...

Page 29: ...th ETS To use LogicMachine with KNXnet IP functionality and program other KNX bus devices the device should be added into ETS Connection Manager Go to Extras Options Communication Configure interfaces Put some freely chosen Name for the connection Chose Type KNXnet IP ...

Page 30: ... window select newly created interface as Communication Interface from the drop down menu To test the communication with ETS press Test button Make sure that bus status is Online press button in ETS 3 10 KNX and IP Router settings KNX specific configuration is located in System configuration Network KNX connection window ...

Page 31: ...ge receipt of telegram to all group communication Parameter KNX corresponding interface in OS of the system KNX address KNX physical address of the device KNX IP features Use this device with KNX IP features e g for KNXnet IP network configuration Multicast IP multicast IP address Multicast TTL Time to live for multicast telegram in seconds Maximum telegrams in queue count of maximum telegrams in ...

Page 32: ... g 1 1 to filter all addresses in the given line DST group policy No filter Accept selected group addresses Drop selected group addresses policy to apply to the list of destination group addresses Group address list list of group addresses One address range per line Use e g 1 1 to filter all addresses in the given line Note KNX IP features should be on for filter to work Filtering lists are update...

Page 33: ...policy to objects added in Objects tab as virtual objects without attraction to bus SRC policy No filter Accept selected individual addresses Drop selected individual addresses policy to apply to the list of source individual addresses Ind address list list of individual addresses One address range per line Use e g 1 1 to filter all addresses in the given line ...

Page 34: ...System config Network KNX connection if You have finished programming your KNX devices from ETS and this is not needed anymore This will protect from situation when somebody is in the same LAN and by using ETS it s very easy to access KNX bus through LM No IP filter tables are used 6 If you are not sure of your ISP or there is public access we recommend using HTTPS access to LM instead of HTTP htt...

Page 35: ...ed first and then all the rest 10 There are cases when somebody tries to reprogramm KNX devices We can supply KNX devices that blocks all peer to peer telegrams which are used for device rogramming while keeping group communication unchanged 3 12 Quick guide MOSAIC application for easy visualization Mosaic app is the fastest way to create a nice visualization for your installation Getting started ...

Page 36: ...36 ...

Page 37: ... For example entering one of room you see the following view There are also Control Type shortcuts on the left side by clicking on Settings button In Settings you can also change skin of the visualization ...

Page 38: ...or it and press enter This will take you to the screen of the new room Now you can start to fill it with widgets If you want to rename or delete a room just right click on it s title and select the option you want Widgets To add new widget on the home or room screen just click to Add new widget at the top right corner to open the widgets panel Once you opened the widget panel choose a widget you w...

Page 39: ...e for this widget and link KNX objects to widget s controls After you ve set up a widget click on the Add this widget button Well done the widget on the screen Right click on it to see edit it s properties or delete the widget ...

Page 40: ...ontent uploads 2016 11 Mosaic_widgets_eng pdf Here you can download couple of custom widgets examples together with the instruction on how to install them http forum logicmachine net showthread php tid 122 pid 2651 pid2651 3 13 Quick guide create visualization for iPad PC You can download ready LM backup files here http forum logicmachine net showthread php tid 196 Import objects Fastest way is to...

Page 41: ...once they are activated Objects can be added manually as well Prepare graphics Either in Adobe Illustrator or any ready images can be used In this example we use professionally created designs in Illustrator in SVG form so we can do scaling depending of the screen size and not losing the quality ...

Page 42: ...42 a basic background which can be changed by necessity b foreground which will stay unchanged ...

Page 43: ...e Vis Graphics Images Backgrounds Prepare set of icons preferably in SVG form and add them in Logic Machine Vis Graphics Icons Or you can use icons predefined in LogicMachine by default Create floor structure and add objects to the map ...

Page 44: ...re uploaded Use icon to add floor In this example we will create a new floor named 1_page_H and Bathroom_H First Floor will be a dashboard with link to other rooms and functions Choose screen resolution for which you are creating this visualization choose first and second background images from the ones added before ...

Page 45: ... and floor structure is defined it is visualized in Visualization tab Controlled and monitored objects can be added and managed in this section Both side bars can be minimized by pressing on left right arrow icon making the map more visible especially on small displays ...

Page 46: ... control Add link by clicking on Link tab choosing specific icon scale it and place in desired location This example s secondary background already contains icons on it so what is needed is to add transparent image in Vis graphics and add this image on top of every icon When all links are defined press Save and reload floor plan button In same way fill the Bedroom plan with object parameters in Ob...

Page 47: ...Pad is connected wirelessly to the Logic Machine In the browser enter Logic Machine s IP default 192 168 0 10 Click on the User mode visualization Save the application as permanent shortcut in your iPad Touch visualization is also automatically created with list of Floor objects ...

Page 48: ...48 ...

Page 49: ...l login a default page appears Logic Machine visualization creator scripts object relations alerts KNX objects and KNX objects designing building view and visualization maps System config IP and KNX specific configuration Visualization defined visualization maps with objects Touch Visualization system for iPhone iPod iPad Android touch screen devices Schedulers User defined schedulers Trend logs T...

Page 50: ...remove apps sort order etc Note that the mentioned settings are individual for each device you are connecting from 4 1 Customize background Language By clicking on Customize icon you access the window where you can choose background image of your first screen for this particular device You can choose the interface language by clicking on Language drop down menu ...

Page 51: ... you choose the style the interface is automatically set to chosen background 4 2 Find applications By clicking on the zoom icon on the left top corner you can quickly find applications containing search phrase ...

Page 52: ...is available when the screen is unlocked Press Unlock icon for this purpose If you press Visibility icon you will be able to hide unhide apps from main screen This setting can be disabled by admin For example if you disable specific apps and finish sorting click Lock icon to see the new screen ...

Page 53: ...o show or hide apps for end users as shown in 4 3 Change default page view for users While in admin mode do the necessary page adjustments you can change background texture hide unhide sort apps by using same icons as in user mode see 4 3 Once all necessary changes are done click on Save icon to save the default page Add remove apps Click on plus icon to enter the administration window of apps If ...

Page 54: ...nt page you see available applications You can add the App to your first screen by clicking on Install button and approve the choice The installed Apps will appear then in Installed section where you can uninstall them by necessity ...

Page 55: ...icking on Install from file entry To update app click on respective Update icon or from main administration screen on the following icon By pressing on this icon you will be redirected to initial front page Exit admin mode Click icon to exit admin mode ...

Page 56: ...irectory in the same window Applications must provide a Back button so user can return to starting page icon svg or icon png required for apps contains application icon SVG is recommended widget lp or widget js required for widgets can contain JavaScript Lua code or pure JavaScript source which displays widget contents title optional for apps text file with title that is shown beneath the icon url...

Page 57: ...provides an object with all configuration key value pairs config check to app triggered when Save button is clicked app configuration must either show an error message if configuration is invalid or trigger config save config save from app saves configuration on server side and closed modal window application must pass configuration parameters as an object Configuration can be accessed from Lua us...

Page 58: ...ement input myapp input input element set element values when config is loaded el on config load function event data each data function key value myapp key val value runs when Save button is clicked el on config check function var val parseInt input val 10 input value min parseInt input attr min 10 minimum value max parseInt input attr max 10 maximum value invalid value if isNaN val val min max va...

Page 59: ...e serialized using JSON stringify storeSet key value sets key value pair storeGet key retrieves key value returns null when key is not found storeRemove key removes key from storage Storage keys must be prefixed with unique application name to minimize collisions between different applications Examples Get currently selected theme light dark var theme storeGet theme light Store JavaScript objects ...

Page 60: ...mylang mylang hello Hello username current temperature is temperature goodbye Goodbye username var text tr myapp hello No translation username John temperature 21 alerts Hello John current temperature is 21 if current language is mylang otherwise alerts No translation alert text Example 2 You can apply translation to jQuery selectors by using tr function all HTML elements that have tr class and da...

Page 61: ...iables ending output with CRLF write similar to print but does not output CRLF at the end escape val escape single double quotes less than greater than characters to HTML entities Library package is loaded via require apps and provides access to these functions all built in LM functions alert log grp storage etc config library vprint and vprinthex functions to view variable contents in human reada...

Page 62: ...estamp format Use os date to convert to readable date formats name unique object name datatype object data type decoded set to true when decoded value is available value decoded object value grp tag tags mode Returns a table containing objects with given tag Tags parameter can be either table or a string Mode parameter can be either or default returns objects that have any of given tags or and ret...

Page 63: ...given alias grp read alias Sends group read request to given alias Note this function returns immediately and cannot be used to return the result of read request Use event based script instead grp update alias value datatype Similar to grp write but does not send new value to the bus Useful for objects that are used only in visualization Tag manipulation grp gettags alias Returns a table with all ...

Page 64: ... uint32 name optional unique object name If an object with the same name already exists numeric prefix will be added comment optional object comment string units optional object units suffix string address optional object group address string If not set the first free address from configured range will be used tags optional object tags can be either a string single tags or Lua table consisting of ...

Page 65: ... and where parameters must not have fields that are not present in given database table Otherwise query will fail db insert tablename values performs INSERT query based on given values db update tablename values where performs UPDATE query based on given values and where parameters db delete tablename where performs DELETE query based on where parameter SELECT helpers Note parameters must be passe...

Page 66: ... table SET field WHERE id test 42 Same as INSERT INTO table id value VALUES 42 test db insert table id 42 value test Same as UPDATE table SET value test WHERE id 42 db update table value test id 42 Same as DELETE FROM table WHERE id 42 db delete table id 42 ...

Page 67: ...tor Vis structure visualization structure definition Visualization Visualization creation control and monitoring Vis graphics icon background font management Utilities utilities including import from ETS reset object DB backup update system installation User access user access level definition BACnet BACnet client with scanner Power meter voltage current power value mapping to KNX objects DALI DAL...

Page 68: ...ab No additional software is needed to configure KNX mapping of IO ports 6 1 1 Universal input output You can set up Universal I O port as binary output voltage input binary ON OFF input binary SHORT LONG input Step dimmer 1 byte Relative dimmer 4 bit Pulse meter and Frequency meter ...

Page 69: ...p to 6 objects to one output Status object status object group address Lock object lock object group address Write to bus defines either to write or not to bus on value change Mode port operating mode Invert output defines either to invert the output value On delay seconds delay in seconds when getting in On state Off delay seconds delay in seconds when getting in Off state Comments comment of the...

Page 70: ...Lock object lock object group address Write to bus defines either to write or not to bus on value change Mode port operating mode Send delta send the data upon specific delta value has changed Send timer seconds time interval to send the reading Value compensation compensation of the value Base value at 0V value at 0V Multiplier multiplier for the received value Comments comment of the object ...

Page 71: ...ot to bus on value change Mode port operating mode On press rising edge Send 0 Send 1 Toggle action on rising edge On release falling edge Send 0 Send 1 Toggle action on falling edge Midpoint voltage voltage midpoint to determine the On Off state Input hysteresis V If binary input is OFF it will change to ON when voltage level is above MIDPOINT HYSTERESIS If binary input is ON it will change to OF...

Page 72: ...xt free group address Lock object lock object group address Write to bus defines either to write or not to bus on value change Mode port operating mode Short press Send 0 Send 1 Toggle action on short press Long press 1 second Send 0 Send 1 Toggle action on long press Midpoint voltage voltage midpoint to determine the On Off state Input hysteresis V If binary input is OFF it will change to ON when...

Page 73: ...e or not to bus on value change Mode port operating mode Dimmer step value on which the brightness value will change by one step On preset brightness preset when getting in On state Midpoint voltage voltage midpoint to determine the On Off state Input hysteresis V If binary input is OFF it will change to ON when voltage level is above MIDPOINT HYSTERESIS If binary input is ON it will change to OFF...

Page 74: ...the button the field will be automatically filled with the next free group address Lock object lock object group address Write to bus defines either to write or not to bus on value change Mode port operating mode Midpoint voltage voltage midpoint to determine the On Off state Input hysteresis V If binary input is OFF it will change to ON when voltage level is above MIDPOINT HYSTERESIS If binary in...

Page 75: ...es either to write or not to bus on value change Mode port operating mode One pulse weight multiplier of the received value Send delta send the data upon specific delta value has changed Midpoint voltage voltage midpoint Input hysteresis V If binary input is OFF it will change to ON when voltage level is above MIDPOINT HYSTERESIS If binary input is ON it will change to OFF when voltage level is be...

Page 76: ...ines either to write or not to bus on value change Mode port operating mode Multiplier multiplier for the received value Send delta send the data upon specific delta value has changed Midpoint voltage voltage midpoint Input hysteresis V If binary input is OFF it will change to ON when voltage level is above MIDPOINT HYSTERESIS If binary input is ON it will change to OFF when voltage level is below...

Page 77: ...roup address Lock object lock object group address Write to bus defines either to write or not to bus on value change Send delta send the data upon specific delta value has changed Send timer seconds time interval to send the reading Value compensation compensation of the value Base value at 0V value at 0V Multiplier multiplier for the received value Comments comment of the object ...

Page 78: ...esses to one output Status object status object group address Lock object lock object group address Write to bus defines either to write or not to bus on value change Send delta send the data upon specific delta value has changed Send timer seconds time interval to send the reading Value compensation compensation of the value Base value at 0V value at 0V Multiplier multiplier for the received valu...

Page 79: ...x main types of scripts Event based scripts that are executed when a group event occurs on the bus Usually used when nearly real time response is required Resident scripts that use polling to check for object state changes Usually used for heating and ventilation when data is gathered from more than one group address Scheduled scripts that run at the required time and day Can be used for various s...

Page 80: ...lows of mixing both standards on single diagram Menu Diagrams All logic diagrams are created here Name of diagram must be unique Event Elements elements used to trigger event type logic Elements Ale normal elements which are equal to function properties All functions Contains build in functions green and user defined function purple Search box will find function block containing typed letter ...

Page 81: ...which will trigger block functions on outputs Save as file save current diagram as a file Load from file reload diagram from file Preview code preview of LUA code Show and generate show and generate LUA code Adding a new diagram New diagram can be added by clicking Add new in diagram tab Diagram can be renamed by double click on diagram name Name of each Diagram must be unique Diagram can be delet...

Page 82: ...properties which are defined by function block definition Objects connected to the function block must be created first Event object triggered by event timer Input Show Show hide input value connection point in function block Must be selected for event elements Object selecting object value storage string Variable depend of definition Select object select concerned object Output Show Show hide out...

Page 83: ...imer block represent old IEC61131 cyclic execution standard Select required block and set event to TIMER Set block properties as required and press apply Select Timer from Event Elements and link output to timer input of your block ...

Page 84: ...and press Show and generate Logic will run every X seconds set in timer properties In this example every 10 seconds If no error generated script will be shown Errors are highlighted with red mark around the block Logic can be tested under live monitoring ...

Page 85: ... Select show for each input which should trigger the logic when its value will change Do not select object from function properties if it must be used as triggerable event If object will be selected from Function Properties it will act as simple static parameter Set rest of parameter of the Function Properties and press Apply Block will change its appearance and will show exposed inputs ...

Page 86: ...icated for quicker multiplication Link Address to desired input Orange lines represent event signals Press show and generate to save and generate the logic Created script will be displayed Generated script will be triggered by TAG which was automatically added to all Event elements ...

Page 87: ...r Via storage Via event object To link two blocks via storage add a block and leave output without object and select Show Press Apply to save changes Add second block and leave one of the inputs without object and select Show Finish configuration of block and press Apply ...

Page 88: ...torage As this link is grey it will not trigger the second block To link two blocks with event object fallow the same actions only select object on output of the block and change the second block to run as Event Link output with input and popup question will appear ...

Page 89: ... be added This module enables OR linking of 8 inputs If value 0 not equal to zero is active on at least one of the inputs result is 1 Input below all inputs are listed with its types Input 1 object storage Input 2 storage Input 3 object find Input 4 tag storage value Input 5 tag find Input 6 value sdDKRhgskadjhg 12 true dkDsghdskjgh djkghsdkgh Input 7 object Input 8 object Output below this line a...

Page 90: ... grp find object Input4 tag Input4 tag Input5 tag find Input5 grp tag tag Input6 value Input6 value Input7 value atext 12 true false Input7 is a value which can onlu be selected from atext 12 true false Output definition out Output object grp write object out out_not Output Not storage storage set storage out_not If result is null then nothing is send on the output ...

Page 91: ...g fields should be filled when adding a new script Event based Script name the name of the script Group address Tag specific group address or tag name on which the script will be triggered Active specifies whether the script is active green circle or disabled red circle Execute on group read specifies whether the script is executed on KNX group read telegram ...

Page 92: ...esident Script name the name of the script Sleep interval seconds interval after which the script will be executed Active specifies whether the script is active green circle or disabled red circle Category a new or existing name of the category the script will be included This will not affect on script action helps only by grouping the scripts and watching by categories in script listings page Des...

Page 93: ...ogram It can be source code editor or block programming Active Make script active green or deactivate it red Delete Delete the script When pressing this icon the confirmation is asked to accept the delete 6 2 3 Event based scripting Event based scripting can be used to implement custom logic for group address or tag events User defined function is executed when a group write or group read if check...

Page 94: ...the following command a event getvalue Note To get event group address object name use the following command a grp alias event dst 6 2 4 Resident scripting Resident scripts are executed infinite amount of times Scripts are put into inactive state after each call and are resumed after delay timer expires Note even though resident scripts are executed in parallel they should not have infinite loops ...

Page 95: ...roups Conditionals If Else If If Then etc Loops and iterators Array Repeat Untiletc Math Random value Ceiling Absolute value Round etc Objects KNX bus Get object value Group read Group write Update interval etc Storage Get data from storage Save data to storage Script control Get other script status enable or disable other scripts Alerts and logs Alert Log variables Formatted alert Time functions ...

Page 96: ...s also a code shortcut button which helps with most common function structure There are also following helpful button in the script editor which allows quickly access Error Logs Test the script Enable or disable it 6 2 7 Object functions grp provides simplified access to the objects stored in the database and group address request helpers ...

Page 97: ...hen decoded value is available value decoded object value grp tag tags mode Returns Lua table containing objects with the given tag Tags parameter can be either Lua table or a string Mode parameter can be either all return objects that have all of the given tags or any default returns objects that have any of the given tags You can useReturned object functions on the returned table grp alias alias...

Page 98: ...ends group write request to the given alias Data type is taken from the database if not specified as third parameter Returns Lua boolean as the result grp response alias value datatype Similar to grp write Sends group response request to the given alias grp read alias Sends group read request to the given alias Note this function returns immediately and cannot be used to return the result of read ...

Page 99: ...type Data type is specified either as KNX primary data type integer between 1 and 16 or a secondary data type integer between 1000 and 16000 Return values success decoded data as Lua variable type depends on data type value length in bytes error nil error string 6 2 12 Data types The following data types can be used for encoding and decoding of KNX data Data representation on Lua level and predefi...

Page 100: ...the following Lua data types are supported boolean number string table storage set key value Sets new value for the given key Old value is overwritten Returns boolean as the result and an optional error string storage get key default Gets value for the given key or returns default value nil if not specified if key is not found in the data storage Note all user scripts share the same data storage M...

Page 101: ...a 1 objectdata 2 objectdata temperature 23 1 3 objectdata scene default 4 result storage set test_object_data objectdata store objectdata variable as test_object_data Now we are retrieving data from storage Data type is checked for correctness 1 objectdata storage get test_object_data 2 if type objectdata table then 3 if objectdata temperature 24 then 4 do something if temperature level is too hig...

Page 102: ...ecuted when current value divided by N gives 0 in modulo For example script with hour parameter set to 8 will be executed when hour is 0 8 and 16 N execute script exactly at N minute hour or day N K execute script when minute hour or day is between N K range inclusive N K it is possible to specify several N and N K type parameters separated by comma For example script with minute parameter set to ...

Page 103: ...separator string Returns Lua table string byte s i j Returns the internal numerical codes of the characters s i s i 1 s j The default value for i is 1 the default value for j is i Note that numerical codes are not necessarily portable across platforms string char Receives zero or more integers Returns a string with length equal to the number of arguments in which each character has the internal nu...

Page 104: ...r strings If pattern specifies no captures then the whole match is produced in each call As an example the following loop 1 s hello world from Lua 2 for w instring gmatch s a do 3 print w 4 end will iterate over all the words from string s printing one per line The next example collects all pairs key value from the given string into a table 1 t 2 s from world to Lua 3 for k v instring gmatch s w w...

Page 105: ... tar gz string len s Receives a string and returns its length The empty string has length 0 Embedded zeros are counted so a 000bc 000 has length 5 string lower s Receives a string and returns a copy of this string with all uppercase letters changed to lowercase All other characters are left unchanged The definition of what an uppercase letter is depends on the current locale string match s pattern...

Page 106: ...even the non magic can be preceded by a when used to represent itself in a pattern set represents the class which is the union of all characters in set A range of characters can be specified by separating the end characters of the range with a All classes x described above can also be used as components in set All other characters in set represent themselves For example w_ or _ w represents all al...

Page 107: ...e no special meaning and represent themselves Captures A pattern can contain sub patterns enclosed in parentheses they describe captures When a match succeeds the substrings of the subject string that match captures are stored captured for future use Captures are numbered according to their left parentheses For instance in the pattern a w s the part of the string matching a w s is stored as the fi...

Page 108: ...fig in format key value 1 for line inio lines mnt usb config txt do 2 split line by sing 3 items line split 4 two items line seems to be valid 5 if items 2 then 6 key items 1 trim 7 value items 2 trim 8 alert config s s key value 9 end 10 end 6 2 21 Script control functions script enable scriptname Enable the script with the name scriptname script disable scriptname Disable the script with the nam...

Page 109: ...ex keepnulls Converts given hex encoded string to a binary string NULL characters are ignored by default but can be included by setting second parameter to true cnv tonumber value Converts the given value to number using following rules numbers and valid numeric strings are treated as is boolean true is 1 boolean false is 0 everything else is nil cnv hextoint hexvalue bytes Converts the given hex ...

Page 110: ...efined file descriptors with their usual meanings from C io stdin io stdout and io stderr The I O library never closes these files Unless otherwise stated all I O functions return nil on failure plus an error message as a second result and a system dependent error code as a third result and some value different from nil on success io close file Equivalent to file close Without a file closes the de...

Page 111: ...previous data is preserved writing is only allowed at the end of file The mode string can also have a b at the end which is needed in some systems to open the file in binary mode This string is exactly what is used in the standard C function fopen io output file Similar to io input but operates over the default output file 6 2 26 Mathematical functions This library is an interface to the standard ...

Page 112: ... of m is in the range 0 5 1 or zero when x is zero math huge The value HUGE_VAL a value larger than or equal to any other numerical value math ldexp m e Returns e should be an integer math log x Returns the natural logarithm of x math log10 x Returns the base 10 logarithm of x math max x Returns the maximum value among its arguments math min x Returns the minimum value among its arguments math mod...

Page 113: ...ue math tan x Returns the tangent of x assumed to be in radians math tanh x Returns the hyperbolic tangent of x 6 2 27 Table manipulations This library provides generic functions for table manipulation It provides all its functions inside the table Most functions in the table library assume that the table represents an array or a list For these functions when we talk about the length of a table we...

Page 114: ... If the time argument is present this is the time to be formatted see the os time function for a description of this value Otherwise date formats the current time If format starts with then the date is formatted in Coordinated Universal Time After this optional character if format is the string t then date returns a table with the following fields year four digits month 1 12 day 1 31 hour 0 23 min...

Page 115: ...date function The returned value is a number whose meaning depends on your system In POSIX Windows and some other systems this number counts the number of seconds since some given start time the epoch In other systems the meaning is not specified and the number returned by time can be used only as an argument to date and difftime os tmpname Returns a string with a file name that can be used for a ...

Page 116: ...body end will iterate over the pairs 1 t 1 2 t 2 up to the first integer key absent from the table next table index Allows a program to traverse all fields of a table Its first argument is a table and its second argument is an index in this table next returns the next index of the table and its associated value When called with nil as its second argument next returns an initial index and its assoc...

Page 117: ...pted tostring e Receives an argument of any type and converts it to a string in a reasonable format For complete control of how numbers are converted use string format If the meta table of e has a __tostring field then tostring calls the corresponding value with e as argument and uses the result of the call as its result type v Returns the type of its only argument coded as a string The possible r...

Page 118: ...require when writing scripts Also this have to be checked if Block programming is used 6 2 31 Common functions Common functions contains library of globally used functions They can be called from any script any time without special including like with user libraries Functions like sunrise sunset Email are included by default in Common functions 6 2 32 Start up init script Init script is used for i...

Page 119: ...fault scripting helpers Backup user scripts backup all scripts in gz file Restore from archive restore script from archive gz file with two possibilities o Remove existing scripts and import from backup o Append keeping existing s scripts Print script listings shows all scripts with codes in list format sorted by Categories ...

Page 120: ...120 Show logs window show logs in separate window Edit custom JavaScript ...

Page 121: ...e showPlan 69 See more examples here http forum logicmachine net showthread php tid 275 6 3 Objects List of KNX network objects appears in Objects menu The object appears in the list by way of sniffing the bus for telegrams from unknown group addresses if enabled in Utilities adding manually importing ESF file in Utilities Object can be created as standard KNX object or virtual object Virtual obje...

Page 122: ...high priority logging when the log database is cleared first standard logs are cleared only then high priority Export Make object visible by remote XML requests and in BACnet network if KNX BACnet gateway functionality is used Poll interval seconds perform automatic object read after some time interval Tags assign this object to some tag which can be later used in writing scripts for example All_l...

Page 123: ...gs for the object Send after each color pick specifies either to send the telegram automatically into KNX bus once the color is selected in color picker Number of presets to show count of predefined presets in color picker in Visualization Preset 1 6 preset color ...

Page 124: ...124 When you add the object with RGB color data type in the Visualization the color picker with predefined colors appears ...

Page 125: ...1 bit Control type type of the visual control element which will appear in Touch Visualization o Toggle o Checkbox o Start Stop while icon is pressed it send one value when it is released it send opposite value 4 bit 3 bit controlled Step size step size for object change example for blinds control 1byte and 4byte float Control type type of the visual control element ...

Page 126: ...e on the slider M aximum value maximum value on the slider Step step for one slider movement Vertical slider special option for Usermode visualization Invert vertical slider invert vertical slider so the maximum is on top o Direct input Step ...

Page 127: ... on the control bar Maximum value maximum value on the control bar Step step for one position change Slider color color of slider Background color background color of the slider Round line cap make round ends of slider Hide title hide title Hide min max step buttons hide min max and step buttons Line thickness specify the thickness of slider line Size Size in px of the control ...

Page 128: ...lues Custom values should be defined in Show icons in Usermode show icons instead of values for the object in visualization You will be able to choose from defined icons custom values Icons should be defined in visualization constructor as Additional Icons ...

Page 129: ...epends on what visualization parameters are set for specific object 6 3 5 Custom values If special value naming is necessary use this icon to set it up only for Boolean and Integer data types 6 3 6 Object control bar Add new object Manually add new object to the list Auto update enabled Specifies either the object list is updated automatically or not ...

Page 130: ... There is also the following bar on the bottom of the configuration screen CPU IO Load average The load average represents the average system load over a period of time It conventionally appears in the form of three numbers which represent the system load during the last one five and fifteen minute periods The lower number the better Note Inspect your running tasks if the load exceeds the level 0 ...

Page 131: ... minutes from RAM to Flash or when Reboot or Shutdown commands are sent KNX statistics graphs shows average KNX bus load 6 3 7 Filter objects On the left side of the object list there is filtering possible To perform the filtering type the name group address tag or specify the data type of the object and press on Filter button Match mode All tags represents AND function when all tags should match ...

Page 132: ... need to find specific period information Start date start date and time for log filtering End date start date and time for log filtering Name or group address specific name or group address of object Tags tag names Value specific object value Source address specific source address You can clear all logs by pressing on Clear button Size of log is defined in Utilities General Configuration ...

Page 133: ...lar script 1 require socket ftp 2 3 ftp file 4 ftpfile string format ftp ftplogin ftppassword 192 168 1 11 s csv os date Y m d_ H M 5 get past hour data 3600 seconds 6 logtime os time 60 60 7 8 list of objects by id 9 objects 10 11 objects with logging enabled 12 query SELECT address datatype name FROM objects WHERE disablelog 0 13 for _ object in ipairs db getall query do 14 objects tonumber obje...

Page 134: ... null chars from char string datatype 38 if datatype dt char or datatype dt string then 39 data data gsub z 40 date to DD MM YYYY 41 elseifdatatype dt date then 42 data string format 2d 2d 2d data day data month data year 43 time to HH MM SS 44 elseif datatype dt time then 45 data string format 2d 2d 2d data hour data minute data second 46 end 47 else 48 data 49 end 50 51 format csv row 52 logdate...

Page 135: ...group address values based on the date or day of the week 6 5 1 Add new scheduler By clicking on the Schedulers Add new scheduler you will see such parameter window Object the object group address which will be controlled by scheduler Active define this scheduler as active or not Name name of the scheduler Start date start date of the scheduler End date end date of the scheduler 6 5 2 Scheduler ev...

Page 136: ...lls casting shadows Start time time of Event activation Day of the week days in which Event will be active Weekday in month weekday in which Event will be active i e every 1st Monday in the month which may fall to the second week in some months Months Months in which Event will be active Year Year in which Event will be active leave year blank for recurring events Holidays Holidays which are defin...

Page 137: ...ys will be active Months Months in which Holidays will be active Year Year in which Event will be active leave year blank for recurring events Duration days duration of Holidays 6 5 4 Direct link To get direct link to a specific scheduler click on Direct link button on bottom left part 6 6 Trend logs Trends logs are administration of user mode trends used to see historical object graphical values ...

Page 138: ...places decimal places for the presentation Resolution data Number of data points to store at the selected resolution Daily data average value of daily data for specific time interval Note One trend data point reading takes 8bytes of flash memory E g reading some value once in every 10 minutes will consume 0 4MB of flash each year Note Trend s number have flexible limit based on total size of all t...

Page 139: ...ates resolution Fetch one or many values for the given period Parameters name trend log name required dates Lua table with two items start and end each item must contain year month day keys required resolution optional will use trend resolution if not specified set to 86400 for retreive daily data Return values fetch returns Lua table with values for the given period or nil on error Number of valu...

Page 140: ... points which contain invalid values or cannot be found The default value is 0 but it can also be set to 0 0 NaN not a number Example require trends use not a number for invalid values trends NaN 0 0 get data for the past year dates dates start os date t dates start year dates start year 1 dates end os date t value trends fetchone Hot Water dates NaN NaN means value was not found if value value th...

Page 141: ...141 Name scene name Scene is active define either this scene is active or not Trigger object group address for scene trigger object Trigger value scene object trigger value ...

Page 142: ...the sequence is defined here Object group address Write to bus define either to send KNX bus telegram 6 8 Visualization structure In Vis structure menu the structure of the visualization is defined and visualization backgrounds are uploaded ...

Page 143: ...importing it from the file which is exported on other LM for example Press Import button for this purpose Object linkage can be either cleared or imported as is Once a new level is added you can add second level or upload floor pictures related to this particular building To add a new entry click on the green icon to delete a specific entry press on the red icon When adding new plan the following ...

Page 144: ...his specific plan All object from Layout will be duplicated on this particular plan including background color and plan image if they are not defined separately for this specific plan Usermode visualization Show Show and make default Hide visibility for this particular plan in Usermode visualization Touch visualization Show Show and make default Hide visibility for this particular plan in Touch vi...

Page 145: ...ill the whole plan Fixed primary background specify if first background image should be fixed By enabling this you can enable Parallax effect for your visualization Admin only access enable admin only access for this floor When clicking on Background image the following window appears with background images which has to be added in Vis graphics Images Backgroundsin advance You can duplicate the pl...

Page 146: ...es Backgrounds Secondary background image choose secondary background image from the list added in Vis graphics Images Backgrounds Background color choose background color of the plan Touch background color define a color for touch visualization Repeat background image either to show the image once or repeat it and fill the whole plan Fixed primary background specify if first background image shou...

Page 147: ... from the list added in Vis graphics Images Backgrounds Background color choose background color of the widget Touch background color define a color for touch visualization Repeat background image either to show the image once or repeat it and fill the whole plan Fixed primary background specify if first background image should be fixed By enabling this you can enable Parallax effect for your visu...

Page 148: ...148 When you have added necessary objects to the widget you can choose it when adding objects for main Levels e g Bedroom in Main level ...

Page 149: ...ed and monitored objects can be added and managed in this section Both side bars can be minimized by pressing on icon making the map more visible especially on small displays 6 9 1 Plan editor Plan editor is located on the right side of the visualization map By clicking on Unlock current plan for editing button the following main menus appear for configuration Object new object to be added to the ...

Page 150: ...uch Visualization Hide background Hide icon background Send fixed value Allows to send specific value to the bus each time the object is pressed No bus write do not send telegram into the bus once clicked on this object in Usermode Touch visualizations PIN code PIN code which will be asked to provide when click on this object to perform group write Widget specify widget which will be launched when...

Page 151: ...151 Visualization parameters Defines global or local visualization parameter for specific group address ...

Page 152: ...pecifying parameters Additional icons It s possible to define different icons for different object values in the window On the bottom of setting you can see element position and size parameters which you can freely change By pressing you will reset size By pressing you can lock aspect ratio Once the object parameters are defined press Add to plan button and newly created object will appear You can...

Page 153: ...ctive state icon active state icon if the link is to current plan in case you have several smaller plans on one visualization and want to display the current one Additional classes additional CSS classes for the element Once the floor link parameters are defined press Add to plan button and newly created object will appear You can move the object to the location it will be located Note that while ...

Page 154: ...he element Once the label parameters are defined press Add to plan button and newly created object will appear on the map You can move the object to the location it will be located Press on Save and reload plan button so the objects starts functioning 6 9 5 Image Image section allows adding images from the internet into the visualization map Useful for example to grab dynamic weather cast images ...

Page 155: ...r on the map You can move the object to the location it will be located Press on Save and reload plan button so the objects starts functioning 6 9 6 Frame With Frame functionality you can integrate 3rd party applications we resources or local Trends Schedulers into one common visualization Source Url Schedulers Trend logs frame source Url Source URL of the page to integrate Frame size width and he...

Page 156: ...156 Additional classes additional CSS classes for the element ...

Page 157: ...read only Additional classes additional CSS classes for the element Once the gauge parameters are defined press Add to plan button and newly created object will appear on the map You can move the object to the location it will be located Press on Save and reload plan button so the objects starts functioning 6 9 8 Camera LogicMachine supports third party IP web camera integration into its visualiza...

Page 158: ...es user name and password enter the url in form http USER PASSWORD IP Once the camera parameters are defined press Add to plan button and newly created object will appear in look of video camera You can move the object to the location it will be located Note that while being in editing mode the object will not work Press on Save and reload plan button so the objects starts functioning By pressing ...

Page 159: ...e current and old value of scale type objects Make sure logging is enabled for the object in Object tab which values is planned to be shown in the graph Data object group address of the object Custom name name of the object Icon icon to launch the graph Windows size size of the graph window ...

Page 160: ...nd Additional classes additional CSS classes for the element Once the graph parameters are defined press Add to plan button and newly created object will appear You can move the object to the location it will be located Note that while being in editing mode the object will not work Press on Save and reload plan button so the objects starts functioning ...

Page 161: ...ounds is available in Vis graphics tab Press on Add icons button to add a new entry The system accepts any size icons GIF is also supported Name optional the name of the icon File Icon file location Images Backgrounds tab is used to upload image files for visualization purposes ...

Page 162: ... you can add custom fonts In Custom CSS tab you can add your CSS style for the visualization which you can use when adding elements into visualization so any elements of Look and Feel is customizable with this solution ...

Page 163: ...o set correct data types for some imported objects Existing objects will not be overwritten Objects with the same name are considered duplicates and might not be imported Import neighbours import list of objects from network LM devices Reset clean up delete all objects from the Logic Machine they disappear from visualization aswell ...

Page 164: ... to factory defaults Date and time data and time settings Install updates install LogicMachine update file lmu LogicMachine will reboot after successful update Backup backup all objects logs scripts visualization Restore restore configuration from backup ...

Page 165: ...ither to log status change for all objects or only for checked objects Alert log size max count of alerts logged Log size max count of logs Error log size max count of errors logged Enable block editor either to enable scripting block editor Save object values in storage save object values in REDIS database to access from apps Code editor tab size specify tab size to be used in the scripting edito...

Page 166: ... look of Usermode visualization Usermode page transition Flip X Flip Y Shrink Expand Slide up Slide down Slide left Slide right Slide up big Slide down big Slide left big Slide right big transition when changing plans in visualization Usermode auto size upscaling enable this to scale the visualization automatically on each display device Please note to use SVG format images and icons so the qualit...

Page 167: ...l for the display Show alerts in Usermode once new Alerts is triggered it will pop up in User mode visualization System by clicking on the arrow near System button KNX Connection User Access Remote Services settings can be access By clicking on the System button network configuration window opens in new browser s tab 6 12 User access User access management is located in User access tab User access...

Page 168: ...and password remember user login credentials after entered once for specified time interval User cookie expiration days user cookie expiration days User directory You can upload files which are accessible through the main web server via FTP In System config Services FTP server you have to enable the FTP server and set password for apps user Then you can upload files into user directory which can t...

Page 169: ...lization access None Partial Full type of Visualization access Schedulers access None Partial Full type of Schedulers access Trends access None Partial Full type of Trends access None access is limited Partial access is granted for specific visualization floors schedulers and trends Full full access ...

Page 170: ...ned with alert function in scripts is located The messages are stored on the compact flash Information on system start and KNX connection status messages are also automatically displayed in this window On the communication panel you can jump by pages and reload the page Example 1 temperature 25 3 2 ...

Page 171: ... levels are too high 25 3 5 alert Temperature level is too high 1f temperature 6 end 6 14 Error log Error messages from scripts are displayed in Error log tab 6 15 Logs Logs can be used for scripting code debugging The log messages appear defined by log function ...

Page 172: ...172 7 User mode visualization User mode visualization contains created visualization maps A password and users to access specific visualization maps can be created in Logic Machine User access ...

Page 173: ...tion Through Custom CSS styles it is possible to create different type of visualization maps Custom CSS can be done in Vis Graphics Edit custom CSS tab For more information of CSS examples please see our user forum http forum logicmachine net ...

Page 174: ...hoose which Floor from which Building to control Once you choose the floor all objects which are assigned to it are listed and can be controlled Launching visualization on touch device iPad in this case Make sure your iPad is connected wirelessly to the LogicMachine either through separate access point or directly to Logic Machine s USB WiFi adapter In the browser enter Logic Machine s IP default ...

Page 175: ... EIB LogicMachine as well as do access control management upgrade firmware see network and system status and others Login Password admin admin 9 1 Hostname Hostname can be change in System Hostname This name will appear when searching for the device through Zeroconf or Discovery applications ...

Page 176: ...s located in System Admin access 9 3 Packages System Packages shows the packages installed in the system You can add new packaged by pressing on 9 4 Upgrade firmware System Upgrade firmware is used to do a full upgrade of the system both OS part as well as LogicMachine part ...

Page 177: ...em Shutdown command It is advisable to shutdown the system before plug out the power because the database is saved safely 9 7 Interface configuration Ethernet interface is listed in the first tab There are possibilities to disable enable or to take a look at the traffic flow graph using special icons on the right side By clicking on the interface you get to the configuration ...

Page 178: ...ult 255 255 255 0 24 Gateway IP gateway IP address DNS server DNS server IP address MTU maximum transmission unit the largest size of the packet which could be passed in the communication protocol By default 1500 Ethernet interface data throughput graph On the main window of the Ethernets tab if you click on the button a new window is opened It draws a real time graph of the traffic flow passing t...

Page 179: ...179 9 8 KNX connection KNX specific configuration is located in Network KNX connection window General tab ...

Page 180: ... for multicast telegram in seconds Maximum telegrams in queue count of maximum telegrams in the queue TOS priority level 0 no priority type of service in the telegram See more here https en wikipedia org wiki Type_of_service Encryption key key for secure IP communication along LogicMachines Setting Encryption key will enable encryption of routing telegrams Reception of normal telegrams will still ...

Page 181: ...e g 1 1 to filter all addresses in the given line DST group policy No filter Accept selected group addresses Drop selected group addresses policy to apply to the list of destination group addresses Group address list list of group addresses One address range per line Use e g 1 1 to filter all addresses in the given line Note KNX IP features should be on for filter to work Filtering lists are updat...

Page 182: ...ring table for telegrams going from KNX TP1 to IP network is located in this submenu Apply filter to virtual objects either to apply filter policy to objects added in Objects tab as virtual objects without attraction to bus ...

Page 183: ...p addresses Drop selected group addresses policy to apply to the list of destination group addresses Group address list list of group addresses One address range per line Use e g 1 1 to filter all addresses in the given line Note KNX IP features should be on for filter to work Filtering lists are updated at once changing policies requires restart 9 9 KNX statistics KNX related statistics can be fo...

Page 184: ...attempt to register with BACnet router BBMD port BACnet router port When router IP and port are set LM will act as a foreign device and will attempt to register with BACnett router BBMD lease time seconds registration resend interval To make KNX EIB objects BACnet readable writable mark necessary objects in LogicMachine as Export object Binary objects will appear as Binary Values other numeric val...

Page 185: ...185 9 11 BACnet objects In Network BACnet objects you can see marked objects on LogicMachine which are sent to BACnet network ...

Page 186: ...er on use Network HTTP server menu Default HTTP port is 80 default HTTPS port is 443 9 13 NTP client server Client status when enabled LM obtaining data from up to four selected servers Local server status when enabled LM can serve as local NPT server for other LMs or other devices ...

Page 187: ...the padlock and the https protocol and allows secure connections from a web server to a browser There is amount of online SSL certificate providers some SSL certificates are free some are paid Upload new private key certificate for upload existing RSA key SSL certificate Generate new private key certificate generate RSA private key SSL certificate from one already installed ...

Page 188: ...sername login name ftp Password password for user ftp length 4 20 symbols Username login name to user directory http IP user apps user You can enable or disable password authorization for this directory in Logic Machine User access User access settings Password password for user apps length 4 20 symbols Passive mode min port FTP passive mode minimum port Passive mode max port FTP passive mode maxi...

Page 189: ...ng to your LM settings http remote remote 192 168 0 10 scada remote m rss r alerts Request parameters m set the return value format json xml rss only for alerts and errors r requested function name alerts newest 50 alerts Return values o alert alert text o time alert time UNIX timestamp o date alert time RFC date errors newest 50 errors Return values o error error text ...

Page 190: ...ights o tags optional array of object tags e g Light Second floor grp execute one of grp functions Parameters o fn function name required getvalue returns current object value if found find return object info write send KNX bus group write telegram response send KNX bus group response telegram read send KNX bus group read telegram update update local LM object value without KNX bus group write o a...

Page 191: ...emote 192 168 0 10 scada remote m json r grp fn write alias 1 1 1 value 50 Write boolean value to 1 1 2 you can use true or false as well as 1 or 0 http remote remote 192 168 0 10 scada remote m json r grp fn write alias 1 1 2 value true Explicit datatype setting to scale send 50 to 1 1 1 http remote remote 192 168 0 10 scada remote m json r grp fn write alias 1 1 1 value 50 datatype scale 9 17 Sy...

Page 192: ...abled only when there is remote Embedded Systems support necessary for the device It enables SSH access to the device Service status define either remote SSH access is enabled or disabled 9 19 NTP client NTP servers can be specified in Service NTP client window ...

Page 193: ...193 9 20 System status General system status with CPU usage Memory usage Partition Serial ports information can be seen in Status System status window ...

Page 194: ... Network utilities Ping and Traceroute utilities are located in Status Network utilities window Both IP address and DNS names are accepted 9 22 System log Operating system log is available in Status System log ...

Page 195: ...195 9 23 Running processes System running processes can be seen in Status Running processes window ...

Page 196: ...or example specify thermostat values depending of the day of the week time and holidays 10 1 Events Each scheduler is mapped to specific group address in administration panel see section 1 4 of this manual When adding the new task for specific scheduler you can specify day of the week start time value to send to the object ...

Page 197: ...197 10 2 Holidays In Holidays special days are specified which are then used adding new events Click on Add new holiday button to specify a holiday ...

Page 198: ...on you can change to different trends where each is mapped to a specific KNX group address Day Trend with Day view Month Trend with Month view Year Trend with year view Current Current trend is drawn in blue you can choose either to show Day Month or Year view Previous previous time period you can choose either to show Day Month or Year view ...

Page 199: ...bled a yellow trend line appears showing Previous trend above Current trend Single trend view single trend Multiple trends view multiple trends When this mode is chosen you can select several object on the left side to be shown ...

Page 200: ...200 There is an automatic secondary axis for two trends with different units scales By clicking on Data button data points will be shown in a way of table which can be later exported as CSV file ...

Page 201: ...201 ...

Page 202: ...the following structure e g a fragment from UIO20 device by Embedded Systems manufacturer Embedded Systems description Universal 16 4 I O module mapping name Output 1 bus_datatype bool type coil address 0 writable 1 name Input 1 bus_datatype float16 type inputregister address 0 value_multiplier 0 001 units V Name Object name e g Output 2 String Required Bus_datatype KNX object data type key from d...

Page 203: ...ilt in conversion functions String Internal Value_custom Name of a built in enumeration or a list of key value mapping resulting value will be 0 if key is not found String Object Internal Not visible to user when set to true should be used for scale registers Boolean Units KNX object units suffix String Address_scale Address of register containing value scale value value 10 scale Number Read_count...

Page 204: ...RTU read test button you get the following options Device address ModBus device address Function Coil Discrete input Holding register Input register ModBus function Address address where data is located Data type data type can be chosen only for registers Read swap None ABCD Word CDAB Byte BADC Byte and word DCBA read data swapped in chosen way Read length read length of registers coils 12 3 RTU S...

Page 205: ...tings RTU serial enabled defines either Modbus RTU is enabled Port dev RS485 1 dev RS485 2 specify the port to communicate or leave blank for automatic detection Baud rate 1200 500000 baud rate Parity None 1 stop bit Odd Even None 2 stop bits parity Duplex define either half or full duplex communication ...

Page 206: ...file profile of the device Device address device address Poll interval seconds interval to poll the device IP IP address of the device in case Modbus TCP is used Port Communication port of the device in case Modbus TCP is used Once the device is added you can do mapping to KNX addresses by clicking on icon First you see a list of all objects on the Modbus device Click on specific object to do mapp...

Page 207: ...urn off after successful write operation Once script is added you can add the code in the Script Editor There are lots of predefined code blocks in the Helpers 12 7 Modbus Slave examples Add the following code to Common functions 1 modbus proxy 2 mbproxy 3 supported function list 4 functions 5 readdo 6 readcoils 7 readdi 8 readdiscreteinputs 9 readao 10 readregisters 11 readai 12 readinputregister...

Page 208: ...e __index mbproxy 31 32 mb slaveid 0 33 mb rpc rpc client 127 0 0 1 28002 mbproxy 34 35 for _ fn in ipairs mbproxy functions do 36 mb fn function self 37 return mb request fn 38 end 39 end 40 41 return mb 42 end 43 44 45 set local slave id 46 function mbproxy setslave slaveid 47 self slaveid slaveid 48 end 49 50 send rpc request for a spefic function 51 function mbproxy request fn 52 local res err...

Page 209: ... 4 mb setwritecoilcb function coil value callback function which is executed for each coil write 5 mb setwriteregistercb function coil value callback function which is executed for each register write Handler script example 1 modbus init 2 if not mb then 3 require luamodbus 4 mb luamodbus tcp 5 mb open 6 7 init slave storage for coils discrete inputs holding registers and input registers 8 mb setm...

Page 210: ...ata handler 35 local handler function request 36 local fn res 37 38 fn tostring request fn 39 40 if not mb fn then 41 return nil unknown function fn 42 end 43 44 if type request params table then 45 table insert request params 1 mb 46 res mb fn unpack request params 47 else 48 res mb fn mb 49 end 50 51 return res 52 end 53 54 server rpc server 127 0 0 1 28002 mbproxy handler 0 01 55 end 56 57 mb h...

Page 211: ...bles 1 if not mb then 2 require genohm scada eibdgm 3 require luamodbus 4 5 list of coil mapping starting from 0 6 coils 1 1 1 1 1 2 7 8 list of register mapping starting from 0 9 registers 2 2 2 3 3 3 10 11 list of register data types element count must match registers table 12 regdt dt int8 dt uint16 13 14 knx group write callback 15 function knxgroupwrite event 16 local value 17 18 try to find ...

Page 212: ... new timeout 0 1 53 knxclient sethandler groupwrite knxgroupwrite 54 55 modbus slave listen on all interfaces and default port 502 56 mb luamodbus tcp 57 mb open 0 0 0 0 502 58 59 setting slave id is optional 60 mb setslave 1 61 62 mb setreceivetimeout 0 1 63 mb setmapping coils 0 registers 0 64 65 init coils 66 for id addr in ipairs coils do 67 value grp getvalue addr 68 mb setcoils id 1 value 69...

Page 213: ...nnection mb close Example usage RTU master mode require luamodbus mb luamodbus rtu open serial connection half duplex mb open dev ttyS2 38400 E 8 1 H mb connect verbose output and select slave number 10 mb setdebug io write mb setslave 10 read input from reg 1 to 5 get slave specific data mb readinputregisters 1 4 mb reportslaveid close serial connection mb close Read write examples multiple coil ...

Page 214: ...tion mb flush flushes any unsent data Slave functions mb receive receives data from master with 1 minute timeout returns data as a binary string on success and nil error description on error mb setmapping coils inputs holding_regs input_regs creates memory mapping for the registers with size specified for each type mb handleslave waits for an incoming indication from master and sends a reply when ...

Page 215: ...ied multiple write otherwise returns all of values written on success and nil error description on error mb readregistervalue address datatype reverse mb readinputregistervalue address datatype reverse reads encoded register s value based on the specified datatype int16 signed 2 byte 1 register integer float16 2 byte floating point KNX format used in some HVAC units int32 signed 4 byte 2 registers...

Page 216: ...216 mb setrecovery recovery enables disables auto reconnect on error mb setdebug debug enables disables protocol debug output mb getheaderlength returns header length for the protocol in use ...

Page 217: ...aring ReadProperty B DS RP B ReadPropertyMultiple B DS RPM B WriteProperty B DS WP B COV B DS COV B Device and Network Management Dynamic Device Binding B DM DDB B Dynamic Object Binding B DM DOB B DeviceCommunicationsContro l B DM DCC B TimeSynchronization B DM TS B UTCTimeSynchronization B DM UTC B ReinitializeDevice B DM RD B BACnet Object Types Supported Device Analog Value Binary Value Data L...

Page 218: ...BBMD port BACnet router port When router IP and port are set LM will act as a foreign device and will attempt to register with BACnett router BBMD lease time seconds registration resend interval To make KNX EIB objects BACnet readable writable mark necessary objects in LogicMachine as Export object Binary objects will appear as Binary Values other numeric values will appear as Analog Values Other ...

Page 219: ...s you can see marked objects on LogicMachine which are sent to BACnet network 13 2 BACnet client mode Normally this mode is used to interconnect LogicMachine for example with VRV systems over BACnet IP protocol The settings are available in BACnet tab ...

Page 220: ...alue 127001 binary value 2305 Read analog object value bacnet readvalue 127001 analog value 2306 Write new value to binary or analog object priority array bacnet write function device_id object_type object_id value priority Value can be nil boolean number or a numeric string Priority parameter is optional lowest priority is used by default Set binary object value bacnet write 127001 binary value 2...

Page 221: ...221 Clear binary object value at priority 12 bacnet write 127001 binary value 2305 nil 12 ...

Page 222: ...devices to the selected gateway There is one of 4 options to choose from Full scan set short addresses scans for currently connected DALI devices to the selected gateway assigns short address automatically starting from 0 1 2 Full scan clear device mapping scans for currently connected DALI devices to the selected gateway without assigning short addresses clear KNX grp address mapping to devices F...

Page 223: ...s connected Note Make sure Modbus RTU is not enabled for the same RS 485 if you are using external DALI RS485 gateways connected to LM s RS 485 port Note Make sure you have series connection for all DALI gateways Note In case you have long RS 485 lines between LM and DALI gateway make sure to use 120 Ohm termination resistors on LM and on the farthest DALI gateway Note Make sure GND are connected ...

Page 224: ...device you can set a custom name and map to binary on off and scale object This allows communication with DALI devices from KNX bus and visualization without any additional scripts 14 1 DALI object mapping Once DALI objects are scanned you can click on corresponding object and perform the configuration Device name name of the DALI device Binary ON OFF object map to KNX binary object Preset for bin...

Page 225: ...l slaves belonging to a group should react addrtype group address GROUP_ID Command types If command is addressable it s possible to provide address type and address in params table If command expects a reply it must be addressed so only one slave can reply otherwise a collision will happen In case of success reply is a binary string usually consisting of a single byte You can convert it to number ...

Page 226: ...rnal setdtr addrtype short address 5 value value dalicmd internal storeshortaddress addrtype short address 5 Example use gateway with id 1 switch all ballasts off set ballast with short address 5 to full on require user dali dalicmd 1 arc addrtype broadcast value 0 dalicmd 1 arc addrtype short address 5 value 254 Example set maximum value for ballast 5 to value 200 the ballast is connected on inte...

Page 227: ...ject type 1 byte 0 100 require user dali value event getvalue value math floor value 2 54 dalicmd internal arc addrtype group address 7 value value Example functions for calling and saving scenes can be used not only for DALI First you have to define each scene via a Lua table where each item is a table with two items group address and value Each scene has a unique id which can be a number or a st...

Page 228: ... 1 item 2 end end function savescene id local key scene scene scenes id if type scene table then alert Scene id not found return end for i item in ipairs scene do scene i 2 grp getvalue item 1 end key scene_ id storage set key scene end Example Binary dimmer for DALI lamps to be able dim DALI lamp from physical pushbutton 1 Add bindimmer function to Common functions function bindimmer up down out ...

Page 229: ...st up then main rev up down down reverse step elseif event dst down then main rev down up step step invalid object else return end current output object value val grp getvalue out or 0 while true do main object in stop state if not grp getvalue main then return end reverse object in start state if grp getvalue rev then return end get new value new math min 100 val step ...

Page 230: ...nt script for each binary object bindimmer 1 1 1 1 1 2 1 1 3 event 4 You can tune step and delay variables in bindimmer function to adjust dimming speed DALI commands Command Description Addressable Reply Value arc direct arc power control 0 254 off turn off up turn on down down stepup step up stepdown step down recallmin recall max level recallmax recall min level stepdownoff step down and off st...

Page 231: ...error query limit error queryresetstate query reset state querymissingshort query missing short address queryversion query version number querydtr query content dtr querydevicetype query device type queryphysicalmin query physical minimum level querypowerfailure query power failure queryactual query actual level querymax query max level querymin query min level querypoweron query power on level qu...

Page 232: ...searchaddrm set search address m 0 255 searchaddrl set search address l 0 255 programshortaddr program short address 0 63 verifyshortaddr verify short address 0 63 queryshortaddr query short address physicalselection physical selection enabledevicetype enable device type x 0 255 ...

Page 233: ...u can use LogicMachine 5V DC output to power 1 wire devices Advantages of 1 wire over KNX No need in ETS Very cost effective You can use the same wiring as KNX does and connect all standard sensors Advantages of 1 wire over resistive sensors Substantial savings on equipment Easier connection diagram allows to reduce the complexity of laying wiring Extension possibility connection of additional sen...

Page 234: ...interval in which send the measurement Value compensation compensate value of the reading of temperature 1 wire PUZZLE 2 Universal Digital Inputs Outputs With PUZZLE you can interconnect regular binary sensors with 1 wire fieldbus or use the device as digital output to control relays contactors By pairing the PUZZLE with LogicMachine Ambient you can finish the installation in very cost effective w...

Page 235: ...ensors Further in the latest firmware of LogicMachine there are features like increased polling time of 1 wire objects implemented keepalive object which indicates of error if there was lost connection with at least one of 1 wire device Also in the configuration menu on LogicMachine you can see pre configured 1 wire devices and newly found ones in separate lists ...

Page 236: ...to use channels 3 transition time in seconds does not include DMX transfer time transition 2 value setter function set chan val key key key or defaults skey chan tonumber chan or 0 val tonumber val or 1 validate channel number and value if chan 1 and chan 512 and val 0 and val 255 then storage exec lset key chan 1 val end end value getter function get chan key local res val key key or defaults ske...

Page 237: ...err luadmx open params port error while opening if err then os sleep 1 error err end set channel count self dm setcount params channels number of transaction ticks self ticks math max 1 params transition params resolution calculate sleep time self sleep 1 params resolution reset channel map self channels empty channel value map self conn ltrim params skey 1 0 fill channel map for chan 1 params cha...

Page 238: ... current ticks channels chan ticks ticks end end end main loop handler function DMX run self getvalues transition loop for i 1 self params resolution do self step self dm send os sleep self sleep end end single transition step function DMX step local chan channels t channels self channels transition for each channel for chan 1 self params channels do t channels chan ticks transition is active if t...

Page 239: ...g where last part of group address is DMX address starting from 1 Create event script mapped to DMX tag 1 require user dmx 2 get ID as group address last part x y ID 3 id tonumber event dst split 3 4 get event value 1 byte scaling 5 value event getvalue 6 convert from 0 100 to 0 255 7 value math floor value 2 55 8 set channel ID value 9 DMX set id value Predefined scene example The following examp...

Page 240: ...scenes then 25 current 1 26 end Random scene example The following example should be placed inside a resident script Sleep time defines scene keep time at least 1 second 1 number of steps to use e g 3 steps 0 127 255 2 steps 5 3 number of channels to set 4 channels 3 5 first channel number 6 offset 1 7 8 for i offset channels do 9 v math random 0 steps 1 255 steps 1 10 DMX set i math floor v 11 en...

Page 241: ... connects PC s consumer devices DSL boxes and other USB master devices to EnOcean based radio products It is equipped with a TCM 310 transceiver gateway module It provides bidirectional EnOcean radio and bidirectional serial interface via USB Radio messages are sent and received via an externally connected USB host 17 1 EnOcean interfaces EnOcean interface Base address can be found in Enocean Inte...

Page 242: ... functionality of the specific device to KNX group addresses by clicking on Mapping icon When EnOcean gateway received telegram from specific device the respective row gets light green Respective KNX group addresses get updated with the new values ...

Page 243: ...button to add EnOcean device which will be communicated from specific KNX object Once the device is added you should pair it with specific device in EnOcean network press Tech in button Note EnOcean device should be set in learning mode in order to pair it successfully ...

Page 244: ...ted list In case you don t find a profile of your EnOcean device in the list of profiles you can use RAW format For example here below is step by step guide for Eltako FUD61NPN 230V wireless switch integration a First of all turn on confirmation signal on the actuator top rotary switch to CLR LED flashes during 10 seconds turn bottom rotary switch all the way to the left 3 times LED light is on fo...

Page 245: ...tuator to desired functionality g Add the following script to 1 byte scaled object to be able to control the actuator dimming b3 0x02 dimmer value 0 100 b2 event getvalue ramp time in seconds b1 1 data telegram absolute value store final b0 9 a3 bit lshift b3 24 a2 bit lshift b2 16 a1 bit lshift b1 8 res bit bor a3 a2 a1 b0 grp update 1 1 5 res dt uint32 h The dimmer can now be controlled through ...

Page 246: ...246 value event getvalue res value 100 255 grp write 1 1 6 res dt uint8 ...

Page 247: ...trol A5 02 05 Temperature Sensor 0C 40C A5 10 06 Temperature Sensor Set Point and Day Night Control A5 02 06 Temperature Sensor 10C 50C A5 10 07 Temperature Sensor Set Point and Fan Speed Control A5 02 07 Temperature Sensor 20C 60C A5 10 08 Temperature Sensor Fan Speed Control A5 02 08 Temperature Sensor 30C 70C A5 10 09 Temperature Sensor Fan Speed and Day Night Control A5 02 09 Temperature Senso...

Page 248: ... the SIM card Dial number dialing number if any Username username if any Password password DNS server 1 DNS server address 1 DNS server 2 DNS server address 2 If you want to use 3G modem for sending receiving SMS you need to add SMS handler program a resident script with sleep interval 0 Note Change white list telephone numbers and SIM card s PIN code in the below script 1 init 2 ifnot modem then ...

Page 249: ... true 27 name end not found stop 28 ifnotposthen 29 returnfalse 30 end 31 get name part 32 name cmd sub 1 offset pos offset trim 33 if mode W then 34 value cmd sub pos offset trim 35 ifnot value then 36 returnfalse 37 end 38 try decoding value 39 jvalue json pdecode value 40 value jvalue nilandjvalueor value 41 send to bus 42 grp write name value 43 read request 44 else 45 obj grp find name 46 sen...

Page 250: ...PIN pincode 78 end 79 set to pdu mode 80 modem send AT CMGF 0 81 enable sms notifications 82 modem send AT CNMI 1 1 0 0 0 83 alert SMS handler started 84 end 85 modem run Command syntax a Write to bus W ALIAS VALUE b Read from bus R ALIAS On read request script will reply with SMS message containing current value of selected object ALIAS can be a Group address e g 1 1 1 b Name e g Obj1 If name con...

Page 251: ...MS to numbers 23335555 and 23335556 with 1 1 1 actual status 1 require socket 2 3 client socket udp 4 5 in the message field the number where SMS has to be send should be specified at the beginning 6 localmsg 23335555 1 1 1 changes its value to tonumber event datahex 7 client sendto msg 127 0 0 1 12535 8 9 msg 23335556 1 1 1 changes its value to tonumber event datahex 10 client sendto msg 127 0 0 ...

Page 252: ...ire ssl https request 4 local url string format https s s api twilio com 2010 04 01 Accounts s Messages json id token id 5 local body string format From s To s Body s escape from escape to escape body 6 7 return request url body 8 end Event based script Add event based program for specific object like 1 1 2 in this example 1 value event getvalue 2 3 from_nr 37112345679 put sender SIM nr here 4 to_...

Page 253: ... A RS485 RS485 B Note LM5 series devices have 1 definitive serial port RS 485 and other one can work either as RS 485 or RS 232 The one will work which is most recently opened If the following command is used you activate RS 485 second port port serial open dev RS485 2 baudrate 115200 parity even duplex ha lf If the following command is used you activate RS 232 port port serial open dev RS232 baud...

Page 254: ...half is required for RS 485 Reads the specified number of bytes execution is blocked until read is complete res err port read bytes Parameters bytes number of bytes to read Reads until timeout occurs or the specified number of bytes is received whichever happens first Returns data plus number of bytes read or in case of error nil plus error message res err port read bytes timeout Parameters bytes ...

Page 255: ...en duplex half port flush end port ready if port then read one byte char port read 1 1 send back if read succeeded if char then port write char end end HEX to RS 485 example require serial port serial open dev RS485 1 baudrate 4800 parity none duplex half cmd string char 0xAB 0xF1 0xFF 0xFF 0xFF 0xFF 0xBE 0xD1 0x01 0xFE 0xFF 0xFF 0x0A 0x24 cmd ABF1FFFFFFFFBED101FEFFFF0A24 port write cmd Check whic...

Page 256: ...th 4 0 Laird BT820 Configuration of Bluetooth is located in LogicMachine BLE tab A support for any BLE device can be added if a communication protocol will be provided and will not change in the future software release of BLE device Profiles List of supported BLE devices can be found by clicking Profiles button To add a new profile you have to upload lua profile file by clicking on Add profile but...

Page 257: ...atically appear in the list By clicking on specific device you can map its functionality to KNX group addresses For AWOX AromLight Color BLE lamp you can map LED color object to KNX There are following mapping objects for Xiaomi Mi Band wearable device present object steps counter battery level vibrate the band ...

Page 258: ...eart rate as one of objects This event based script will switch on ventilation if the heart rate is 80 and switch off if its lower 21 value event getvalue 22 if value 80 then 23 grp write 2 2 2 true 24 else 25 grp write 2 2 2 false 26 end ...

Page 259: ... force depends install http dl openrb com pkg kamailio libncurses_5 7 5_mxs ipk os execute opkg force depends install http dl openrb com pkg kamailio libreadline_5 2 2_mxs ipk os execute opkg force depends install http dl openrb com pkg kamailio kamailio3_3 3 7 1_mxs ipk os execute opkg force depends install http dl openrb com pkg kamailio kamailio3 mod maxfwd_3 3 7 1_mxs ipk os execute opkg force...

Page 260: ...260 SIP client application You can use for example Linphone as your SIP client You have to enter IP of LogicMachine in its settings ...

Page 261: ...ml r objects Parameters address object address e g 1 1 1 name object name e g My object data decoded object value e g 42 or 01 01 2012 datatype object datatype e g 1 or 5 001 standard KNX data types time object update time UNIX timestamp date object update time RFC date comment object comment e g Second floor entry lights tags optional array of object tags e g Light Second floor Note To get list o...

Page 262: ...262 Login Password for remote XML request Login and password can be changed in Network Configuration System GUI Login Admin Remote tab ...

Page 263: ...so Alerts and Errors can be read by XML requests Alerts XML request http remote remote 192 168 0 10 cgi bin scada remote request cgi m xml r alerts Errors XML request http remote remote 192 168 0 10 cgi bin scada remote request cgi m xml r errors ...

Page 264: ...p remote remote 192 168 1 211 cgi bin scada remote request cgi m rss r alerts 50 latest alerts will be shown alert time will be shown in UNIX timestamp alert date will be shown as RFC date Error tab content by RSS RSS can be used to read Error tab content as well In this case the URL would look like http remote remote 192 168 1 211 cgi bin scada remote request cgi m rss r errors ...

Page 265: ...265 Login Password for remote RSS requests Login and password can be changed in System Configuration System User access Admin Remote tab ...

Page 266: ...nsitive objects e g security These objects are synced with cloud server via secure MQTT connection almost in real time This solution uses a native Android app to access cloud 1 Install the latest firmware in LogicMachine http openrb com firmwares 2 On LM s main screen click on Admin icon login with admin password 3 Click on icon to access app store 4 Click on Menu Install from file and choose mclo...

Page 267: ...er use email address as username and password minimum 8 symbols Save 10 Then click on Sign In and login with registered user You can set LM name which you will use to find the device on the cloud dashboard there is possibility to assign several devices to one user account You will be able to choose the LM to control from cloud dashboard 11 Sync Cloud button will synchronize with cloud all Mosaic e...

Page 268: ...enrb com wp content uploads 2017 02 android debug zip and transfer the android debug apk to your mobile Android device install later will be for iOS too 14 Open installed LogicMachine app on mobile device 15 You can find all LMs which are in your network choose any and you are connecting directly to it regular local way If you click on the cloud you will get to the cloud main screen with Mosaic vi...

Page 269: ...rize with your login password 17 Cloud first screen looks like this In the future we will add some more cloud specific applications Click on Mosaic icon which will bring you to your created LogicMachine Mosaic interface ...

Page 270: ... browser in link https cloud logicmachine net and access your LogicMachine from any place in the world 21 We are working also on IP camera stream possibility through Cloud 22 You can check Mosaic20_custom widgets_instructions ZIP http openrb com wp content uploads 2017 02 Mosaic20_custom widgets_instructions zip file which contains manual how to install widget extensions and several Widget ...

Page 271: ...ng pdf contains manual on how to create your own Widgets 23 Please see instructions for adding custom themes CSS http openrb com wp content uploads 2017 03 Mosaic_custom_theme_CSS pdf for your Mosaic visualization Download sample theme here http openrb com wp content uploads 2017 03 theme tar gz ...

Page 272: ...ossible in both directions Application Example USB interface can be used for extending memory capacity via attaching USB flash drive Configuration Commands io readfile file Read whole file at once Returns file contents as a string on success or nil on error io writefile file data Writes given data to a file Data can be either a value convertible to string or a table of such values When data is a t...

Page 273: ... in online mode go to Line Scan tab specify Line range or leave default and click on magnifier icon Once devices are found the scanning process can be cancelled with icon Address physical address of the device Name name of the device Can be changed in Devices tab Type type of the device profile HW SW ID hardware ID and software ID State Defines either the device is in Programming state or not the ...

Page 274: ...the device defines is there are not mistakes with the device Type Name Name of the object Data type data type of the object Value current value of the object Mode mode of the object Relay Output modes Disabled add the device to Devices for further project configuration Scan and show device configuration Device scan Flash device LED ...

Page 275: ...oggle Long press On Long press Off Flags F Filter Defines if the device can filter telegrams for CAN CAN Routers T Transmit Defines if the device can initiate communication R Read Defines if the read command is allowed to the device W Write Defines if the write command is allowed to the device Groups number of groups associated with a particular object Once some change is done button gets active B...

Page 276: ...gs for a specific group Properties properties of group L Log each group change E Export Used to map this group automatically to KNX group Objects tab in LogicMachine P Post process Execute a script on group address change R Read on initialization device start Location location of the object group List devices that use this group address Read write group address value Edit group address Delete grou...

Page 277: ...277 ...

Page 278: ...278 Importing group addresses from ETS project file button allows to import KNX project file Prior to importing ETS project file need to be converted to JSON file using this online utility ...

Page 279: ... the line offline mode Address physical address of the device Name name of the device Device type device type profile Tags tags associated with the device Check if device is online on the bus Duplicate device configuration Scan and show device configuration Write configuration to the device Configure device parameters Edit device base configuration Delete device ...

Page 280: ...ssible for one type e g for UIO16 Binary input outputs binary outputs binary inputs This makes easier ad faster configuration by limiting count of objects Tags associated tags with this device Location location of the device Block write skip device during full project write When clicking on Parameters icon objects settings appear Depending on the software profile chosen you see respective control ...

Page 281: ...281 UIO16 16 channel universal input output module When the changes are done for the device it is marked in yellow ...

Page 282: ...282 Press this button to upload new settings to all modified all devices ...

Page 283: ...tal count of devices Groups group addresses associated with a particular location First number indicates count of specific groups in a particular room Second total count of groups By clicking on button you will add a new location Parent location choose parent location Name name of the new location Add new sub location Duplicate location including devices and group addresses Edit location Delete lo...

Page 284: ...ices are located in which line how many group addresses are associated with a particular device how much space it is required in the cabinet 27 7 Monitoring the fieldbus line In Monitor tab you can see the activity on the bus line send read write requests to specific device group object ...

Page 285: ...sages Stop monitoring Export monitoring results to CSV file Clear the list Fill the search fields with a respective data from a selected entry Send a command to a bus line Choose command type and other parameters and click on green arrow to send request Command types Object ObjectValueRead Request of Value for Object ObjectValueResponse 1 8 bytes Response for ObjectValueRead command return Value f...

Page 286: ...ATA DeviceAddrWrite Return Line ID d 1 Node ID d 0 and Master Code for device 6 bytes d 2 d 7 DeviceConfigRead 2 bytes EEPROM read command for given Address 2 bytes DATA DeviceConfigResponse 8 bytes Return 8 byte of data from EEPROM for given start address DeviceConfigWrite 8 bytes Write 6 bytes of data with 2 bytes address DeviceConfigWriteResponse 1 byte 1 if write is successful of 0 if failed D...

Page 287: ...and click Write Then click and release programming button on the device The Write window will close once the new address is written 27 9 See current physical address of the device To see currently flashed physical address go to Monitor tab start monitor Then shortly press programming button on the device you will see current physical Address ...

Page 288: ...anX device it is necessary to disable direct communication messages in Tools Disable direct communication or through Monitor Semantic dictionary support define either tag dictionary is used from Project Haystack https project haystack org Project Haystack is an open source initiative to streamline working with data from the Internet of Things Haystack standardize semantic data models and web servi...

Page 289: ...ive field will be set to green color 27 13 Connection helper Connection helper allows easing making connection between unused input and output objects Once the Save Conneciton button is clicked a new group address window is opened Address group address Name group name Datatype group data type Tags tags for a specific group Properties properties of group ...

Page 290: ...nks red twice Wait while green LED will blink once Preferably is to restart the power as well after this is done 27 15 Accessing canX objects from LogicMachine scripts To use canX configuration from LogicMachine scripts use scripting Control via script via grp address can require canx can sendrequest data event getvalue command can cmds group valuewrite groupaddress 1 Control via physicall address...

Page 291: ...291 data grp getvalue 28 Other examples Different examples 3rd party protocol integration and other useful applications can be found here http openrb com all examples http forum logicmachine net ...

Reviews: