Read this manual before attempting to install the device!
Failure to observe recommendations included in this manual may be dangerous or cause a violation of the law. The manufacturer will not be held responsible for any loss or damage resulting from not following the instructions of this operating manual.
Pursuant to and in accordance with Article 14 of the Directive 2012/19/EU of the European Parliament on waste electrical and electronic equipment (WEEE), and pursuant to and in accordance with Article 20 of the Directive 2013/56/EU of the European Parliament on batteries and accumulators and waste batteries.
The barred symbol of the rubbish bin shown on the equipment indicates that, at the end of its useful life, the product must be collected separately from other waste.
Please note that the lithium batteries must be removed from the equipment before it is given as waste and disposed separately. To remove the batteries refer to the specifications in the user manual. For additional information and how to carry out disposal, please contact the certified disposal service providers.
This device can be interfaced to any Modbus RTU RS485 device to read and write any register of the connected device (up to 31 slaves or 512 bytes of data for every message) through the LoRaWAN® platform. Configuration is simply made using a configuration file uploaded to the interface via USB or with downlinks.
MCF-LW06485 is available with DIN rail option (MCF-DIN105):
Please refer to following connections:
pin | Name | Description |
---|---|---|
J3.7 | IO5 | Modbus A (+) yellow wire |
J3.8 | IO6 | Modbus B (-) white wire |
J3.9 | GND | Negative power supply |
J3.10 | VDD | Positive power supply range [10-36Vdc] |
Power can also be supplied by USB.
Please refer to following connections:
Modbus data lines:
Pin | Name | Description |
---|---|---|
J1.7 | IO5 | Modbus A (+) |
J1.8 | IO6 | Modbus B (-) |
Power supply:
Pin | Name | Description |
---|---|---|
J2.1 | Vdc | Positive power supply range [10-36Vdc] |
J2.2 | GND | Negative power supply |
Floor consumption (included termination and polarization resistors): 425mW
Note: add 600mW for a duration of 2 seconds for every LoRaWAN transmission (in the worst case), and/or 150mW for the duration of the ModBus communication.
Power can also be supplied by USB.
*Polarizations are available only if MCF-LW06485 is 10-36Vdc supplied. Please note dip2 and dip3 must have same status.
The magnetic antenna must be positioned on a metal body. It should preferably be vertical and at least 30 cm away from other metal bodies. The installation must take place in a place where the LoRaWAN® signal coverage is good (SF=7 optimal, SF=12 weak). Use the provided clip to hold the antenna connector in place, as in the picture:
To deploy the sensor, use LoRaWEB online tool, to setup LoRaWAN® credentials and other preferences (only available for Windows®) :
LoRaWEB Tool (iot.mcf88.cloud/LoRaWeb)
Before connect the device the first time, please install LoRaBridge applicarions and drivers:
https://iot.mcf88.cloud/LoRaWeb/#/download
Validate your settings reading data after the write.
enginko provides, upon free registration, user manuals, javascript examples, downlink generator, uplink decoder, firmware updates and different tools :
Save the new firmware file (.exe) on the PC, run the file, select the USB FW port and start the update:
and waiting for the end message.
Period is the interval (in minutes) between one measure and the next one. The sensor sends one measures for every transmission. Value can be between 5 and 65535 minutes (default: 10 minutes).
Period interval can be set with LoRaWEB or with downlink command.
Baudrate [bps]:
set the baudrate for the serial line (defalt = off).
Parity:
set the Modbus frame parity.
Note:
when saving these parameters, the system asks if you want to save only or to save and load the Modbus configuration file.
Basic configuration is made through an .XLS file containing, for every row, the parameters of the register(s) to be read or write.
Template file can be downloaded here:
Modbus configuration file template
File can be uploaded via USB or sent with LoRaWAN® dowlinks.
Due to the radio regulation, the amount of data that the interface can send during a period of time can vary, and depends also from duty cycle, spreading factor and data rate.
For example, with EU868 band, the MCF-LW06485 can send from 1KB (SF = 12) to 30KB (SF = 7) every hour. In case of periodic transmission, you have to set the reading period related to the amount of data you have to send for every reading from the slaves.
Label:
mnemonic label of the register.
Modbus address:
slave address (expressed as decimal value)
Modbus function:
Function Code | Register Type |
---|---|
1 | Read Coil |
2 | Read Discrete Input |
3 | Read Holding Registers |
4 | Read Input Registers |
5 | Write Single Coil |
6 | Write Single Holding Register |
15 | Write Multiple Coils |
16 | Write Multiple Holding Registers |
Dec address:
register starting address (expressed as decimal value), without offset.
Note:
please check Modbus addressing
Modbus length:
lenght (in word) of the register to be read or write.
Attention: in case of “Write Single Coil”, length must be 1, and data 00 (disable) or 01 (enable).
In case of “Write Multiple Coils”, Length is the number of coils, and data must be n byte long, with n = (length + 7) / 8.
Data:
in case of write command, data to be write, hexadecimal values formatted as string.
Always use ‘ (single quote) before the digits).
Baudrate (bps):
serial line baudrate, only needed if different from the settings in LoRaWEB.
Allowed values: 1200, 2400, 4800, 9600, 19200. 38400, 57600, 115200.
Parity/stop:
serial line parity/stop, only needed if different from the settings in LoRaWEB.
Allowed values: 8-n-1, 8-n-2, 8-e-1, 8- o -1 for none, even or odd
Examples:
reading a 2 byte holding register, starting from address 10001 of slave 1
Label | Modbus address | Modbus function | Dec address | Modbus length | Data | Baudrate (bps) | Parity/stop |
---|---|---|---|---|---|---|---|
Input status | 1 | 3 | 10001 | 1 |
writing a 2 byte holding register (with value 1000h), starting from address 53 of slave 2:
Label | Modbus address | Modbus function | Dec address | Modbus length | Data | Baudrate (bps) | Parity/stop |
---|---|---|---|---|---|---|---|
Analog output 1 | 2 | 6 | 53 | 1 | 1000 |
MODBUS to Downlink converter:
convert the .XLS configuration file in one or more downlink payload to be sent to the device instead using USB port-.
Temporary Downlink:
the configuration file is executed and then discarded.
Configuration Downlink:
the configuration file is saved in memory and executed periodically.
Delay for reading [ms]:
delay added between the reading of one Modbus register and the one (default = 0).
DST:
set to change DST (default: none).
Time sync uplink:
set to disable time synchronization request (default: enabled).
Normally sensor asks for a time sync at every power on (uplink starting with 01) or once a week. If no or wrong reply received, it will retry after 1 week.
If not handled in the right way can generate unnecessary traffic on the network.
Please check chapter 2.1 DATA FRAME FORMAT.
Confirmed Uplinks:
set for unconfirmed uplinks (default: confirmed uplink).
Single join/day:
set for to allow only one join per day (default: multiple join allowed).
LED working:
Set OFF to turn off the diagnostic led.
USB:
Internal use.
The device supports the following activations on a LoRaWAN® network:
The device exits factory activated with NONE mode. On request devices can be shipped aleady activated.
Note: in OTAA AppKey is write only, in reading the field will always be empty, even if set.
Network settings:
please keep “Any” settings. Change it only if Objenious network is used (default_ any).
Network type:
LoRa syncword can be setted as “private”(0x12) instead “public” (0x34), but the NS must be setted accordingly (default: public).
Band:
select the right LoRaWAN ® band settings accodingly to country requirements.
The device can be protected by passwords, to avoid unauthorized persons to read data or modify parameters.
As default passwords are equal to 0.
Allowed values range from 0 to 999999999 (only numbers).
To change the passwords, set the new values with LoRaWEB:
Once the passwords are setted, to gain access from LoRaWEB to the sensor, set the right values before reading from the device:
To bring back the sensor to factory default and reset the passwords, a reset code must be requested to enginko (please provide the DevEUI of the sensor when you ask for that code).
With LoRaWEB is possible to configure the device using an XML file, instead to manually adjust the parameters (for details about the file format please ask to enginko). This is very useful especially in case of multiple devices configuration.
With “Save” button an XML file with the actual configuration of the sensor will be generated. This is useful to store or clone the configuration, or to send it to enginko's support if needed.
With LoRaWEB is possible to configure many devices in an easy way.
For multi-configuration is needed at least one XML file with the parameters to set.
Settings on this file will be applied to all the sensors.
With an additional XLS file is possible to load different LoRa configuration parameters (Activation Type, AppKey, AppEUI, NetKey, DevAddress, Band, Private option) for each sensor, based on DevEUI.
XLS is prevailing on the XML, so if both files are enabled, if the DevEUI of the device matches one of the DevEUIs in the XLS file, LoRa parameters will be setted from this one.
These configuration can be done in the in the Settings:
For details on files format please ask to enginko.
For payload descriptions, uplinks and downlinks format and available commands please refer to this document:
Code | Description |
---|---|
MCF-LW06485 | ModBus RTU RS485 to LoRaWAN® interface EU863-870 |
MCF-LW06485-AS | ModBus RTU RS485 to LoRaWAN® interface AS920-925 |
MCF-LW06485-US | ModBus RTU RS485 to LoRaWAN® interface US902-928 |
MCF-LW06485-AU | ModBus RTU RS485 to LoRaWAN® interface AU915-928 |
For payload descriptions, uplinks and downlinks format and available commands please refer to this document:
Modbus RTU is based on an RS485 bus: TIA/EIA-485 (RS-485) is a single differential balanced line (half duplex).
In order to avoid signal reflections, a 120 Ohm termination resistance must be fitted on each end of the main cable:
If the data rate is low or cables are short, termination may be unnecessary. As data rates and/or cable lengths increase, which is most cases, termination becomes mandatory. If the total length of the main cable is less than 50m termination resistances can be avoided at the ends of the main cable.
Note: Since is a differential line, the cable to be used is a shielded twisted pair.
The cable shield must be earthed only in one point. Normally, this connection is made at one end of the main cable.
With RS485 networks, there are periods of time when no driver is actively driving the bus (tri-state) And the termination resistors collapse the differential bus voltage to 0V, which is an undefined input level for many RS485 receivers.
The objective of biasing is to make sure that the RS485 line remains in a known, non-fluctuating state when no devices are transmitting. Polarization of the pair must be implemented at one location for the whole serial bus. Biasing the entire network requires a single pair of polarization resistors: a pull-up resistor to +5V attached to the “+” signal line, and a pull-down resistor to ground attached to the “-” signal line.
The format for each byte ( 11 bits ) in RTU mode is :
Even parity is required, other modes ( odd parity, no parity ) may also be used. In order to ensure a maximum compatibility with other products, it is recommended to support also No parity mode. The default parity mode must be even parity. Remark: the use of no parity requires 2 stop bits.
Modbus registers by definition are associated with a function, and an offset within that function. The two common (16-bit) data register types are commonly known as “Holding Registers” and “Input Registers” (function 03 and function 04 respectively). The specific register within the function is referenced by an offset (starting at 0). This is the actual data which is transmitted during the data query.
At some point, certain PLC manufacturers starting using a “3xxxx” or “4xxxx” reference designation in an attempt to provide an absolute address to the register (ie: which would reference both the function and the register). Some device manufacturers start their “4xxxx” references at 40001, and some start at 40000. The starting register corresponds to offset “0” within the given function.
Modbus “Standard” | 4xxxx (base 1) | 4xxxx (base 0) |
---|---|---|
Function 3, Offset 0 | 40001 | 40000 |
Function 3, Offset 1 | 40002 | 40001 |
The types of registers referenced in Modbus devices include the following:
Whether a particular device includes all of these register types is up to the manufacturer. It is very common to find all I/O mapped to holding registers only.
Hereby, enginko Srl declares that MCF-LW06485 complies with the essential requirements and other relevant provisions of Directive 2014/53/EU.
This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
Any changes or modifications not expressly approved by the party responsible for compliance could void the user’s authority to operate this equipment.
Contains FCC ID: 2AWAL409810
enginko Srl
Via Roma 3 I-28060 Sozzago (NO)
T : +39 0321 15 93 088
E : info@enginko.com
PEC: enginkosrl@legalmail.it
W: enginko.com
rev.1