background image

 
 
 
 

Embedded Systems SIA, VAT No LV40003411103 
47. Katolu str., Riga, LV 1003, LATVIA 
Phone: +371 67648888, fax: +371 67205036, e-mail: 

[email protected]

 

 

 

LogicMachine5 Power (LM5p-PMC)

 

 

Product Manual 

 

 
 
 

 

Document Issue 1.0  

April,  2017 

 

Technical Support: 

[email protected] 

 

Содержание LM5p-PMC

Страница 1: ...T No LV40003411103 47 Katolu str Riga LV 1003 LATVIA Phone 371 67648888 fax 371 67205036 e mail sales openrb com LogicMachine5 Power LM5p PMC Product Manual Document Issue 1 0 April 2017 Technical Sup...

Страница 2: ...B KNX EIB Serial interfaces LM allows to use it as cross standard gateway logic engine visualization platform IP Router Scripting templates provides user friendly flexible configuration interface and...

Страница 3: ...ealth 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 t...

Страница 4: ...NG 61 6 1 1 Block programming 61 6 1 2 Block functions 63 6 1 3 Adding a new script 65 6 1 4 Event based scripting 67 6 1 5 Resident scripting 68 6 1 6 Scheduled scripting 68 6 1 7 Script editor 69 6...

Страница 5: ...editor 123 6 8 2 Object 124 6 8 3 Link 126 6 8 4 Text Label 127 6 8 5 Image 128 6 8 6 Frame 129 6 8 7 Gauge 131 6 8 8 Camera 131 6 8 9 Graph 133 6 9 VIS GRAPHICS 135 6 10 UTILITIES 137 6 11 USER ACCES...

Страница 6: ...M SCRIPTS 198 15 DMX INTERCONNECTION WITH LM 205 16 ENOCEAN TRANSMITTER CONFIGURATION 211 16 1 ENOCEAN INTERFACES 211 16 2 ENOCEAN TO KNX MAPPING 211 16 3 KNX TO ENOCEAN MAPPING 213 16 4 MAPPING TO EN...

Страница 7: ...7 7 ADD EVENT FUNCTION BLOCK 248 27 8 LINKING BLOCKS TOGETHER 250 27 9 CREATION OF CUSTOM BLOCKS 252 27 9 1 Description 252 27 9 2 Example of one function 252 27 9 3 Input definition 253 27 9 4 Output...

Страница 8: ...r KNX bus powering automatically swaps when one of inputs fails Power consummation 1 3W Interface KNX EIB TP1 1 10BaseT 100BaseTX 1 RS 485 1 RS 485 RS 232 1 switchable in software full duplex RS232 ha...

Страница 9: ...9 Color Gray Dimensions 71 W x90 H x61 L mm Usage temperature 0C 45C Storage temperature 15C 55C Net Weight 119g Gross Weight 137g Warranty 2 years Relative Humidity 10 95 without condensation...

Страница 10: ...NX line backup 3 Power supply to power LM5 itself backup All three power supplies should be on one phase except if you are using galvanically isolated power supplies for example transformer based If t...

Страница 11: ...n 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 an...

Страница 12: ...12 Power monitoring If KNX bus is powered you can see fieldbus power consumption mapped to KNX objects in LogicMachine Power meter...

Страница 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 oper...

Страница 14: ...ction 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 i...

Страница 15: ...15 2 Standards supported...

Страница 16: ...h USB modem DMX512 in the box through RS485 DALI 1 Wire AllJoyn Ekey biometrical access systems RS485 HVAC systems can be controller through RS485 Ethernet interface by using scripting SMTP Email SSL...

Страница 17: ...the device HTTP IP Secure access to the device is available via HTTPS IP Port Supported web browsers Google Chrome or Mozilla Firefox for OS Windows Safari for OS X 3 3 Factory default You can either...

Страница 18: ...he IP address got from DHCP server This field appears 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 serv...

Страница 19: ...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 mark...

Страница 20: ...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 discover...

Страница 21: ...chine 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 LogicMa...

Страница 22: ...agement with 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...

Страница 23: ...munication 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 butto...

Страница 24: ...e 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 fe...

Страница 25: ...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 Grou...

Страница 26: ...olicy 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 l...

Страница 27: ...ystem 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 u...

Страница 28: ...d 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 whi...

Страница 29: ...29...

Страница 30: ...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 visualizat...

Страница 31: ...r 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 opt...

Страница 32: ...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 proper...

Страница 33: ...ntent 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...

Страница 34: ...nce 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 Illus...

Страница 35: ...35 a basic background which can be changed by necessity b foreground which will stay unchanged...

Страница 36: ...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 st...

Страница 37: ...e 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 resolutio...

Страница 38: ...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...

Страница 39: ...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 tran...

Страница 40: ...ad 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 iPa...

Страница 41: ...41...

Страница 42: ...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 sp...

Страница 43: ...emove 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...

Страница 44: ...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 sear...

Страница 45: ...s 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...

Страница 46: ...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 usi...

Страница 47: ...t 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 c...

Страница 48: ...cking 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...

Страница 49: ...rectory 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...

Страница 50: ...rovides 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 tr...

Страница 51: ...ment 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...

Страница 52: ...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 b...

Страница 53: ...ylang 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...

Страница 54: ...ables 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 lo...

Страница 55: ...stamp 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 ta...

Страница 56: ...iven 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 upda...

Страница 57: ...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 add...

Страница 58: ...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 tablen...

Страница 59: ...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 Sam...

Страница 60: ...ualization structure definition Visualization Visualization creation control and monitoring Vis graphics icon background font management Utilities utilities including import from ETS reset object DB b...

Страница 61: ...lly 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 on...

Страница 62: ...zzle based and can be put only in appropriate location other block If the block is indicated with the blue label on the top left corner you can define the structure of the block e g If Else Press Dele...

Страница 63: ...g menu there is Block functions button Here you can create custom block functions which can be later used as ready block in Block editor Each function must have a special comment in order to be conver...

Страница 64: ...r other blocks can be connected to inputs by default If input definition has object storage or tag in its name then the input is replaced with object storage or tag selection input Each output variabl...

Страница 65: ...hould 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 whet...

Страница 66: ...sident 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 Cate...

Страница 67: ...gram 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 del...

Страница 68: ...he following command a event getvalue Note To get event group address object name use the following command a grp alias event dst 6 1 5 Resident scripting Resident scripts are executed infinite amount...

Страница 69: ...oups 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 int...

Страница 70: ...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...

Страница 71: ...en 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...

Страница 72: ...nds 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 w...

Страница 73: ...ype 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 depe...

Страница 74: ...e 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...

Страница 75: ...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 sto...

Страница 76: ...cuted 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 ex...

Страница 77: ...parator 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 co...

Страница 78: ...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 ite...

Страница 79: ...ar 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...

Страница 80: ...ven 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 separat...

Страница 81: ...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...

Страница 82: ...ig 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...

Страница 83: ...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 val...

Страница 84: ...ined 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...

Страница 85: ...revious 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...

Страница 86: ...f 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...

Страница 87: ...math tan x Returns the tangent of x assumed to be in radians math tanh x Returns the hyperbolic tangent of x 6 1 28 Table manipulations This library provides generic functions for table manipulation...

Страница 88: ...f 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...

Страница 89: ...te 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 I...

Страница 90: ...ody 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...

Страница 91: ...ed 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 __tos...

Страница 92: ...quire when writing scripts Also this have to be checked if Block programming is used 6 1 32 Common functions Common functions contains library of globally used functions They can be called from any sc...

Страница 93: ...ult 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...

Страница 94: ...94 Show logs window show logs in separate window Edit custom JavaScript...

Страница 95: ...showPlan 69 See more examples here http forum logicmachine net showthread php tid 275 6 2 Objects List of KNX network objects appears in Objects menu The object appears in the list by way of sniffing...

Страница 96: ...gh 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 gatew...

Страница 97: ...s 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 pr...

Страница 98: ...98 When you add the object with RGB color data type in the Visualization the color picker with predefined colors appears...

Страница 99: ...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 opposi...

Страница 100: ...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 t...

Страница 101: ...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 rou...

Страница 102: ...ues 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 d...

Страница 103: ...pends on what visualization parameters are set for specific object 6 2 5 Custom values If special value naming is necessary use this icon to set it up only for Boolean and Integer data types 6 2 6 Obj...

Страница 104: ...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...

Страница 105: ...minutes from RAM to Flash or when Reboot or Shutdown commands are sent KNX statistics graphs shows average KNX bus load 6 2 7 Filter objects On the left side of the object list there is filtering poss...

Страница 106: ...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...

Страница 107: ...ar 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...

Страница 108: ...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...

Страница 109: ...roup address values based on the date or day of the week 6 4 1 Add new scheduler By clicking on the Schedulers Add new scheduler you will see such parameter window Object the object group address whic...

Страница 110: ...ls 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...

Страница 111: ...s 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 4 4 Direct link To ge...

Страница 112: ...laces 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 dat...

Страница 113: ...tes 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 re...

Страница 114: ...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 g...

Страница 115: ...115 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...

Страница 116: ...he sequence is defined here Object group address Write to bus define either to send KNX bus telegram 6 7 Visualization structure In Vis structure menu the structure of the visualization is defined and...

Страница 117: ...mporting 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 se...

Страница 118: ...is 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 visualiz...

Страница 119: ...ll 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...

Страница 120: ...s 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...

Страница 121: ...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 eith...

Страница 122: ...122 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...

Страница 123: ...d 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 8 1 Plan editor Plan edi...

Страница 124: ...ch 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 clic...

Страница 125: ...125 Visualization parameters Defines global or local visualization parameter for specific group address...

Страница 126: ...ecifying 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 y...

Страница 127: ...tive 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 class...

Страница 128: ...e 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 re...

Страница 129: ...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 8 6 Frame With Frame functionality you can integrate 3rd...

Страница 130: ...130 Additional classes additional CSS classes for the element...

Страница 131: ...ead 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 objec...

Страница 132: ...s 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 ca...

Страница 133: ...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 n...

Страница 134: ...d 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...

Страница 135: ...nds 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 Ima...

Страница 136: ...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 w...

Страница 137: ...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...

Страница 138: ...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 vi...

Страница 139: ...ther 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...

Страница 140: ...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 whe...

Страница 141: ...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 Ser...

Страница 142: ...nd 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 accessi...

Страница 143: ...ization 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...

Страница 144: ...ed 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...

Страница 145: ...levels are too high 25 3 5 alert Temperature level is too high 1f temperature 6 end 6 13 Error log Error messages from scripts are displayed in Error log tab 6 14 Logs Logs can be used for scripting c...

Страница 146: ...146 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...

Страница 147: ...ion 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 o...

Страница 148: ...oose 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 cas...

Страница 149: ...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 Thi...

Страница 150: ...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...

Страница 151: ...m 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...

Страница 152: ...lt 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 d...

Страница 153: ...153 9 8 KNX connection KNX specific configuration is located in Network KNX connection window General tab...

Страница 154: ...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 o...

Страница 155: ...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 Gro...

Страница 156: ...ing 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 wit...

Страница 157: ...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 addr...

Страница 158: ...ttempt 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 seco...

Страница 159: ...159 9 11 BACnet objects In Network BACnet objects you can see marked objects on LogicMachine which are sent to BACnet network...

Страница 160: ...r 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 st...

Страница 161: ...he 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 n...

Страница 162: ...ername 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 director...

Страница 163: ...g 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 ale...

Страница 164: ...ghts 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 obje...

Страница 165: ...mote 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...

Страница 166: ...bled 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 clie...

Страница 167: ...167 9 20 System status General system status with CPU usage Memory usage Partition Serial ports information can be seen in Status System status window...

Страница 168: ...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 Sy...

Страница 169: ...169 9 23 Running processes System running processes can be seen in Status Running processes window...

Страница 170: ...r 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 ma...

Страница 171: ...171 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...

Страница 172: ...n 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 i...

Страница 173: ...led 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...

Страница 174: ...174 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...

Страница 175: ...175...

Страница 176: ...he 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 addres...

Страница 177: ...lt 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 t...

Страница 178: ...TU 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 locate...

Страница 179: ...ings 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...

Страница 180: ...ile 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 i...

Страница 181: ...rn 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 follow...

Страница 182: ...__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...

Страница 183: ...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...

Страница 184: ...ta 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 ta...

Страница 185: ...les 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...

Страница 186: ...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 o...

Страница 187: ...nection 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 1...

Страница 188: ...ion 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 setmapp...

Страница 189: ...ed 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...

Страница 190: ...190 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...

Страница 191: ...ring 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 Dev...

Страница 192: ...BMD 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 mak...

Страница 193: ...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...

Страница 194: ...lue 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 ob...

Страница 195: ...195 Clear binary object value at priority 12 bacnet write 127001 binary value 2305 nil 12...

Страница 196: ...DALI 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 au...

Страница 197: ...nected if you use separate power supplies for LM and DALI gw Make sure you define Port name in Port settings when using RS485 DALI gateway If you use Reactor with 1 x RS485 the port name will be dev R...

Страница 198: ...ts cmd string command to send refer to command table for possible values params table command parameters Params Lua table addrtype string address type only required for addressable commands possible v...

Страница 199: ...to 254 set level to 42 for all slave on the internal DALI bus dalicmd internal arc addrtype broadcast value 42 Setting DTR For commands where DTR is needed prior to executing command use setdtr comman...

Страница 200: ...ing group 7 to a certain value event based script object 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...

Страница 201: ...n end for _ item in ipairs scene do grp write item 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 ipa...

Страница 202: ...atahex 16 if val 0 then return end up normal mode if event dst 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 o...

Страница 203: ...dim down 1 1 3 1 byte scale output 3 Create an event 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 sp...

Страница 204: ...failure query lamp failure querylamppoweron query lamp power on querylimiterror query limit error queryresetstate query reset state querymissingshort query missing short address queryversion query ver...

Страница 205: ...etype enable device type x 0 255 15 DMX interconnection with LM DMX protocol support is realized upon RS485 serial port DMX function Add the following user library in Scripting User libraries local lu...

Страница 206: ...returns new DMX object function init params local n k v _ create metatable and set user parameters n setmetatable __index DMX n params params or _ n conn pcall require redis connect merge parameters...

Страница 207: ...f channels ticks self ticks values self conn lrange self params skey 0 max 1 or check for new values for each channel for chan 1 max do val tonumber values chan or 0 target value differs set transcati...

Страница 208: ...rams channels do t channels chan ticks transition is active if t 0 then t t 1 channels chan current channels chan target channels chan delta t channels chan ticks t self dm setchannel chan channels ch...

Страница 209: ...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 g...

Страница 210: ...cenes 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...

Страница 211: ...nects 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...

Страница 212: ...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 g...

Страница 213: ...utton 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 de...

Страница 214: ...ed 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 int...

Страница 215: ...uator 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...

Страница 216: ...216 value event getvalue res value 100 255 grp write 1 1 6 res dt uint8...

Страница 217: ...rol 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...

Страница 218: ...i_hdrc 1 force_full_speed 3 os execute usbreset dev bus usb 001 001 After you need to add SMS handler program a resident script with sleep interval 0 Note Change white list telephone numbers and SIM c...

Страница 219: ...0 read new value 51 value grp getvalue name 52 got value send response 53 if value nilthen 54 jvalue json pencode value 55 if obj name then 56 name string format s s obj name obj address 57 end 58 cmd...

Страница 220: ...es then it must be escaped usign double quotes e g Room Temperature NOTE a Object data type and name must be set in Objects tab Otherwise script won t be able to read and write to object b Only ASCII...

Страница 221: ...cMachine through Twilio service without external 3G adapter You can use Twilio service which offers free of charge SMS in the test period and messaging at 0 01 for regular usage The only disadvantage...

Страница 222: ...this example 1 value event getvalue 2 3 from_nr 37112345679 put sender SIM nr here 4 to_nr 37112345678 put recepient SIM nr here 5 id_nr ACe56f5 put your ID here 6 token_nr 598c6ff put your token here...

Страница 223: ...3 GND RS485 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 follow...

Страница 224: ...alf 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 o...

Страница 225: ...n 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...

Страница 226: ...h 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...

Страница 227: ...tically 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...

Страница 228: ...art 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 20 value event getvalue 21 if value 80 then 22 grp write 2 2 2 true 23...

Страница 229: ...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 dep...

Страница 230: ...230 SIP client application You can use for example Linphone as your SIP client You have to enter IP of LogicMachine in its settings...

Страница 231: ...l 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 ti...

Страница 232: ...232 Login Password for remote XML request Login and password can be changed in Network Configuration System GUI Login Admin Remote tab...

Страница 233: ...o 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 cg...

Страница 234: ...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 co...

Страница 235: ...235 Login Password for remote RSS requests Login and password can be changed in System Configuration System User access Admin Remote tab...

Страница 236: ...sitive 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 firmw...

Страница 237: ...r 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 dashb...

Страница 238: ...nrb 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 dev...

Страница 239: ...ize 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 LogicMachin...

Страница 240: ...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_cus...

Страница 241: ...g 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 v...

Страница 242: ...ssible 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 Retu...

Страница 243: ...xing both standards on single diagram 27 1 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...

Страница 244: ...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 L...

Страница 245: ...of 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 conne...

Страница 246: ...Timer 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 ou...

Страница 247: ...nd 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 aroun...

Страница 248: ...ts 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...

Страница 249: ...cated 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 sc...

Страница 250: ...her 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 wit...

Страница 251: ...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 r...

Страница 252: ...low this line comment can 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 it...

Страница 253: ...ject find Input3 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 a...

Страница 254: ...254 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...

Отзывы: