WR Modbus Protocol Manual en
WR Modbus Protocol Manual en
User’s manual
MODBUS-RTU
PROTOCOL
for instruments
Here are the symbols used in the manual to draw the reader's attention:
Further information.
WARRANTY
24 months from the date of the delivery note. Warranty covers only failures of defective components (due to construction
defects or defects in materials) and includes replacement or repair of the components and related labor costs.
Warranty is automatically forfeited in the event of:
- tampering, deletion, removal of the identification label and/or serial number of the product
- misuse, transformation, alteration, repair of products not carried out by Laumas personnel
Laumas provides a 1-year warranty from the date of the delivery note on defects in material or manufacture of the battery.
INTRODUCTION ................................................................................................................................. 1
SUPPORTED FUNCTIONS................................................................................................................. 2
The MODBUS-RTU protocol enables reading and writing of registers present in LAUMAS
instruments, based on the standard addressing system provided in the reference guide of Modicon
PI-MBUS-300.
SPECIAL WARNINGS
Not all commands present in the aforementioned document are implemented for communication
with the instruments. All limitations will be specified later.
Pay close attention to the values sent to the instrument: they must fall within the ranges specified
in the tables on the following pages (and they must guarantee proper functioning of the
instrument).
Some data will be written directly into a special memory named EEprom, which can be written a
limited number of times only (100000). Therefore avoid writing continuously in these locations
Numerical values are expressed as decimal values in the following pages; in case of 0x prefix
values are expressed as hexadecimal.
-1-
DATA FORMAT
I dati ricevuti e trasmessi tramite protocollo MODBUS-RTU sugli strumenti LAUMAS, hanno la
seguente caratteristica:
- 1 start bit;
- 8 data bits, least significant bit;
- no parity, odd or even parity.
- 2 stop bits in case of no parity (n-8-2)
- 1 stop bit in case of checking parity (O-8-1, E-8-1)
SUPPORTED FUNCTIONS
Among the commands available in the MODBUS-RTU protocol, only the following are used to
manage communication with the instruments. Other commands may not be interpreted correctly
and could generate errors or system shut-downs:
FUNCTION description
03 (0x03) READ HOLDING REGISTER
16 (0x10) PRESET MULTIPLE REGISTERS
The length of time that elapses between the end of the QUESTION string to the instrument and
the start of the ANSWER string from the instrument varies between 5 msecs and 20 msecs (max).
The length of time that must elapse between the end of the ANSWER string from the instrument
and the start of the next QUESTION string to the instrument is 0.5 msec (min).
In order to take into consideration the total time of a communication (QUESTION + ANSWER), the
transmission times for the strings, which must be calculated according to the baud rate used, must
be added to these.
-2-
In general, a longer length of time must be considered to correctly handle the query loop.
Some systems are very slow at correctly handling communication timing, resulting in a
decrease in the number of queries possible in the unit of time.
- The serial settings cannot be modified via the serial port itself. Operate manually using
the instrument menus.
- Modifications made will be active after switching off and on again.
-3-
40025 Set step 4 L(*) R/W
40026 Operation step 4 R/W
40027 Set step 5 H(*) R/W
40028 Set step 5 L(*) R/W
40029 Operation step 5 R/W
40030 Set step 6 H(*) R/W
40031 Set step 6 L(*) R/W
40032 Operation step 6 R/W
40033 Set step 7 H(*) R/W
40034 Set step 7 L(*) R/W
40035 Operation step 7 R/W
40036 Set step 8 H(*) R/W
40037 Set step 8 L(*) R/W
40038 Operation step 8 R/W
40039 Set step 9 H(*) R/W
40040 Set step 9 L(*) R/W
40041 Operation step 9 R/W
40042 Set step 10 H(*) R/W
40043 Set step 10 L(*) R/W
40044 Operation step 10 R/W
40045 Set step 11 H(*) R/W
40046 Set step 11 L(*) R/W
40047 Operation step 11 R/W
40048 Set step 12 H(*) R/W
40049 Set step 12 L(*) R/W
40050 Operation step 12 R/W
40051 Set step 13 H(*) R/W
40052 Set step 13 L(*) R/W
40053 Operation step 13 R/W
40054 Set step 14 H(*) R/W
40055 Set step 14 L(*) R/W
40056 Operation step 14 R/W
40057 Set step 15 H(*) R/W
40058 Set step 15 L(*) R/W
40059 Operation step 15 R/W
40060 Set step 16 H(*) R/W
40061 Set step 16 L(*) R/W
40062 Operation step 16 R/W
40063 Set step 17 H(*) R/W
40064 Set step 17 L(*) R/W
40065 Operation step 17 R/W
40066 Set step 18 H(*) R/W
-4-
40067 Set step 18 L(*) R/W
40068 Operation step 18 R/W
40069 Set step 19 H(*) R/W
40070 Set step 19 L(*) R/W
40071 Operation step 19 R/W
40072 Set step 20 H(*) R/W
40073 Set step 20 L(*) R/W
40074 Operation step 20 R/W
40075 Set decimal point R/W
-5-
40107 Batched net step 8 H R
40108 Batched net step 8 L R
40109 Product number step 8 R
40110 Batched net step 9 H R
40111 Batched net step 9 L R
40112 Product number step 9 R
40113 Batched net step 10 H R
40114 Batched net step 10 L R
40115 Product number step 10 R
40116 Batched net step 11 H R
40117 Batched net step 11 L R
40118 Product number step 11 R
40119 Batched net step 12 H R
40120 Batched net step 12 L R
40121 Product number step 12 R
40122 Batched net step 13 H R
40123 Batched net step 13 L R
40124 Product number step 13 R
40125 Batched net step 14 H R
40126 Batched net step 14 L R
40127 Product number step 14 R
40128 Batched net step 15 H R
40119 Batched net step 15 L R
40130 Product number step 15 R
40131 Batched net step 16 H R
40132 Batched net step 16 L R
40133 Product number step 16 R
40134 Batched net step 17 H R
40135 Batched net step 17 L R
40136 Product number step 17 R
40137 Batched net step 18 H R
40138 Batched net step 18 L R
40139 Product number step 18 R
40140 Batched net step 19 H R
40141 Batched net step 19 L R
40142 Product number step 19 R
40143 Batched net step 20 H R
40144 Batched net step 20 L R
40145 Product number step 20 R
40146 Decimal point of batched nets R
40147 Number of last batched formula R
40148 Number of last batched cycle R
-6-
40158 Programmed cycles R/W
40159 Number of actived formula R/W
40160 Command register R/W
(*) : If the operation is SET OUTPUT the Set H register contains the number of output to be set
and the Set L register contains the logical status.
REGISTERS DESCRIPTION “Operation step xx” and “Batched net step xx”
-7-
LIST OF BIT REGISTER “hours / minutes last cancellation”
Bit 15 – 8 Bit 7 - 0
minutes hours
Bit 15 – 8 Bit 7 - 0
day month
Function Command
0008 Semiautomatic zero
0011 Totals zero-setting
0012 Reading batched net weights
0013 Batched net weight acquisition – communication received
0014 Start the batching
0015 Stop the batching
0016 ENTER key
0017 ESC key
0021 Keyboard lock
0022 Keyboard unlock
-8-
“ “ (32 ASCII) if the instrument is in standby condition
“P” (80 ASCII) in case of programming the current data
“O” (79 ASCII) in case of over-load error (weight not detected)
“F” (70 ASCII) in case of over-flow error (weight not displayed)
“D” (68 ASCII) during the batching phase
“M” (77 ASCII) zero error at the start of batching
“C” (67 ASCII) in case of approval waiting
“E” (69 ASCII) failing product during the batching
“S” (83 ASCII) cycle end
“T” (84 ASCII) in case of error of out of tolerance
“B” (66 ASCII) in case of black-out the starting
“V” (86 ASCII) in case of start with empty formula
“H” (72 ASCII) in pause condition
“X” (88 ASCII) getting over of the maximum weight during the batching
“A” (65 ASCII) setting of the formula beyond the maximum weight
“G” (71 ASCII) stop batching when input of start is closed
“K” (75 ASCII) Alarm of minimum stocks
“Z” (90 ASCII) Error of scale out of zero
Note:
Reading / writing formula, set refer to the formula number into the 40014 register.
Formula selection: write the formula’s number that you want to program into the register
40013 or 40159.
The batching start command takes into consideration the formula number and the number
of current cycles (if necessary, modify them before sending the command by writing in
sequence the registers 40158, 40159, 40160).
The batched net weights are updated following receipt of the reading command (function
0012) which must take place while the unloading phase is active.
Reading totals and stocks: select the number of product into the 40076 register; the
following registers will contain total and stock values of selected product.
-9-
MODBUS-RTU PROTOCOLS FOR WR60000 BATCHING 8 PRODUCTS + 4 IMPULSES
- 10 -
40032 Operation step 6 R/W
40033 Set step 7 H(*) R/W
40034 Set step 7 L(*) R/W
40035 Operation step 7 R/W
40036 Set step 8 H(*) R/W
40037 Set step 8 L(*) R/W
40038 Operation step 8 R/W
40039 Set step 9 H(*) R/W
40040 Set step 9 L(*) R/W
40041 Operation step 9 R/W
40042 Set step 10 H(*) R/W
40043 Set step 10 L(*) R/W
40044 Operation step 10 R/W
40045 Set step 11 H(*) R/W
40046 Set step 11 L(*) R/W
40047 Operation step 11 R/W
40048 Set step 12 H(*) R/W
40049 Set step 12 L(*) R/W
40050 Operation step 12 R/W
40051 Set step 13 H(*) R/W
40052 Set step 13 L(*) R/W
40053 Operation step 13 R/W
40054 Set step 14 H(*) R/W
40055 Set step 14 L(*) R/W
40056 Operation step 14 R/W
40057 Set step 15 H(*) R/W
40058 Set step 15 L(*) R/W
40059 Operation step 15 R/W
40060 Set step 16 H(*) R/W
40061 Set step 16 L(*) R/W
40062 Operation step 16 R/W
40063 Set step 17 H(*) R/W
40064 Set step 17 L(*) R/W
40065 Operation step 17 R/W
40066 Set step 18 H(*) R/W
40067 Set step 18 L(*) R/W
40068 Operation step 18 R/W
40069 Set step 19 H(*) R/W
40070 Set step 19 L(*) R/W
40071 Operation step 19 R/W
40072 Set step 20 H(*) R/W
40073 Set step 20 L(*) R/W
- 11 -
40074 Operation step 20 R/W
40075 Set decimal point R/W
- 12 -
40114 Batched net step 10 L R
40115 Product number step 10 R
40116 Batched net step 11 H R
40117 Batched net step 11 L R
40118 Product number step 11 R
40119 Batched net step 12 H R
40120 Batched net step 12 L R
40121 Product number step 12 R
40122 Batched net step 13 H R
40123 Batched net step 13 L R
40124 Product number step 13 R
40125 Batched net step 14 H R
40126 Batched net step 14 L R
40127 Product number step 14 R
40128 Batched net step 15 H R
40119 Batched net step 15 L R
40130 Product number step 15 R
40131 Batched net step 16 H R
40132 Batched net step 16 L R
40133 Product number step 16 R
40134 Batched net step 17 H R
40135 Batched net step 17 L R
40136 Product number step 17 R
40137 Batched net step 18 H R
40138 Batched net step 18 L R
40139 Product number step 18 R
40140 Batched net step 19 H R
40141 Batched net step 19 L R
40142 Product number step 19 R
40143 Batched net step 20 H R
40144 Batched net step 20 L R
40145 Product number step 20 R
40146 Decimal point of batched nets R
40147 Number of last batched formula R
40148 Number of last batched cycle R
- 13 -
(*) : If the operation is SET OUTPUT the Set H register contains the number of output to be set
and the Set L register contains the logical status.
REGISTERS DESCRIPTION “Operation step xx” and “Batched net step xx”
Bit 15 – 8 Bit 7 - 0
minutes hours
- 14 -
LIST OF BIT REGISTER “day / month last cancellation”
Bit 15 – 8 Bit 7 - 0
day month
Function Command
0008 Semiautomatic zero
0011 Totals zero-setting
0012 Reading batched net weights
0013 Batched net weight acquisition – communication received
0014 Start the batching
0015 Stop the batching
0016 ENTER key
0017 ESC key
0021 Keyboard lock
0022 Keyboard unlock
- 15 -
“S” (83 ASCII) cycle end
“T” (84 ASCII) in case of error of out of tolerance
“B” (66 ASCII) in case of black-out the starting
“V” (86 ASCII) in case of start with empty formula
“H” (72 ASCII) in pause condition
“X” (88 ASCII) getting over of the maximum weight during the batching
“A” (65 ASCII) setting of the formula beyond the maximum weight
“G” (71 ASCII) stop batching when input of start is closed
“K” (75 ASCII) Alarm of minimum stocks
“Z” (90 ASCII) Error of scale out of zero
Note:
Reading / writing formula, set refer to the formula number into the 40014 register.
Formula selection: write the formula’s number that you want to program into the register
40013 or 40159.
The batching start command takes into consideration the formula number and the number
of current cycles (if necessary, modify them before sending the command by writing in
sequence the registers 40158, 40159, 40160).
The batched net weights are updated following receipt of the reading command (function
0012) which must take place while the unloading phase is active.
Reading totals and stocks: select the number of product into the 40076 register; the
following registers will contain total and stock values of selected product.
- 16 -
On our website www.laumas.com there are videos on the guidelines for correct installation of
weighing systems and video tutorials on configuring our transmitters and weight indicators.
All Laumas product manuals are available online. You can download the manuals in PDF format
from www.laumas.com by consulting the Products section or the Download Area.
Registration is required.