Technical guideFree to readYear not stated

MODBUS Application Note (Mikrodev)

Original title MODBUS Uygulama Notu

Mikrodev

A Mikrodev application note showing how Modbus TCP/IP and Modbus RTU (RS232, RS485) are set up as master and slave on its PLC and RTU products, with function blocks and an analyser-reading example.

On this page

Overview

The note states that Modbus rests on data exchange between a master and one or more slaves on the same network and can serve about 247 devices on a network; a master with up to 246 slaves is described. The guide shows how Modbus TCP/IP and Modbus RTU are implemented on Mikrodev products. The Mikrodiagram programme is used for PLC products and Telediagram for RTU products.

In the Modbus TCP/IP section the TCP Socket block is central: IP and port can be set in the block's settings or through a register, and connection status is monitored by the output value 0 (no connection) or 1 (connected). A device that is to be master uses TCP Client and a slave uses TCP Server with a listening port. The medium can be Ethernet, GSM or WiFi. The slave ID is set in the Modbus TCP Slave block settings.

On the master side there are Word (16-bit positive integer), Float (32-bit decimal) and Long (32-bit integer) reader/writer blocks, a table block for consecutive registers and a status block for slave connection state. The function code depends on register type: four types for reading and three for writing. Byte order varies by manufacturer, so the device manual must be consulted. In the RTU section the serial port number (0 for RS485, 1 for RS232), baud rate, data bits, parity and stop bits are set.

The gateway block lets a Modbus TCP master reach RTU slaves or an RTU master reach TCP slaves. The document is a product-specific software guide; it does not contain the full Modbus specification or data centre design requirements. It is a practical example for understanding the Modbus logic used to connect power and cooling equipment to a BMS.

Key points

  1. Modbus serves about 247 devices on a network: one master and up to 246 slaves.
  2. On the TCP Socket block, connection output 0 means no connection and 1 means connected.
  3. TCP Client is selected for a master and TCP Server for a slave; the medium can be Ethernet, GSM or WiFi.
  4. The Word reader is for 16-bit positive integers, Float for 32-bit decimals and Long for 32-bit integers.
  5. For negative word values, the 'Word to Signed' operation type is selected in the Long operation block.
  6. Function codes depend on register type: 4 types for reading and 3 for writing.
  7. Byte order varies by manufacturer and must be taken from the device manual.
  8. For RTU, serial port 0 is RS485 and port 1 is RS232; baud rate, data bits, parity and stop bits are set.
  9. The gateway block bridges a TCP master to RTU slaves and an RTU master to TCP slaves.

Using it in design

  • For power and cooling equipment connected to the BMS or SCADA, document Modbus TCP and RTU use per device in terms of register map, byte order and data type (16-bit, 32-bit float).
  • Write the slave count and address plan for RS485 lines (up to 246 slaves) at design time and identify gateway needs.
  • Define the policy of holding the last value or writing 0 on connection loss together with the alarm and monitoring logic.
  • Do not use a single vendor guide in place of the general Modbus specification; verify against the device manufacturer's register map.

Who should read it

Automation engineers doing BMS and SCADA integration and technicians commissioning Mikrodev PLC or RTU products.

Document contents

  1. Modbus Communication
  2. Modbus TCP/IP Communication (slave and master settings)
  3. Modbus RTU Communication (slave and master settings)
  4. Example Project: Reading an Analyser over Modbus RTU
  5. Other Function Blocks (Read/Write Table, Status, Gateway)

Publication details

Authors
Mikrodev
Publisher
Mikrodev
Year
Year not stated
Document language
Turkish
Source type
Manufacturer
Access
Free to read
Licence
Copyright retained; citation only: the publisher’s terms apply to the original document
Original licence note

Official public manufacturer documentation inspected. No redistribution permission established. Metadata and original brief summaries only; local downloads are research evidence, not a redistribution package.

Citation

Mikrodev MODBUS Uygulama Notu. Mikrodev. https://docs.mikrodev.com/tr/docs/MODBUS-Application-Notes/

All content and rights belong to the respective authors and publishers. SoSo CAD provides only the citation, its own summary and a link to the source, and is not responsible for the sources' content.

Redundancy scenarios in SoSo CAD

Compare normal operation with equipment failures and see served loads and capacity shortfalls in the same view.

Normal operation and failure scenario comparison in SoSo CAD

Keep your reading list current

Once a month: new library sources, changes to Turkish regulations and upcoming data centre events.