Leave Your Message

Example of communication for the CN-8013 module

2025-04-28

1 Topology

1.png

2 Example of communication between Mitsubishi Q series

Plc and the module

  1. The hardware composition of the Io Modules are as follows, the system power and field power supply to the CN-8013 module is 24VDC, and the power supply is 220VAC to the Mitsubishi PLC, and the communication with theCN-8013 is communicated through the QJ61BT11N.

2.png

  1. The PC is connected to the configuration interface of CN-8013 through MicroUSB, open the IO Config software, create a new project, select the serial port, right-click on 

    the project and click Upload Module.

3.png

Set the communication parameters of the adapter.

The slave address and baud rate are set by the adapter dial code, and the slave address and baud rate can be uploaded through the software.

It can set the number of occupied logic stations and the expansion cycle settings, and adjust the capacity of RX/RY and RWr/RWw.

If select Enable, the minimum number of stations and the multiple of extended cycles can be automatically calculated by downloading and uploading configurations.

4.png

Click the address table to view the address offset mapped by the IO modules.

5.png

  1. Open the Gx Works2 software, create a new project, and select the CPU series and model.

6.png7.png

Click on the connection target, double-click Connection1, select the Ethernet board, and click Communication Test.

8.png

Click Parameters - Network Parameters - Double-click CC-Link in the project tree on

the left to configure CC-Link communication parameters.

Number of module blocks: 1

Type: Master,

Mode setting: Remote network (Ver 2 mode)

Total number of connections: 1

Remote Register (RWr): Set to D1000 (programmatically definable)

Remote Register (RWw): Set to D2000 (programmatically definable)

Station information: Ver.2 remote equipment station, 8 times the setting, 4 stations occupied.

9.png

10.png

After the configuration is complete, click Download to PLC in the menu bar.

11.png

Click "Online" in the toolbar, and "Monitoring" in the drop-down menu, then "Software/Buffer Memory Batch Monitoring" in the drop-down menu.

12.png

For the correspondence of the address table, please refer to the corresponding RX, RY, RWr, and RWw values of each IO module in the IO Config software, which is an address offset, that is, the specific channel address of the IO module corresponds to the corresponding offset values in X100, Y100, D1000, and D2000.

5.png

For the CT-222F, the Y100 corresponds to the 16-bit digital output of the CT-222F.

For CT-4234, D2000 corresponds to CT-4234 channel 0, D2001 corresponds to CT-4234 channel 1, and D2002 corresponds to CT-4234 channel 2. D2003 corresponds to CT-4234 channel 3.

 

3 Example of communication for CN-8013 with FX3U

1 Create a project

◆ Open the GX Works2 programming software, select the FX3U/3UC model, and create a new project.

14.png

  1. Set the communication parameters of the CC-link master

Master module dial code:

STAION NO is the master station number dial code, please do not conflict with the slave number, generally dial 0.

COM SETTING The correspondence between the baud rate of communication is as follows: (the baud rate of the master and slave must be the same)

20.png

Software communication parameter setting:

The Mitsubishi FX3U model has a PLC remote I/O that can be connected to up to 8 stations (each station occupies a total of 32 bits of PLC actual input and output, and the total number of 8 stations is 256 bits), so the total number of "remote sites" must be within 256 points.

15.png

(Note: The above figure allocates 192 points of input and output space to slave 1, because 192 points are greater than 32 points of a station, so the parameter "occupy 2 stations" indicates that the space that should be allocated to slave 2 is occupied, so the CC-link network does not allow slaves with dial code 2 to appear.)

 

  1. Set the communication parameters of CC-link slaves

Open the IO Config software, create a new project, and then upload the module configuration to the software by selecting the serial port automatically recognized by

the computer.

16.png

The configuration uploaded to the software is modified for communication parameters and then downloaded to the CN-8013 communication module.

17.png

CN-8013 module configuration parameters:

Slave address: The slave station number is consistent with the programming software through the DIP code.

Baud rate: the same as the dial code of the master module (the same baud rate).

Number of Occupied Logical Stations: Consistent with the slave parameter settings in the programming software.

Extended Cycle Settings: Same as the slave parameter settings in the programming software.

Note: If the parameter modification is successful, download and then upload it to check whether the parameter is modified.

 

4 Programming

  1. Use the FROM command to read the input value of the remote IO into the register of the PLC.
  1. Use the TO command to write the value of the PLC register to the remote IO. In this example, the remote I/O modules are:

18.jpg

CT-121F: 16-bit digital input module.

CT-222F: 16-bit digital output module.

CT-4234: 4 Words analogue output module.

CT-3234: 4 Words analog input module.

The program is written as follows:

19.png

Thanks for reading! Catch you in the next communication demo—don’t miss it!