Jump to content
  • 0

Mapping CC-Link Data in a Mitsubishi PLC


Bryon Sol

Question

Something that Mitsubishi programmers need to do on a regular basis is communicate with a device on a CC-Link network.  This can be CC-Link classic, CC-Link IE Field, CC-Link IE Field Basic or CC-Link IE TSN.  No matter which flavor of CC-Link is used the process is similar and consists of a few steps.  This article is not intended to be a step-by-step how-to but instead to give an overview of the process.

Step 1:  Configure the network with the devices and their required data size(s).

Step 2:  Configure a set of Refresh Data to transfer the information from the CC-Link module (whether that's the built-in Ethernet port for CC-Link IE Field Basic, or an actual add-on module like RJ61BT11 or FX5-CCL-MS etc).

Step 3:  Understand the data and use it!

I like to diagram this out as follows:

image.png.a6f2bf2832fc0d1c86ba1b92da0d7f5b.png

 

STEP 1: - Configure the network

For Step 1 - configuring the network, all of the configuration screens look similar, you drag and drop the devices onto your network and set station numbers.  For Ethernet devices you need to set IP addresses as well.  On the devices themselves you need to either parameterize them or configure their station information to match.

Here's an example screenshot showing a VFD on a CC-Link network

image.thumb.png.7c0b1ae8ef77244a1e108f5d71213eec.png

You simply drag the device onto the network and then in the upper portion of the window you configure the details for the station.

For instance this is set for Version 1 of CC-Link and a single occupied station.

image.thumb.png.428cb8351a6bc87ef20222f6a0cbac8b.png

 

STEP 2:  Configure the Refresh Data

This moves the data into the PLCs usable device memory.

This will look something like the following:
image.png.5e95e7f3a6a0c9d4a005958856bc3eb4.png

RX Devices are Remote Input bits and in the above picture we are transferring them into B bits in the PLC
RY Devices are Remote Output bits and in the above picture we are  transferring them into B bits in the PLC
RWr Devices are Remote Input Words (Remote Word Read) and in the above picture we are  transferring them into W words in the PLC
RWw Devices are Remote Output Words (Remote Word Write) and in the above picture we are  transferring them into W words in the PLC

What this step does is make the devices on our CC-Link network accessible via PLC internal devices, in this case B bits and W words.  B bits and W words were chosen because they are addressed in Hexadecimal just like RX, RY, RWr and RWw devices.

You can see here RX0 through RX1F is getting mapped to B0 through B1F.  Similarly RY0 through RY1F are being mapped to B100 through B11F.  The RWr and RWw follow a similar pattern.  The B bits and W words chosen are set by the programmer.

STEP 3:  Use the Data.

In order to use the data we need to go to the manual for the device we are controlling and see what the manufacturer tells us.  

For example with a Mitsubishi VFD on CC-Link IE Field basic we get these two maps:

The RX and RY devices look like this:
image.thumb.png.535cba5881ed9036f26218ab1fa0b5c8.png

The RWr and RWw can change but the most simple option is this:
image.png.abbcb9e168f6a03f64eee9799c66e704.png

It's now up to you as a programmer.  We can hard code devices for use. For instance since RY0 = B100 we can simply turn on B100 to turn on the Start Forward signal of the VFD, or we can create labels.

For example here's a data structure for the RY devices showing the device that we've mapped.

image.png.d726a7482c2f145cbd8badbd07cef29c.png

With data structures in place, labels created for our CC-Link devices and then our mapping complete we can have code that looks like this to turn on/off the VFD

image.png.bd5ce3a48a27495f98960d46c60c2565.png

Hopefully this helps you conceptualize device mapping in Mitsubishi PLCs.

 

image.png

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...