ModbusServer_setup | Top

ModbusServer_setup Set up Modbus Server (Modbus Slave Simulator from Dafulai Electronic Inc ) Since R2019b Library: Modbus Server ( Dafulai Electronics) /ModbusServer_setup Description This block sets up all parameters of Modbus Slave (Server) Simulaor from Dafulai Electronic Inc You must put this block in your simulation model in order to control Modbus Server. For Modbus RTU/ASCii Server, it can support as many as 5 servers. So you can see tab "Device 1 to 4 Settings" and tab "Device 5 Settings" (Device1 to4 has the same register structires). When you use Modbus TCP server, it can only support one server, So only tab "Device 1 to 4 Settings" is enabled, tab "Device 5 Settings" is grey color to disable. Modus TCP Server does not support watchdog. So all watchdog settings are grey color to disable. This block will set up Modbus register segments address and watchdog type/address. Parameters There are many parameters for this block. Please double click this block to open parameters dialog below: Many parameters are self-explanation from the label. We only explain some special parameters.
• | Connect to — This is USB or Bluetooth Serial port for our Modbus slave simulator hardware. You must connect USB or Bluetooth Serial port for our Modbus slave simulator hardware even though you only use Modbus TCP server.
• | Object ID for multiple Modbus slave Simulator Hardware — In one PC, we may use multiple Modbus slave simulators, this is for identifying each one.
• | Segments for XXX regs — It is double type Matrix (n x 2). Every row of matrix denotes register's one segment start/end address. Row numbers are segment quantities. For Modbus RTU/ASCii server, Max row numbers are 10. For Modbus TCP Server, there is no limit for row numbers.
• | Use Holding regs to replace Input Regs for read-only words Regs — It means Server does not support FC=04 to read input registers. Instead of it, Server uses FC=03 to read holding regs (Read-only).
Ports Input None Outpot None