GOC43 - Communication - Modbus Master (Client)

GOC43 - Communication - Modbus Master (Client)

Info
This article will guide you how to prepare GOC43 Modbus Client communication with FX5U (Modbus server) step by step.

Alert
Copyright © Mitsubishi Electric Europe B.V.

IMPORTANT !

These Function Blocks / programs are demo versions that are only  intended to demonstrate program functions and provide general orientation for  your software choices. They are not suitable for use in real applications! "

"Improper use of demo versions in applications can lead to serious malfunctions  and damage! Programs for real applications must always be configured for the  individual application by trained staff and tested thoroughly before being  used.

Mitsubishi Electric cannot assume any liability if these examples are used in real applications."


      

1. Setup GOC 43 Modbus TCP Master

1.1 Create new project

      Select template project icon and give a name to your project.
      

      Select the GOC43 target version , and prefered programming languages. (This example we won't write any line of code)
      

1.2 Add Modbus Master device to Communication

      Select Ethernet from the Devices tab of the left project tree with right mouse click. Chose Add device..
      
      
      From fielbuses tree find modbus master and add device to the Ethernet configuration.
      

1.3 Add Modbus Slave device under Master device

      Select Master device and right click. Add Slave device under Master configuraton
      
      

1.4  Master device parameters

      1.4.1 General settings 

            Leave everything default, only modify if you not statisfied these settings.
            

      1.4.2 Modbus TCP Master I/O Mapping

            For Modbus Bus cycle options choose Main task.
            

1.5  Slave device parameters

      1.5.1 General

            Set IP address of the slave device and port number (def :502)
            

      1.5.2 Modbus Slave Channel

            Set 1 channel for read (4 Holding register) and 1 channel for write (4 Holding register)
            
            
            In the IO mapping windows you can check your final setup.
            

1. 6 Login and download project

      1.6.1 Establish connection with GOC43

      Select device, then scan your network searching for PLC.
      

      1.6.2 Setup your PLC parameters

      

      1.6.3 Login and download project

      

      1.6.4 Start PLC

      Click on the "play" icon
      
      During download you will see the GOC system menu. After that screen will be white, because we did not add any visualization element to the project.
      

2. Setup FX5U Modbus TCP Slave

      2.1 Create a new project

            

      2.2 Setup Ethernet

            2.2.1 Set IP address of the PLC and subnetmask

                  

            2.2.2 Add modbus connection to the ethernet configuaration window

                  
                  Finish setup with pressing the Apply button
                  

            2.2.3 checiking Modbus register allocation

                  Leave default
                  

     2.3 Compile and download

                  
                  Select parameter + program
                  
                  Accept all pop up window, and follow reset instruction. (Reset method: Run-stop-reset switch hold down till error LED lit on the PLC  2-3 times then switch to RUN state)

3. Test

      3.1 Use IEC Objects for communication monitoring

            

      3.1 Write Values to FX5 PLC

            Prepare some value directly to cyclic exchange registers
            
            Check them in GX Works 3 buffer memory windows.
            

    3.2 Read Values from FX5U

            
            


      
    • Related Articles

    • GOC43 - introduction, functionalities, comparision with GOC35

      The GOC platform GOC35 and GOC43 are programmable controllers with integrated display, button and bi-colour LEDs. Just like any PLC – they come with range of IO points, among which some may (depending whether it’s GOC35 or 43) serve as analog or ...
    • ME96 and MAPS connected by Modbus RTU

      This document shows how to connect electronic multi-measuring instrument ME96-MB to MAPS SCADA via Modbus RTU. Connection is using MOXA 1130 converter RS485 to USB Configuration MOXA converter Searching MOXA in device manager   The most important ...
    • INV - FR-A800 - Inverter communication by CC-link IE Field basic or RS485

      The article provides information on inverter communication via CC-Link IE Field Basic and on RS485 parameterization This project contains information about communicating inverter by CC-Link IE Field Basic and parameterization of RS485 Communication ...
    • Socket Communication Robot CR-7xx controller and FX5

      Document describes how to set up simple socket communication between robot (series: S and F with CR7xx, CR8xx controller) and FX5 PLC.  If you have robot with CR8xx controller it’s also recommended to use CC-Link IE Field Basic network because it’s ...
    • Iconics Suite - Client type check (GraphWorX or web browser)

      This article give you possibility to recognize on which Iconics Suite client type your display is open and use this information for future action like show or hide certain elements Notice quality code 192 is good, 0 is bad Expression for label ...