GOC43 Communication - CCLIEFB setup

GOC43 Communication - CCLIEFB setup

Info
This article will guide you how to setup GOC43CCLIEFB communication with FR-E800E step by step.

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. GOC 43 CCLIEFB Master

    1.1  Create a new project

      
      

      Select Device and programming language
      

      1.2 Add Library to the project

      After project created, please add GOC43_CCB library tot he project
      

      1.3 Add FB to the POU

      Open Ladder program and drag & drop Box element to he first ladder network
      
      

      Search for CCLIEFB_master_config FB
      
      After add one instance into the variable table of that FB
      
      Copy these variables to the VAR section:

      (For testing purpose Stn No.:= 5 we will use FR-E800E inverter, which is occupied 1 station)

            bEnable : BOOL;

            (* CCB *)

            CCLIEFBasic_Master_Config_0: CCLIEFBasic_Master_Config;

                       

            (*FB input*)

            NumOfStation : BYTE := 1 ;                                                                                (* Define number of stations connected *)

            CCBStationList: ARRAY [0..3] OF CCLIEFBasicStation := [(Stn_No := 5, Occupied_Stn := 1),(Stn_No := 2, Occupied_Stn := 1),(Stn_No := 3, Occupied_Stn := 1),(Stn_No := 4, Occupied_Stn := 1)];

            TimeoutPeriod: WORD := 1500 ;                                             (* Define communication timeout period*)

            NoOfRetries: Count := 0;                                                             (* Define number of retried Count_0 =3 retries,Count_1=5 retries, Count_2=10 retries *)

            ResetMasterDiag: BYTE;                                                                                     (* Reset master diagnostics as 0: No reset action, 1 : Reset max, min Link scan time, 2: Clear latest error code, 3: 1+2 *)

            CCB_SlaveInfo: ARRAY [0..3] OF CCLIEFBasic_DiagInfo; (* Monitor CC-Link IEF Basic diagnostics of individual slave station *)

            (*FB output*)

            MasterConfigDn: BOOL;                                                              (* TRUE : Master config dn successful, FALSE : Master config. unsuccessful*)

            Error_MasterConfig: BYTE;                                 (* Monitor cause of error in configuration *)

            Error_Com: BYTE;                                                                             (* Monitor cause of error in communication *)

            MaxLinkScanTime: WORD;                                                        (* Monitor maximum Link scan time*)

            MinLinkScanTime: WORD;                                                         (* Monitor minimum Link scan time*)

            CurLinkScanTime: WORD;                                                         (* Monitor current Link scan time*)

                       

            RXArray AT %MW3000: ARRAY [0..3] OF WORD;                                 (*RX data*)

            RYArray AT %MW4000: ARRAY [0..3] OF WORD;                                 (*RY data*)

            RWrArray AT %MW5000: ARRAY [0..31] OF WORD;                           (*RWr data*)

            RWwArray AT %MW6000: ARRAY [0..31] OF WORD;                         (*RWw data*)

      Setup the FB input and output with variables, as the below picture
      

      1.4 Compile the project and download

      
      Download project to GOC43

      First establish connection with your plc
      
      PLC settings
      
      Then login, and download your project
      
      Start PLC
      
      During download and stop mode GOC43 will show the system info
      
      

2. Setup FR-E800-E CCLIEFB Slave station

      2.1 Create a new project and connect to the inverter

      Connect mini usb cable to the inverter

      

      2.2 Read out parameters

       Open parameters, then go Online. After that read batch parameters
      

      2.3 Setup and write parameters t the inverter

      Setup the following parameters from the default

            Pr.544 = 18        (ver 2)

            Pr.1429 = 61450             (CCLIEFB)

           IP of the inverter

                  Pr.1436 = 3        (3rd octet of IP)

                  Pr.1437 = 5        (4th octet of IP)

 

            IP of the controlling devices

                  Pr.1449 = 192

                  Pr.1450 = 168

                  Pr.1451 = 3

                  Pr.1452 = 1

                  Pr.1453 = 3

                  Pr.1454 = 254

            Change operation mode to PU before start batch write
      
      After writing of the parameters finished change back the operation mode to NET

      Disconnect USB cable, and if inverter has error, please press stop/reset button (red).

3. Test

      Test communication with running of the inverter. So we will enable first communiction then turn on forward bit

      3.1 Tur on com. enable bit

      
      If we did everything fine, and inverter is not in error (for example E.EHR), we need to see the following status of the FB. Fb output done means communication established and linkScantime show some values
      
      If we have some errors error config output will have a value. Every value has it’s own meaning. If you keep mouse on the output description will be shown.
      

      3.2 Let's start our motor/inverter (FWD) command

            Manual contains the necessary bit for this test, here you can see the control and status bits of the inverter via CCLIEFB
            
            Word registers for controlling and monitoring
            

              So turn on first bit of the control word and we will see the inverter start operating the motor, in the example the set freuqency was 23.00Hz
            
     
      Ready Program and inverter parameters attached.
                  
      


    • Related Articles

    • GOC43 - Communication - Modbus Slave (Server)

      This article will guide you how to prepare GOC43 Modbus Server communication with FX5U (Modbus client) step by step. Copyright © Mitsubishi Electric Europe B.V. IMPORTANT ! These Function Blocks / programs are demo versions that are only intended to ...
    • GOC43 - Communication - Modbus Master (Client)

      This article will guide you how to prepare GOC43 Modbus Client communication with FX5U (Modbus server) step by step. Copyright © Mitsubishi Electric Europe B.V. IMPORTANT ! These Function Blocks / programs are demo versions that are only intended to ...
    • GOC43 - basics, project creation, system structure

      This document shows basic setup, connection and available operations on GOC43 panel, which uses GOC Toolkit V3 (CoDeSys V3.5). In order to use GOC35, please install GOC Toolkit (CoDeSys V2.3). Creating project, adding modules, setting parameters When ...
    • 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 ...
    • INV - FR-E800 - CC-Link IE TSN communication with iQ-R plc

      This article how to set up CC-Link IE TSN connection between iQ-R PLC and FR-E800 inverter. It also presents ready to use function blocks to realize basic control, read inverter monitors as well as read and write E800 parameters through the network. ...