2-Wire MEMO2 WS.502 User manual

MEMO2 MANUAL
Version 1.5
Dirk Jaspaert
Short
This guide describes the many functionalities of the MEMo2 data logger web server. The
energy meters and measurement modules that are linked on this web server are described in
the quickstart manual.

Manual WS.502 v1.5 2-Wire Energy Monitor
1
MEMo2 MANUAL
1. Overview
2. Bus structure
3. Start
4. Network settings
5. Mail settings
6. Upgrading
7. Energy prices
8. Login - password
9. Programming modules
10.Module Logic
11.Lay-out
12.EPC-value
13.Control
14.Charts
15.Export Subtotals
16.Log to FTPserver
17.Data transfer via HTTP
18. Wireless communication
19.Quick start
20.Problem solutions
1. Overview
The MEMo2 web server, articlecode WS.502, offers a
lot of possibilities to enable the logging and
visualization and control of data. What the type of
data is can be all sorts of:
1. Measurements of electrical consumers:
voltage, current, power recorded power,
reactive power, power factor, consumption.
2. Measurement values of caloric consumers:
water temperature departure and return,
flow ability, consumption heating and
cooling
3. Thermostat metrics: regimen (heating,
cooling, ventiving) set point, room
temperature, fan speed.
4. Air sensor measurements: CO2, room
temperature, humidity, IAQ.
5. Impulses count from energy meters such as
gas and water meter.
6. Measuring energy consumption of known
appliances on a timely basis. (e.g. hot water
boiler, mazout burner, lighting...)
7. Alerts to mailbox when power is exceeded,
consumption, temperature control
8. Billing of energy costs based on counter
positions of calibrated meters
On the web pages, all log values of the modules can
be viewed in graphs, per hour, per day or per year,
including the consumption costs of that year.
Intermediate totals are also calculated, which can be
exported in different sizes.

Manual WS.502 v1.5 2-Wire Energy Monitor
2
Characteristics WS.502:
1. DIN-rail module (2 modules wide)
2. Power supply: 15V/1A
3. Bus connection: MODBUS (max. 32 modules)
4. RF LORA-FSK transceiver 868 MHz, 100mW
5. Ethernet connection with integrated transfo's
6. Network processor 10/100Mbit/sec
7. Real Time Clock with backup battery synced
daily with NTP server
8. FRAM memory for backup meter readings 32
kb
9. SD card 8Gb (backup configuration and
datalogs 3 years)
10. Upgrading via FTP-server 2-WIRE
11. 64 log channels, each up to 5 readings (32bits)
and 2 consumption values (import export)
12. Communication every minute to the
connected modules for the readings
13. Logging every minute to SD of 5
measurements per channel, every 5 minutes
for consumption
14. Use costings with adjustable period
(approximate, NOT FOR OFFSET)
15. EPC level calculation (kWh/m2)
16. Web server HTML : 4 users + 1 administrator
can use the server simultaneously.
17. Login, password and language choice (NL-FR-
EN-DU) per user.
18. IP-adres fix of dynamisch via DHCP-server
19. Domain name instead of IP address possible
via DNS server
20. Full configuration of all modules, creating
groups for layout
21. FTP Client: Set rhythm for logging data to
remote FTP server individually adjustable for
real-time measurements (interval per minute,
up to 60 minutes) and for consumption
measurements (interval per 5min, up to 24h).
The format is CSV, in the AMR-MMR format
(BE: EANDIS). Each file has a unique name and
can be processed in your own database.
22. Exporting data to a local csv file
23. Deactivated for MEMo2 (HTTP-request: Via a
instruction set all readings and consume
requests per channel, from a chosen time and
a certain period (1 day to 31 days). The format
is JSON and can easily be converted to tables. )
24. Deactivated for MEMo2 Online operation or
request statuses of vb relay contacts,
thermostat can also be via an HTTP request.
25. Visual logic user interface for monitoring or
controlling consumer, creating calculated
graphs,...
1. BUS STRUCTURE
The WS.502 has 2 communicationsystems on board:
a wirelessRFbus according to the LORAprotocol, and a
MODBUScommunication.
1. MODBUS: GND = BUSCLAMP 1, A =
BUSCLAMP 2, B = BUSCLAMP 3
2. EC.441-RG.016: GND = BUSCLAMP 1, A =
BUSCLAMP 2, B = BUSCLAMP 3, VDD =
BUSCLAMP 4
Between the clamps A-B, the supplied resistors (120
ohm) must be placed on both ends of the bus!
Recommended is EIB bus cable (4 wire)
More info: please consult documentation modules
3. Start
1. Supplied power supply (15V) to WS.502
connect to power clamps at the top. (Polarity
does not play a role)
2. Connect network cable at the bottom must be
connected to the Internet via switch or
(wireless) router.
3. Connect bus to the energy modules: EC.441 –
RG.016 –EMMxxx etc.
4. Attention: Always connect first network cable
and only then provide power to the Memo
server
Power supply: at the top of the WS.502,all LEDs must
be lit. After a few seconds, led L2 should go out,
followed by LED L3 and LED L4. Afterwards, led L3 will
light up every 2 seconds (heart-beat)

Manual WS.502 v1.5 2-Wire Energy Monitor
3
At the bottom where the network cable is plugged in,
a green LED should be lit, and regularly an orange LED.
Then the network connection is fine. If EC.441 or
RG.016 modules are connected, the powerled of
these modules must light up.
4. NETWORK SETTINGS
By default, the WS.502 is on 'FIXIP', which means
that at the first boot the IP address is standard at
192.168.0.123:8080. To change or verify this address,
the 'ServerScanner' program is available. You can
download this program on the website of 2-WIRE.
https://www.2-wire.net/product/ip-serverscanner/
Start this program and press the green button until
data appears.
(Sometimes multiple attempts are required)
You can keep the found IP address or you can change
the network settings from the server scanner with the
'Set IP' button
to 'Suggested for Lowi/server' so that Memo will be
in your network range or
you can set the Memo server to DHCP and after
restarting the Memo it will be assigned an IP address
from your router which you will find with the server
scanner.
Note HARD RESET to fixed IP address
Should DHCP fail, and you want to return to the
default address (192.168.0.123:8080), you can follow
the following procedure:
Procedure: Turn off voltage of the WS502, wait 5
seconds, hold down key S2, turn on voltage, and keep
pressing until the LED starts flashing. Keep pressing for
another 3 seconds until the LED stops blinking, and
then release the key. After about 5seconds all LEDs are
off and the WS502 is at a fixed address. You must now
'surf' to the default IP address: 192.168.0.123:8080
(100% tested and recommended browser = Google
chrome)
Note. This standard address is not always suitable for
the network where your PC or laptop is connected.
When you're in a different range, you'll need to adjust
the web server's network settings via the IPserver
scanner to suggested for lowi/server! Further
explanation can be found at addendum 'problem
solutions'
As soon as an IP address is assigned, you can surf to
the IP address by typing it into the address bar of a
web browser, including the port number!
(recommended: google chrome)
The gate No. is standard on '8080'. As an example,
you type in: 192,168. 1.122:8080
Note the colon between address and port number!
The next login screen should
now appear. If this is not the
case, check the connections of
the web server again.
Login with login and password:
'adminIP' and password '2015'
With this login you can change all IP settings, but not
change a password (this should be done with login
'admin2-WIRE' and password'2015')

Manual WS.502 v1.5 2-Wire Energy Monitor
4
Once logged in:
Click'CONFIGURATION':the following menus appear:
Start
with 'SETTINGS':
We start by checking the network settings. If 'DHCP' is
checked, it must be checked out, otherwise there is a
chance that a different IP address will be assigned at
the next start-up. You can always change the address
or port number if necessary.
As an example:
192.168.0.123 and port number 8080.
Please note that when you change this address, you
will need to write down what the new address and
port number is! After sending, you no longer have
communication and you have to start in the browser
with the new IP address and port number.
Press 'SEND CONFIG'
After a second confirmation, you must enter the new
address and port number in your web browser. If
there is communication, the new institution has
succeeded.
Now we have to surf to 192.168.0.123:8080 and then
the address setting succeeded.
Would you rather work with DHCP: have an IP
address automatically awarded via a 'DHCPserver'
Tick 'DHCP' and press 'SENDCONFIG'.
After a short waiting period, a new IP address will be
assigned to your web server. (In this example
192,168,0.164 : 8080)
Write down this new address and press the
confirmation button again.
From now on, there is no communication at your
former IP address.
In the toolbar, type the newly assigned address to get
back connected.
Go back to'CONFIGURATION' ->'SETTINGS'
GATEWAY-SUBNETMASK-DNS SERVER
There must be internet on your web server, otherwise
there are no charts to see, and you can't send logs to
a remote FTP server so important that also
'GATEWAY', 'SUBNETMAK' and 'DNS SERVER' are
entered correctly

Manual WS.502 v1.5 2-Wire Energy Monitor
5
'GATEWAY': Normally this is the 3 first digits of your
IP address, and the last number '1'. (e.g. your IP
address is 192.168.0.123, then the GATEWAY
192.168.0.1)
If you do not fill this in correctly, there is no internet
on your web server.
'SUBNET MASK': stands default at 255,255,255.0
This should only be changed if the web server is
connected to an extensive (sometimes industrial)
network. These settings are then communicated to
you by the IT technicians.
"DNS SERVER" : Fills in automatically when you've
checked DHCP. Usually this also works when you type
in the same IP address as your Gateway. (e.g.
192.168.0.1)
TIP: You can go to the IP data of the PC and not take
over the IP address but Gateway, Subnet mask and
DNS server in the web server, or you can take it from
'Suggested for LOWI/server' from the server scanner.
FTP SERVER LOGS:
You may also want to forward the log data to a
remote FTP server. For this we have to work with an
IP address, or with a 'domain name'. The port number
is always '21' (e.g. 78.22.222.111:21)
IP FTP LogServer : Enter the IP address of your FTP log
server here (port fix 21)
If you have a domain name, check the box for 'IP
FTP-LogServer' Domain Name
: Enter domain name (e.g.
www.mijneigenftpserver.be')
Note If you don't get it working with a domain
name try with the IP address of your domain
name. FAQ describes how to find that IP
address via cmd ping : https://www.2-
wire.net/veel-gestelde-vragen/
In sendftp config, if a valid domain name is filled in,
the found IP address will be filled in (e.g.
195.130.132.100:21)
Login Name - Pass: In the FTP server we also have to
(security) also set up a user, password and possibly a
folder where the data is stored.
After all, several web servers can log their data to the
same FTP server and then it is desirable that each
logger is assigned a folder for their data.
Of course, the login name, password and folder name
must also be the same in the FTP server. If the FTP
server has assigned a folder per user, the 'Dir Name'
must remain blank.
The length of the login is max 32 characters
(contiguous without special characters !)
The length of the password up to 22 characters, and
the folder up to 32 characters
RT LOG- CONSUMPTION LOG
1. RT log : stands for RealTime. This is only data
from connected modules and continuously
gives the current values according to set
interval by i.f.v. the type of module: electrical
measurements (voltage-current-power-
reactive power –PF), temperatures, CO2,
humidity, pulse counters...
Interval adjustable between 5-60minutes
or'NO'.

Manual WS.502 v1.5 2-Wire Energy Monitor
6
2. RT Daylog Interval: One can also transmit the
full data of the previous day once a day at a
chosen time, where an interval can be chosen
between 1 and 60minutes.
Send Daylog: time of day to forward all RT
logs.
1. ConsumptionLog: (=counter values)
continuously forward consumption to the FTP
server according to set interval.
Interval adjustable between 5-60mins or 'NO'.
2. Day Log Interval: One can also transmit the
full data of the previous day once a day at a
chosen time, where an interval can be chosen
between 5 min. and 24h.
Send Daylog: time of day to transmit all
consumption logs.
3. Location Name: all log files will be named:
'Location Name', along with date The same
name will also serve for 'Alerts' emails. See
later
5. MAIL SETTINGS
With 'logic', 'alerts' can be set which, if exceeding
limits for consumption or temperatures, send an e-
mail. If you have an account with a provider, you can
enter the address of the outgoing mail server (e.g.
uit.telenet.be) and your own mail address (sender
address). The alerts can be sent to up to 2 addresses.
(Mail Address1 and 2)
6. UPGRADING:
The following compartment is used to upgrade the
web server and any linked 2-WIRE modules. In order
for this feature to work, your web server must of
course also be connected to the Internet.
2-WIRE has set up a server with the necessary
upgrade files. To check if upgrading is needed, you can
press the 'FIRMWAREVERSIONS' key
When connected to the 2-WIRE Upgrade Server, the
different firmware versions can be seen. (sometimes a
second attempt is possible if the server is "busy".)
1. 'UPG VERSION' means the versions on the 2-
WIRE Upgrade Server.
2. 'INSTALLED VERSION' is the firmware that the
modules in your system have on board.
3. If the UPGversion has a higher number than
the INSTALLEDversion, an upgrade of the
affected components is required.
4. 'STYLE-SCRIPT' includes the CSS style (=look of
the web page), and the JavaScript, which
serves to give all 'buttons' a function and add
the necessary logic.
INSTALL KNOP
WEBSERVER: Upgrading the web server is done in 3
phases: the first stage is uploading the script, the
second stage is uploading the firmware for the web
server, and the third stage is installing this firmware.
During uploading, we see a 'progress' bar appear.
When the progress bar gedaan is, wordt automatisch
de webpagina ‘ververst’ en moet je opnieuw inloggen.
DOWNLOAD KNOP
MODULES: When you have 2-WIRE modules,such as
the RG.016 or EC.441, sometimes an upgrade may be
required: If the UPGversion is higher than the
INSTALLEDversion, you will need topress the
'DOWNLOAD'button. After some time there will be
green check marks next to the available module
versions.

Manual WS.502 v1.5 2-Wire Energy Monitor
7
(a red cross means unavailable (v255,255,255,255), or
failed transfer)
The modules themselves have not yet been upgraded!
This should be done in menu 'MODULES'
Important:
During upgrading WS.502 or other modules there are
no logs possible !
Never interrupt voltage during upgrading!!
7. ENERGY PRICES
As already mentioned, we can also (approximate)
calculate what the daily energy consumption is and
put a price tag on it. When we know the cost for gas,
water electricity, we can fill it in the table below.
There are 2 tariffs for electricity (day and night
consumption). Everything has to be filled in euro
cents, so DO NOT use DECIMALS!
"SEND" after the values are filled in.
Note. You can always adjust tariff changes,
you can calculate every day what your
consumption cost was at the prompted rate,
and is thus also stored in the database. If you
fill in other values afterwards, that will no
longer have any effect on the
previouscalculations.
8. LOGIN
The last part of the SETTINGS is at the top, and is
certainly not insignificant:
login –password
LOGIN: The WS.502 can work simultaneously with 4
users. Each user can choose a login name (max 16
characters), a password (always 4 digits) and a
language version.
Only logged in as an administrator, with password
'admin2-WIRE' you can make changes here
At the first start-up we see: 'USERS': 0
The administrator is not counted among the 4 users, it
usually only serves to adjust the configuration so that
the other users can't change it. (So don't sprinkle the
admin login name and password around) You can
never change the login name 'admin2-WIRE' or
'adminIP', but you can change the password (2015).
CHANGE THE ADMINISTRATOR'S PASSWORD:
At'LOGINOLD' and 'PASSOLD', type the current login
name (admin2-WIRE) and password.
At'LOGIN NEW' back 'admin2-WIRE', and at
'PASSNEW'type your new password (4 digits)
Press SEND PASS to send the new data.
NEW USERS
The same applies to new users to be created:
At LOGIN OLD type 'loginold' and at PASS OLD '1234'

Manual WS.502 v1.5 2-Wire Energy Monitor
8
At LOGIN NEW, the username (max 16 characters)
and pass new now has the password (4 digits )
The'TIMEOUT'is used to set the expiration time of
your login. When there are actions with the web
server, this time is restarted over and over again.
When there are no more actions, and the expiration
time has expired, it is necessary to log in again.
Adjustable between 1 and 255h. 0 means 30 days of
expiration time.
The language version is user-only and only serves for
the fixed texts on your web server.
Not all texts have been translated. Some are difficult
to translate and are usually displayed in English. Press
SENDPASS to confirm.
When sending the login we always return to the start-
up menu. We now need to log in again to confirm who
you are.
DELETE OLD USER
To remove a user, one does the other way around:
At LOGIN OLD his username, with PASS OLD his
password.
At LOGIN NEW comes now 'loginold' and at PASS NEW
'1234'
Press SEND PASS to confirm.
Note. You can also request the login and
password by entering a number between 1
(user1) and 5 (admin) next to the 'USERS:'
field. Each user's data is now displayed.
Note. Forget the password? Via the reset
buttons on the Memo module you can reset
this, see point 19
9. MODULE PARAMETERS
Choose the menu 'MODULES'
On the left we see a number of text boxes, and a few
keys:
1. 'NEW' : entering new
Serial Number
2. "CHANGE" : Change
the module name or serial
number
3. "DELETE" - Delete
selected module
4. "CANCEL" : Undo
changes made if they have not
yet been sent.
5. 'ZEND' : forward
module to web server
6. 'TEST':
communication test of the
selected module.
7. 'UPGRADE' : only active if modules works with
2-WIRE protocol
To start, we first need to fill in a 'serial number' at the
place where we see 'Serialno'.
The serial number always consists of 2 digits, 1 capital
letter, and back 5 digits. These have a meaning:
1. A = Air quality meter = AIR.04
2. B = Battery Counter module BC.002
3. E = Energymeter = EMM.120.. 630
series(fictional)
4. F = RF energy counter CT = ECF. 08
5. G = RF Gateway = RG.016
6. H = caloric modbus(fictitious )
7. K = calorie meter Kamstrup(fictitious fix)
8. L = Logic module (fictitious)
9. M = Modbus energy counter = EC.441
10. R = Relay module = REL.40
11. S = RF smartplug = EP.16A
12. T = RF smartplug thermo TP.16A
13. U = caloric modbus(fictitious)
Serial numbers:
Modules of 2-WIRE have a fixed serial number and
are listed on the module.

Manual WS.502 v1.5 2-Wire Energy Monitor
9
Other modules such as EMM.120... 630 do not have
SerialNr, but only Modbus addresses (range 1-247).
However, only serialnrs canbe used in the
projectammation.
That's why we're going to make a fictitious serial
number for these modules ourselves. Most
modbusmodules only need one channel, except for
the more complex modules such as the EMM.630 or
calorie meters. Those modules have 3 or more
channels (e.g. 3 phases) . The maximum is 8
channels per module. (08xxxxxx)
The first two digits of the serial number shall
determine the number of outputs/entries:
1. '01' are for single-rigid meters
2. '02' are for single-rigid meters, which
measures in both directions (import-export)
3. '03' are for three-legged meters
You can choose the following 5 digits yourself, but
make sure the serial number remains 'unique'!
Examples for the EMMxxx energy modbus meters
series:
1. Enkelfasige (enkel import): EMM120 –
EMM220 : 01E00001….01E99999
2. Enkelfasige (import + export) : EMM220 :
02E00001… 02E99999
3. Three-rate: EMM630 –EMM630CT:
03E00001....03E99999
4. Caloriemeters : 03U00001... 03U99999
5. Kamstrup : 03K00001... 03K99999
areconfigured by 2-Wire
The limit of the number of log channels is 64 and the
limit of the number of modules is 32.
The first serial number we are going to enter in the
field 'SerialNr'. In the 'Module Name' field, one can
enter a name related to the module. (e.g. distribution
cabinet garage... thermostat..) When we press
'NEW' now, the typed serial no. is put in the 'listbox'.
On the right side of the picture, a module will appear
with a number of channels according to our serial
number
(e.g. 01E00001 = 1 channel. )
1. CH: stands for 'CHANNEL' and is automatically
generated by the web server. This channel No
will later serve to make the link between log
channel and (modbus) address. (see below).
2. MODE: (Counter, Thermostat, AirQ....) is
automatically dialed
3. ADDR: Each channel must have a UNIQUE
ADDRESS in the range 1-247. Therefore, no
channel may have the same address. Start
from 1 and number so that each meeting
entrance has a unique address. The simplest
is for'ADDR' to fill in the same value as the
channel number'CH'. When we have
modules without a serial number (series
EMMxxxx) we have to program these
addresses on these modules via the existing
display. (How to change the address on the
module is described in the manual of the
module itself.)
4. SUBAD: for modules with multiple log
channels such as 3-fazen meters and calorie
meters there is always only 1 modbus
address, but with the subaddress you can log
different data:
For the EMMxxxx series:
1. serienr 01Exxxx : subadd = 0
2. series no 02Exxxx: both channels SAME
MODBUS ADDRESS, subadres 0 (import) and
subadres 1 (export)
3. series no 03Exxxx: all 3 channels SAME
MODBUS ADDRESS, subad = 0 –1 - 2
4. PARA3: PARA6: are specifically explained in
the manual of the modules. Nothing needs to
be filled in for the EMMxxx.
•UNIT: wordt soms automatisch ingevuld met
‘kWh, °C, ppm…’

Manual WS.502 v1.5 2-Wire Energy Monitor
10
1. LOGTYPE: This is for those who also want to
forward the log data to a remote FTP server.(
see part 9) or export to Excel. You can check
the log types you want to be added into the
csv file.
Note. The log types depend on the
type of module, and will always be
logged to SD every minute, even if
nothing is checked!
An overview of the 'MODE' LOGTYPE and
'UNIT':
We now assume that the EMM series have been
assigned a unique address through their display.
Write down these addresses as well as the group with
which this module is connected. Give this a name (vb
lighting above, living, hobbyroom.. etc)
If the module is connected to the bus, and there is
power supply on the module, then you can press
'ZEND'. At 'Module OK' you know that the
communication, the address and the power supply is
in order. If not: check power supply, address and bus
connection (A and B do not swapd ?)
Note.the entered modbus address can also be
checked on the module via the display on the
EMM120-220-630, see manual of the module
Note: You can only enter one module at a time or
make changes. If you want to continue with new
modules, the 'ZEND' key must first be pressed if it
lights up red.
If you want to change an existing module, do not type
the SerialNr, but select it in the 'list box'.
A change, if not shipped yet you can also cancel
('CANCEL').
Note. All RF wireless modules are discussed
separately in part 18 : RF communication
When all the modules are entered and the
communication was in order, another brief
explanation of what to do if changes need to be
made.
CHANGE MODULE
You can change a module that you want to change by
selecting the serial number in the listbox.
SO DON'T RETYPE!
Now you can only make changes to this module. (The
other modules are 'locked' so you can't change
anything in the wrong module.)
After changing a text or number, you must always
perform "ENTER": Click any other cell so that you are
outside the cell where you made changes. Now the
'ZEND' button will light up red again. If all changes
have been made, click 'ZEND'.
TYPE MODULE BETEKENIS MODE LOGTYPE UNIT
A AIR04 IAQ meting AirQ roomtp °C
RH %
Press hPa
VOC %
E EMM.120/220 electr.vermogen Teller spanning V
stroom mA
vermogen W/Var
power factor --
verbruik import kWh+
verbruik export kWh-
M EC.441 Counter module Teller spanning V
stroom mA
F ECF.08 vermogen W
verbruik kWh
K Calorie Kamstrup Calorie meter Teller vertrek tp °C
retour tp °C
U Calorie 2-Wire debiet m3/u
verbruik kWh

Manual WS.502 v1.5 2-Wire Energy Monitor
11
If you have forgotten to give a name to the module,
which serves as a 'back support', select this serial
number in the 'list box' and press 'CHANGE'.
The text on the key now changes to "CONFIRM." In
the box where 'Module Name' is located, you can now
apply your text. (E.g. 'EMM630')
Press'CONFIRM' now and this name will be next to
the module's serial number.
When the module is fully ready, remember to
press'ZEND',only then will all changes be stored in the
server's memory.
REPLACE MODULE
If you would replace an existing module with the same
type (e.g. EC441, SN 08M00001) and you want to
keep the existing logs,you can change the serial
number provided that the3 first digits are the same.
(e.g. new module has serial number 08M00015)
Select the serial number of the old module in the 'list
box' and press 'CHANGE'.
The text on the key now changes to "CONFIRM." In
the box where the old 'Serial No' is located, you can
now change the last 5 digits to the new serial no.
Press "CONFIRM." A second screen will appear for
confirmation again. Afterwards, press 'ZEND'.
If the module is connected correctly, the answer will
be 'Module OK'. In case the module is not yet
connected, the answer will be 'Module NOK'.
DELETE MODULE
If you still want to start with new logs, and remove
all previous logs from this module, you first have to
clear the old module ('DELETE'), and then completely
recreate the new module.
Note. If an existing module is added to a log
channel (modbus address > 0) or an existing
modbus address is set to 0 (= CLEAR LOG !!),
one must then go to 'CHANNELS' to adjust the
layout of the channels ! (see part 11)

Manual WS.502 v1.5 2-Wire Energy Monitor
12
10. LOGIC MODULE
A tab was attached to the
main menu: LOGIC
Click this tab, and a blank
grid screen appears.
At the top there are 4
buttons:
VIEW LOGIC: If this button lights up red, you should
wait until the logic is loaded. When the green button
lights up, you can press this button. If logic has
already been introduced, the logic will be shown. If no
logic has been created, the screen remains blank.
Let's say you've already created logic, but you want to
completely start over with new logic, don't press
'VIEW LOGIC'. You start with a blank logic.
REFRESH DATA: When you create logic, or you want
to see the current statuses of the modules, you can
press this button. Statuses are indicated by RED digits.
SAVE LOGIC: This key definitively brings the created
logic to memory.
Attention!! There is no 'UNDO' button, which means
that this action cannot be revoked. However, a
confirmation is first requested:
If you don't want to enter the changes, press "Cancel."
EXIT: When you decide to leave logic, the next screen
may be shown:
You then wanted to keep the logic, but printed
'Cancel'.
You can now only leave logic by reloading the page!
(reload page in browser address bar)
QUESTION: What logic is possible?
ANSWER: Just about every conceivable logic !
There are a number of 'prefabricated' logic modules:
Press the LEFT MOUSE BUTTON,and a list is shown
from the possible modules:
1. ENERGY : these are the measuring modules of
your installation (energy modules,
temperature, calorie, water...)
2. OR-GATE: an 'OR' port, with 4 inputs
3. AND-GATE: an 'AND' port with 4 entrances
4. DIFF-GATE: Switching between 2 values
5. ADD: Add up 4 analog values

Manual WS.502 v1.5 2-Wire Energy Monitor
13
6. SUB: Difference of 2 analogue values
7. TIMER: delay/extension of a digital value.
8. CLOCK: AND condition in function of a weekly
clock
9. INPUT: a 'contact' ON/OFF of a relay
10. CREDIT: Countdown of a set starting value
11. STORAGE: approximate calculation of storage
energy if own energy source and storage tank
are present.
12. VIEWLOG: Visually rendering analog results of
logic.
13. LIMITER: Set limits for power, hour or day
consumption via a relay module.
14. RESULT: an eid result of a logic can be sent to
a relay module or mailbox.
An example of 3 logic's:
Before we start, we need to formulate a logic and
convert it into a graphic representation.
First, let's look at each logic module in detail:
Press the left mouse button. When you start with a
blank screen, the following notification will first
appear:
Press "OK" if you want to start with new logic.
Remember: if you had already created logic, and you
start with this blank screen, the previous logic will be
erased if you press 'SAVE LOGIC'. So you can still
'Cancel'!
When you press "OK," the list of possible logic
modules appears.
Logically, one starts with the energy sources, then the
AND-OR-ADD-SUB gates, possibly timers or clocks, and
then the result (mail or graphs)
After selecting 'ENERGY' we see our first module,
standard the type EMMxxx
At the top is 'CH00', and on the right the possible
outputs of this module. Start by selecting the log
channel you want. Since there are 64 log channels,
and numbers are difficult to remember, there is a
'help list' in the upper right corner.
This list shows all the log channels used, with the
name and channel
No. (The names are
inserted with each
module at
configuration)
As an example, we
are going to check
the fuel oil level and
give a warning if the
threshold falls below
100 litres.
On the energy
module we now
select 'CH02'
(GWmaster FUEL)

Manual WS.502 v1.5 2-Wire Energy Monitor
14
If we press 'SAVE LOGIC',
the module is adjusted
according to the energy
type: in this case we see
the current consumption
in litres on the left,
and on the right are the
corresponding names of
the outputs (Volt-Amp
does not exist here)
In this way, we will continue with any other energy
modules, or we will first further elaborate this logic.
The assignment was to check the current stock of fuel
oil (approximate) and give a warning if the level is too
low.
To do this, we need a 'CREDIT' module: select it with
the left mouse button. You can drag the module to
the desired position on your screen. (click the left
mouse button when you're standing over this module
and drag the module). Zoom in or out of the screen
using the mouse's 'scroll' wheel. You can move the full
screen by standing in a 'blank' place on the screen and
pressing the left mouse button. You can now bring the
full screen to the desired position and zoom in or out
according to your preference.
With a 'CREDIT' module, we need a 'starting value', a
minimum level (Bottom Value), and the desired units
(in this case L Fuel).
As an example, we start with 1000 litres of fuel oil,
and we want an alarm if the residual value is less than
100 litres. In 'Bottom Value' we now fill in '< 100'. (< =
smaller than, > = larger than)
If we want to see the result in a graph, we need to
create a 'log module' in the configuration! (seelater:
log module 04Lxxxxx)
The start value entered must be 'activated' when the
tank is filled.
For this, there is a 'Reset' button: Select it and
click'NOW'.
A confirmation is requested, because from this
moment on the residual value (Credit) will be equal to
the completed starting value. Over time, the credit
value will decrease according to consumption.
In the log chart we can now see both the consumption
and the remaining quantity.
When the bottom value is exceeded, an 'alert' may
follow in the form of a relay which is switched on (e.g.
signalling light) or an e-mail (daily) sent.
Attention! The graph can also go negative (tank 'army
then empty'...)

Manual WS.502 v1.5 2-Wire Energy Monitor
15
If the 'bottom' value is reached, the relay output can
only be reset by reactivating the starting value (Reset
NOW). Of course there is also refuelling...
This is just a simple example of logic. There are many
more applications: monitoring temperatures, lower
upper limit of power, currents, voltages, consumption
etc.
Consume differential measurements between import
exports, disable consumers if too high consumption is
measured, activate outputs according to a weekly
clock and conditions in the form of AND-OR ports.
ATTENTION: All logic cannot react faster than 1
minute, or 5 minutes when it comes to consumption
(these are requested from the measurement
modules every 5 minutes)
ALL LOGIC MODULES IN DETAIL:
ENERGY:
1. Type of electra: volts, ampere, watts, hour-
consumption, day-consumption
1. Type of temperature: if BC.002: Vbatt,
Sensor1, Sensor2
1. RF gateway temperature type (NB. sensors
not connected can display extremely large
values)
1. Calorie type: return departure temperature,
power, hour and day consumption
1. Type of Water : current consumption, hourly
and daily consumption
OR-GATE:
Links are the 4 entrances, and on the right the digital
output. The RED numbers show the status of the
entrances and exits (ideal for 'debugging')
Each input can be compared to a threshold. This value
can be positive and negative, and one can compare it
to 'larger than' or 'smaller than'.

Manual WS.502 v1.5 2-Wire Energy Monitor
16
At an OR-gate, the result is '0' if no condition is valid.
Unconnected inputs do not affect the result.
In the right example,
the output will be
active (1)
if:
ingang1 is greater than 100 (e.g. analog input)
OR Entrance2 is smaller than 200 (e.g. analog input)
OR Entrance3 is larger than 0 (e.g. digital input)
OR Entrance4 is smaller than 1 (e.g. digital input)
AND-GATE:
Left stand the 4 entrances, and on the right
the digital output
Each input can be compared to a threshold. This value
can be positive and negative, and one can compare it
to 'larger than' or 'smaller than'.
At an AND-gate, the result is '1' if all conditions are
valid. Unconnected inputs do not affect the result.
In the right example, the output will be active (1)
when:
Entrance1 greater than 100 (e.g. analog input)
AND Entrance2 is smaller than 200 (e.g. analog input)
AND Entrance3 is larger than 0 (e.g. digital input)
AND Entrance4 is smaller than 1 (e.g. digital input)
DIFF-GATE:
This module contains 2 separate logics that allow one
to compare an input value with a starting value and a
stop value (= hysteresis).
On the left are 4 entrances, and on the right there are
2 digital exits. The RED numbers show the status of
the entrances and exits (ideal for 'debugging')
On Input1 or Input3 one can connect an analog
measurement (e.g. CO2 measurement)
On Enable1 or Enable2 one can possibly connect a
switch clock. If the Enable is off, output1 or output 2
will always be off, regardless of the conditions.
Unconnected Enable inputs will keep the logic active at
all time.
If the input exceeds the starting value, the output will
become active. If the input is smaller than the stop
value, the output will be switched off.
This allows one to set a condition for, for example, a
fan control, which will switch on or off in function of
the CO2 with the desired hysteresis.
ADD:
add up to 4 analogue values. Links can have up to 4
analog values attached
Be. PLEASE NOTE: DON'T ADD APPLES WITH PEARS.
In other words, this module can only work correctly if
the inputs have the same units (vb volts, amperen
watt...)
In the right example there are 2 exits available:

Manual WS.502 v1.5 2-Wire Energy Monitor
17
D_Output is the digital output: this output, itwill
become active if the set thresholdof 5000 (e.g. Watt)
is exceeded.
The A_Output is the analog addition of the connected
inputs.
SUB:
calculation between 2 analogue inputs. The analogue
end result can be both positive and
become negative.
In the right example, the digital output will be active
(1) if the difference between input1 and
Entrance 2 is smaller than -200 (vb Watt). Pay
attention to your knowledge mathematics: smaller
than a negative numberis
a greater value! (e.g. as a result = -210 the output will
be active)
TIMER:
the result of a digital output can be delayed and/or
extended by minutes as a unit via this timer.
As an example, the output will become active if the
input is active for MORE than 10 minutes.
Once the output is active, it will remain active for 5
minutes after the entrance turns 0.
CLOCK:
this module allows you to perform certain conditions
only on the desired days and times. Active days can be
indicated by filling in '0' (inactive) or '1' (active).
If the 'Start time' input is connected, and this input is
greater than zero, the output will become active if the
start time AND the day of the week is valid.
On the other hand, if the entrance 'End time' is
connected, and this input is larger than zero, the exit
will
if the end time is reached on a valid day.
If the Starttime or Endtime input is zero, the relevant
start or end time will not run.
If both inputand zero are,the clock is switched off,
and the output is always off.
example: If 'Start time' and 'End time' are active, the
output will become active if it is later than 8:00 am,
but NOT on Thursday, Saturday and Sunday. The exit
will be turned off when the time is later than 10:30
p.m., but NOT on thunderday, zaterday, Sunday.
•If you only want to use the start time, the 'End
time' entrance must be zero.
•If you only want to use the stop time, the
'Start time' input must be zero.
•The inputs can be connected to an adjustable
state (0 or > 0), via a fictitious dimmer module
(see further SWITCH INPUT)
Example:

Manual WS.502 v1.5 2-Wire Energy Monitor
18
SWITCH_INPUT:
the output of a relay module or (fictitious)
dimmermodule can also be used
into logic. The status of this output can be linked to
logicinputs.
One can create a 'dummy dimmer module' in the
configuration (SN 04Dxxxxx or 08Dxxxxx),without this
module reallyexists. This allows one to manually put
logic active or inactive via the control panel.
Para6 allows you to set the maximum value, and
PARA5 set the 'STEP'.
The scooter is a value that increases or decreases the
status when operating +/-
PARA6 must be at least 10, and a maximum of 32000 ,
PARA5 should be smaller than PARA6
CREDIT:
this module will add up the hourly consumption of a
measuring module and reduce an indicated 'starting
value' with this value. The result is an analog value,
which starts at the input value, and each hour will
reduce this value according to consumption,
connected to the Input.
Please note that only HOUR Consumption (HOUR
CONSUMPTION) can be connected to this.
An application is a fuel oil consumption meter, or a
budgetmeter,which indicates when
a consumption limit is approached.
For the 'budget meter' you can choose from 3 options:
automatically restart daily (DAILY) with the set
starting value, restart monthly or restart annually.
The end result can be viewed in the graphs.
As an example 2, the electricity consumption is
taken: the entrance is connected to a measuring
module, which measures the total consumption of
the house. A monthly advance of 80 euros is paid. This
amount is entered in 'Start value'. The units are EURO.
'RESET' opts for monthly (auto-reset)
After confirmation and 'SAVE', the final value starts at
80 euros. After 1 month can evaluate with the result
in the charts (positive or negative). Note the cost
should be done at configuration.

Manual WS.502 v1.5 2-Wire Energy Monitor
19
STORAGE:
this is an 'experimental' module, for installations that
have their own energy source (e.g. PV solar), and a
storage medium (e.g. batteries).
At the 'Import' entrance, the consumption meter of
the connected consumers is linked. At the 'Export'
entrance, the meter that measures energy production
to the batteries is connected.
At 'Start value' a value can be entered which indicates
the minimum charge of the batteries (in kWh). Once
this starting value is exceeded, the digital output will
become active. This allows one (via relays) to now
enable devices that draw energy from the batteries.
The 'Bottom value' must be a value that determines
the 'discharge depth'. Once this value is reached, the
output will be switched off (and therefore the load)
VIEWLOG:
Up to 4 analog values can be logged in 1 chart. To do
this,create a f ictieve module in configuration: SN
04Lxxxxx.
•If log type electra, the order of the inputs is:
V –A –W –Hour of Consumption (mode =
TELLER)
•If log type water –gas –fuel:
only input3 (current power) and input4
(hourly consumption) (mode = TELLER)
•If temperatures:
input1 to input4 possible (mode = sensor,
subad = 2)
If there are 4 SAME TYPE OF UNITS (e.g. all 4 inputs =
volts or amp or watts or temp..): they can be shown
in the same graph (subad 2-3-4-5). For this we will
indicate this in the configuration modules:
Create a (fictitious) serial number, starting with 04L,
followed by 5 digits (e.g. 04L00001)
Enter UNIQUE modbus addresses is (same way as a
normal modbus module)
Choose the type of UNITS (kW, gas, water, fuel, temp)
According to the type of chart, we will fill in the
following under SUBAD:
Table of contents
Other 2-Wire Server manuals
Popular Server manuals by other brands

ASROCK Rack
ASROCK Rack TR-KNL user manual

HP
HP 127695-B21 - Smart Array 431 RAID Controller Technology brief

Supermicro
Supermicro SuperServer 5019C-FL user manual

ETC
ETC Cobalt Congo Light Server Setup guide

IBM
IBM System x3620 M3 7376 Installation and user guide

IBM
IBM 8835 - Eserver 325 - 1 GB RAM Option installation guide