Modbus Server & Client Set Up with EBPro EasyBuilder Pro

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • Weintek USA official site - www.weintekusa.com
    Call for pricing and availability 425-488-1100
    How to set up a Modbus Server and Client plus how to communicate between the two.
    0:00 - Introduction
    0:26 - How to enable the HMI's Modbus server
    1:24 - Modbus TCP/IP gateway
    3:21 - How to make an HMI a Modbus client
    5:01 - Demonstration
    Chapter 19.
    Once the HMI is configured as a MODBUS device, the data of HMI can be read or written via MODBUS protocol. As shown in the following figure, the HMI is configured as a MODBUS device (also called MODBUS Server). The HMI, PC or other devices can use MODBUS protocol to read or write HMI data via Ethernet or RS-232 / RS-485 interface.
    To configure the HMI as a MODBUS device, add a new device in the device list first. Click [PLC type] drop-down box and select “MODBUS Server” driver. There are six selections for [PLC I/F]: RS-232 / RS-485 2W / RS-485 4W / Ethernet / USB / CAN. Choose the PLC interface appropriate for your PLC model.
    If [PLC I/F] is set to [RS-232] or [RS-485], please select [COM] (COM 1 ~ COM 3) and set correct communication parameters as shown in the following figure. MODBUS Server [Station no.] is set to 1. Click [Settings], the maximum LW address range read / written by Modbus Client can be set. When the object in the project uses a LW register, the Modbus Client will not be able to read or write an address that is not within the specified range.
    When finished, MODBUS Server is listed in [Device] tab. The configuration of MODBUS device is completed. Compile the .emtp file and download the compiled .exob file to the HMI, then HMI data can be read or written by using MODBUS protocol.
    Address type: In the EasyBuilder Pro, the address types of MODBUS protocol are 0x, 1x, 3x, 4x, 5x, 6x, 3x_bit and 4x_bit. MODBUS RTU function codes are listed below:
    #Modbus #ModbusServer #ModbusClient

ความคิดเห็น • 3

  • @MrJay-rs3hp
    @MrJay-rs3hp ปีที่แล้ว

    Hello i want to ask if when you disconnect the server how to setup the alarm or fault to warn the user that the connection is disconnected?
    Thanks for the reply

  • @ahmadshahirmohamad296
    @ahmadshahirmohamad296 4 ปีที่แล้ว

    Hi. Can I used 3rd parties software such as Modscan32 to scan holding register ? So I can take the value and pull it inside my PLC.

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 4 ปีที่แล้ว

      Hi Ahmad,
      With the Modbus Server driver selected the HMI will act as a regular Modbus device with modbus mapping linked to the HMI’s internal memory. It is quite possible that this would work.
      Please contact Weintek Support with detailed specifics of your application: support@weintekusa.com