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.