background image

www.BrickElectric.com 

7. Fast Program Reference 

7

.1 Easybus Specifications 

EasyBus use more friendly language to control the relay module. With "easy to 

understand" grammar and similarity to OS command lines, it's extremely easy to work with 

it. Read the following materials and you will be ready to go with every detail in 10 minutes.   

 

Not like any other field bus, you don't need to be an expert of automation or learn 

programming to use it. This saves time for many people who wants to focus on more 

creative works, and they can start to create application with BEM105 immediately, rather 

than spend lots of time on learning the old-fashioned and very detailed industry 

automation communication protocol before they can really start to do anything. 

 

How to send a correct switch command? 

Example - switch on relay channel 1:   

K01 = 1; 

Example 

– set parameter 65, to value 1000: 

setpara[65] = 1000;

 

Example 

– read parameter 65 (value will be returned in module reply): 

getpara[65] = 1; 

 

 

Parameter list

   

In BEM105, there are many parameters for controlling the behavior of module. The 

following table is the general description of all parameters available and their functionality: 

   

No.  Name 

Functionality 

000  - 

Reserved parameter 

default value: - 

range: - 

001  - 

Reserved parameter 

default value: - 

range: - 

002

 

GW1 

module gate way address 1 

default value: 192 

range: 0 – 255   

003

 

GW2 

module gate way address 2 

default value: 168 

range: 0 – 255   

004

 

GW3 

module gate way address 3 

default value: 1 

range: 0 – 255   

Summary of Contents for BEM107

Page 1: ...nnel and provide with both enclosed and open type housing Its Ethernet connector provides 10 100baseT interface It supports EasyBus TCP HTTP control and Internet control protocols suitable for being u...

Page 2: ...onality 9 4 1 Basic Network Communications 9 4 2 Save Parameters 9 4 3 Reboot 9 4 3 DHCP Function 10 4 4 Static IP Address 10 4 5 Relay outputs control 11 4 6 Password protection 16 4 7 Http port sett...

Page 3: ...ion Temperature 30 to 85 Module Size 75mmx50mmx20mm Weight 1 2 Connection Diagram Fig 1 1 2 Specifications 2 1 Recommended Operating Conditions Parameters At T 25 Vsuplly 5V unless otherwise specified...

Page 4: ...ress 192 168 1 105 Subnet Mask 255 255 255 0 Gateway 192 168 1 1 DHCP disable Latest Firmware Version V107 0 00 You can download latest firmware for free HTTP function State Enable Port 80 Internet Co...

Page 5: ...rk by minimum steps For more information please refer to later chapters 3 1 HTTP Mode 1 Connect BEM107 with your routers or computer via a standard Ethernet cable And then power it on with 5 24VDC pow...

Page 6: ...2 2 Open any TCP test tool if you don t have any or you don t know what a TCP test tool is you can use BE Manager it is within our software package Open it and see the following Fig 1 2 Fig 1 2 3 Cli...

Page 7: ...www BrickElectric com Fig 1 3...

Page 8: ...ee fig 1 1 at page 2 2 Open Hello Brick app for android at any android phone register a user and then have fun with Internet control 3 If you need online help or need to contact us for customized func...

Page 9: ...ual delivered together with module package 4 2 Save Parameters After power cycle BEM107 will lose its parameter modifications if you don t actively require it to save modified parameters into internal...

Page 10: ...Assuming module current IP Address is 192 168 1 105 for all the following commands Enable Disable DHCP Note modification only effective after parameter saving and module reboot To Enable DHCP Web acce...

Page 11: ...on only effective after parameter saving and module reboot To set static Gateway Address to 192 168 2 1 Web access URL http 192 168 1 105 gateway 192 168 2 1 Socket command text gateway 192 168 2 1 Se...

Page 12: ...ands No timing features included Switches To switch off ch1 output Web access URL http 192 168 1 105 k01 0 Socket command text k01 0 To switch on ch1 output Web access URL http 192 168 1 105 k01 1 Soc...

Page 13: ...ommands and wait for a predefined time period then automatically switches to opposite status Switches To pulse on ch1 output you can input by require web access Web access URL http 192 168 1 105 k01 3...

Page 14: ...imer K0xT1 timer supports from 1ms to 4294967295 second K0xT1 needs to be set for time value and K0xU1 needs to be set for timer value unit Default value for K0xT1 is 1000 and default unit for K0xU1 i...

Page 15: ...6 Timing Features To set up customized timer for relay cycle outputs timer T1 and T2 are used and need to be set Each relay channel has two independent timers K0xT1 and K0xT2 time period supports from...

Page 16: ...Mode Read current relay output status for feedback control Module will return the current status in web content or socket text depending on how do you send the command To read relay ch1 current status...

Page 17: ...eeded for port forwarding or any other reasons For example you can force your web browser to access http content at port 8080 to do so you need to enter http url 8080 This module is able to customize...

Page 18: ...cation customized information When more than one modules are installed in the field it is necessary to be able to read the identification information from module for example serial number Except for s...

Page 19: ...vice firmware version you can read device firmware version by communication for the purpose of better identification the device or diagnosis To read device firmware version Web access URL http 192 168...

Page 20: ...output module When one input is mapped to one or more outputs then if this input is triggered all the outputs that it mapped will also be triggered immediately 5 1 X Connect Map Setting Each BEM Seri...

Page 21: ...ct 1 8 105 4 VWSL4 X Connect CH4 input select 1 8 106 5 VWSL5 X Connect CH5 input select 1 8 107 6 VWSL6 X Connect CH6 input select 1 8 108 7 VWSL7 X Connect CH7 input select 1 8 109 8 VWSL8 X Connect...

Page 22: ...61 8 VWSIP81 X Connect CH8 target IP 1 0 255 162 8 VWSIP82 X Connect CH8 target IP 2 0 255 163 8 VWSIP83 X Connect CH8 target IP 3 0 255 164 8 VWSIP84 X Connect CH8 target IP 4 0 255 165 9 VWSIP91 X C...

Page 23: ...5 Relay 1 output control Write Read 00000 1 02 Input 1 status read Read To look into Modbus TCP frame structure or create your own Modbus TCP program here are the detailed message frame for each comma...

Page 24: ...e old fashioned and very detailed industry automation communication protocol before they can really start to do anything How to send a correct switch command Example switch on relay channel 1 K01 1 Ex...

Page 25: ...192 range 0 255 011 SIP2 module IP address 2 default value 168 range 0 255 012 SIP3 module IP address 3 default value 1 range 0 255 013 SIP4 module IP address 4 default value 105 range 0 255 014 Reser...

Page 26: ...ved parameter default value range 027 Reserved parameter default value range 028 Reserved parameter default value range 029 K1U1 Relay K1 timer T1 unit selector 0 ms 1 second default value 0 range 0 1...

Page 27: ...rved parameter default value range 040 Reserved parameter default value range 041 Reserved parameter default value range 042 Reserved parameter default value range 043 Reserved parameter default value...

Page 28: ...range 054 Reserved parameter default value range 055 Reserved parameter default value range 056 Reserved parameter default value range 057 Reserved parameter default value range 058 Reserved paramete...

Page 29: ...K2T2 Relay K2 timer T2 value default value 1000 range 0 65535 069 Reserved parameter default value range 070 Reserved parameter default value range 071 Reserved parameter default value range 072 Rese...

Page 30: ...rved parameter default value range 084 Reserved parameter default value range 085 Reserved parameter default value range 086 Reserved parameter default value range 087 Reserved parameter default value...

Page 31: ...P Device model type default value 107 range 100 DEVSN Device serial number default value range 101 PIP1 1 Ping monitor 1 IP address 1 default value 192 range 0 255 102 PIP1 2 Ping monitor 1 IP address...

Page 32: ...d parameter default value range 113 Reserved parameter default value range 114 Reserved parameter default value range 116 Reserved parameter default value range 117 Reserved parameter default value ra...

Page 33: ...rameter default value range 130 Reserved parameter default value range 131 Reserved parameter default value range 132 Reserved parameter default value range 133 PNAME1 Ping monitor 1 domain name max 5...

Page 34: ...AIT 5 K02 0 range 143 Reserved parameter default value range 144 Reserved parameter default value range 145 Reserved parameter default value range 146 Reserved parameter default value range 147 Reserv...

Page 35: ...r 2 max allowed no response failure times before reboot default value 3 range 0 65535 159 Reserved parameter default value range 160 Reserved parameter default value range 161 Reserved parameter defau...

Page 36: ...lector after reboot 0 ms 1 second default value 0 range 0 1 174 PDU2 Ping monitor 2 delay timer unit selector after reboot 0 ms 1 second default value 0 range 0 1 175 Reserved parameter default value...

Page 37: ...ult value 0 range 0 1 183 Reserved parameter default value range 184 Reserved parameter default value range 185 Reserved parameter default value range 186 Reserved parameter default value range 187 Re...

Page 38: ...t us Email brickelectric hotmail com WhatsApp Online Support 86 182 1730 3961 Call Us 86 182 1730 3961 If you have any questions or any customized software hardware requirement please send an email to...

Reviews: