m2m Germany GmbH | Am Kappengraben 18-20 | 61273 Wehrheim | 06081 5873860
Read Coil
Read Discrete Input
Read Holding Registers
Read Input Registers
Write Single Coil
Write Single Holding Register
Write Multiple Coils
Write Multiple Holding Registers
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.
4.2.2 Registers map configuration
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:
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.
4.2.3 Configuration file format
Label:
mnemonic label of the register.
Modbus address:
slave address (expressed as decimal value)
Modbus function:
Function Code Register Type
1
2
3
4
5
6
15
16
Dec address:
register starting address (expressed as decimal value), without offset.
Note:
please check
Modbus length:
lenght (in word) of the register to be read or write.
Attention:in case of
“W
rite Single
Coil”,
length must be 1, and data 00 (disable) or 01 (enable).
In case of
“W
rite Multiple
Coils”,
Length is the number of coils, and data must be n byte long, with n = ( 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
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
4.2.4 Configuration with downlinks
Modbus address Modbus function Dec address Modbus length Data Baudrate (bps) Parity/stop
6
53
1
1000