Warning

You are reading an old version of this documentation. If you want up-to-date information, please have a look at 2023.9 .

Plugin installation and configuration

The plugin is delivered in a .zip folder. Unzip it and you will find the library.

../../../_images/content_of_the_library_cc_link.png

Fig. 126 Content of the library

Installation of the library

  1. Click on Project > Library Operation > Register to library List > User Library..

../../../_images/import_a_library.png

Fig. 127 Import a Library

  1. Add the Library_PluginMitsubishiCCLinkAsycube.usl.

Add the register file

  1. Add the holding registers to Structured Data Types of your project.

../../../_images/add_structured_data_types.png

Fig. 128 Add Structured Data Types

  1. Add the dbGateway to Global Label of your project. Should you have several Asycube, you can simply duplicate this label or its content. If GX Works 3 asks you to overwrite the registry files, because they are already present, select Yes.

../../../_images/add_global_label.png

Fig. 129 Add Global Label

Add the Gateways in the configuration

  1. Configure your CC-Link module > Required Settings according to below parameters. The default transmission speed of the Asycube Gateway is 10Mbps. Should you want to change it please refer to Change the transmission speed (Baud rate) of the gateway (Optional).

../../../_images/required_settings.png

Fig. 130 Required Settings

  1. On your CC-Link module > Basic Settings, click on Network Configuration Setting.

../../../_images/basic_settings.png

Fig. 131 Basic Settings

  1. Set the Mode Setting to Ver. 2 Mode and verify the TX Speed. Click on Detect Now.

../../../_images/cc_link_configuration.png

Fig. 132 CC-Link Configuration I/O

  1. You should now see all the remote station (one per Gateway/Asycube).

  2. Check that the parameters are as in Fig. 132.

  3. Click on Close with Reflecting the Setting.

  1. On your CC-Link module > Basic Settings, click to Link Refresh Settings.

../../../_images/basic_settings_cc_link.png

Fig. 133 Basic Settings

  1. Create a link between the CC-Link module and the CPU as shown in Fig. 133 (for one Gateway/Asycube which station address is 1) and press Apply :

../../../_images/link_between_cc_link.png

Fig. 134 Link between CC-Link module and CPU

Connect the registers to the FB

You must use the register variables instantiated in the global variables (regAsycubeWrite and regAsycubeRead) at the input of the different blocks. The variable boConnectionFaultedSB must also be set using the station status variable of your device (1 = remote device disconnected, 0 = normally situation).

Here is an example of an application with the input and output registers filled in.

../../../_images/example_of_integration_cc_link.png

Fig. 138 Example of integration

Change the transmission speed (Baud rate) of the gateway (Optional)

The default Baud rate may not be suitable for all application. If you need to modify the Baud rate, please follow this procedure:

  1. Download the Hilscher SYCON.net software tool.

  2. Install the Hilscher SYCON.net software tool.

  3. Launch the Hilscher SYCON.net software tool: click OK without Password.

  4. Open the cclink project provided with the plugin.

  1. Click Open

../../../_images/open_a_project.png

Fig. 139 Open a project

  1. Browse for the cclink.spj file delivered with the plugin.

../../../_images/open_cc_link.png

Fig. 140 Open cclink.spj

  1. Click “Open”

  1. Modify the Baud rate.

  1. Right-click on the netTAP item.

  2. Select Configuration - CC-Link Slave.

../../../_images/select_config_cc_link.png

Fig. 141 Select Configuration -> CC-Link Slave

  1. Set the Baud rate to the desired value.

../../../_images/set_the_baud_rate.png

Fig. 142 Set the Baud rate to the desired value

  1. Click OK.

  1. Connect your Asycube CC-Link Gateway to your computer.

  1. Connect the 24VDC power supply (Power connection)

  2. Connect the provided USB cable to your Gateway (under the flap).

  3. Connect the provided USB cable to your computer.

  1. Download the configuration into your Gateway.

  1. Right-click on the netTAP item.

  2. Click Download.

../../../_images/download_config_gateway.png

Fig. 143 Download the configuration into the Gateway

  1. If you get a warning Do you really want to download?, click Yes.

  2. Wait a few seconds until the download succeed.

  1. Finalize.

  1. Exit SYCON.net software tool.

  2. Remove the USB cable.

  3. Disconnect the power supply.