MICRONOR AG
MR340-1 DIN Rail Module Controller
Page 32 of 74
4.2
MODBUS Communications Protocol
The communications protocol follows the Modbus RTU (binary) protocol. A number of
commands allow for configuring the operational parameters of the MR340 while other
commands are specifically meant for diagnostics used during setup, maintenance and
troubleshooting. The status and position readout registers are intentionally arranged in
sequence for a quick readout while system is in operation mode. The format for the
commands and responses in general follow the MODBUS RTU specification, with the
exception that not all registers maybe combined within one readout sequence. See table
below for allowable register combination.
Modbus information can be obtained at
What Is ZAPPY® Setup Software?
Zappy® 302 is a setup program provided free-of-charge with the purchase
of the MR30X/MR34X encoder system. ZAPPY® runs on Windows
XP/Vista/7/8/10 and requires .net Framework 4.0 to be on the machine.
Please refer to section 6 for detailed information.
Unless you plan to connect the MR340-1 to your own PLC or computer
equipment for real-time data retrieval, you do not need to become familiar
with the detailed communications protocol described herein.
Framing
Message frames are separated by a silent interval of at least 3.5 character times. If a silent
interval of more than 1.5 character times occurs between two characters of the message
frame, the message frame is considered incomplete and is discarded.
A 16bit LRC/CRC Frame Check follows the message.
Device Address Selection
The MR340-1 comes pre-configured with Device address 235 (Broadcast address).
The MR340-1 always listens to address 235 (Broadcast Address). To re-program the device
address, send desired new address via command FC10 to register 0x104 via the broadcast
address (235) and then send the appropriate “STORE EEPROM” command via FC52 register
Upon that procedure the unit will listen to both the newly assigned Device Address
and
the
Broadcast address 235.
Register Numbers versus Meter Addresses
In this instruction manual, all registers are referred to by their address, i.e. starting at 0.