Leave Your Message

Example of communication for the BN-8033 module

2025-06-17

1. Topology

Example of communication for the BN-8033 module.jpg

2. Example of communication betweenTwinCAT 3 software and module 

Note: There are two ways to test the module: either directly using the scanning function of TwinCAT 3 or manually importing the XML file and configuring the IO 
manually.

Preparation: IO modules: B32-EC-11-26 (BN-8033, BT-124F, BT-222F). Note: BT-124F has added a sub-module with counting function.

Example of communication for the BN-8033 module1.jpg

Power on the module BN-8033 and connect it to the PC network port from the ECAT IN interface of the BN-8033 (Ethercat communication strictly distinguishes input and output, and the interface cannot be connected incorrectly, otherwise the module communication may be abnormal). 

1. Open the TwinCAT XAE software, click FILE - > New - > Project, and the interface will pop up as shown in the figure below.

Example of communication for the BN-8033 module2.jpg

Select TwinCAT Projects as shown on the screen and select TwinCAT XAE Project in the middle of the interface, and leave the rest as default (name, location, and solution name can be modified as needed), and click the OK button.

Example of communication for the BN-8033 module3.jpg

2. Module test

There are two ways to test modules: either directly with the scanning function of TwinCAT 3 or manually by importing XML files and configuring IO manually. When testing and using, users can choose one of them.

A. TwinCAT 3 software Scan Test (Note: It is not allowed to install the XML file in the directory C:\TwinCAT\3.1\Config\Io\EtherCAT).


Click the I/O-> Device -> Scan, click OK - OK - Yes - Yes in the pop-up interface.

Example of communication for the BN-8033 module5.jpg

Example of communication for the BN-8033 module6.jpg

Example of communication for the BN-8033 module7.jpg

Click the Yes button in the interface to enable communication between BN-8033 and TwinCAT, and the left interface has been scanned for the module.

Example of communication for the BN-8033 module8.jpg

Click the BT-222F digital output module, the drop-down menu Byte, click OnlineWrite, assign the value 255 to the module, click OK, it can see the output channel indicator of the module is on, and the software interface can display the written value.

Example of communication for the BN-8033 module9.jpg

Click Box 1 (BN8033) and click Process Data to view the total number of bytes in and out. If the module is incorrect, it can first check whether the number of input and output bytes is correct.

Example of communication for the BN-8033 module10.jpg

Note: The data format of the IO module that is automatically scanned is Byte, and the IO module can be scanned online for preliminary testing.

B. Manually import the XML file to configure the IO module 

Copy the XML file to ...\TwinCAT\3.1\Config\Io\EtherCAT and load the XML to TwinCAT as shown in the figure below. Note: When the XML file in this folder is updated, it must click again to download the device description.

Example of communication for the BN-8033 module11.jpg

Example of communication for the BN-8033 module12.jpg

Right click the Device-> Add New Item, the interface shown in the following figure, select EtherCAT Master and click the OK button, in the new pop-up interface, select the network card and click the OK button.

Example of communication for the BN-8033 module13.jpg

Right click the Device 1 (EtherCAT) -> Add New Item, the interface shown in the following figure. Select it in the newly popped up screen ‘BN-8033 EtherCAT 
Adapter.Odot', and click the OK button.

Example of communication for the BN-8033 module14.jpg

Example of communication for the BN-8033 module15.jpg

Double-click BOX 1 (BN8033), click Slots on the right side, click Terminals in the middle of the interface, and select the IO module of the corresponding slot of BN8033 on the right to map to the left. The BT124F submodule 16DI Counter indicates that the counting function is supported.

Example of communication for the BN-8033 module16.jpg

Example of communication for the BN-8033 module17.jpg

After the manual configuration is completed, click TWINCAT-Restart TwinCAT (Config Mode)-load I/O Devices-Activate Free Run, complete the configuration, download and activate the free-run mode.

Example of communication for the BN-8033 module18.jpg

After the operation mode is activated, the IO point can be tested. It can view the  input/output address of the I/O module:


BT-124F Digital Input: 39.0~40.7, Count Storage Input: 41~104, Count Zero Output: 


39.0~40.7, BT-222F Digital output: 41.0~42.7

Example of communication for the BN-8033 module19.jpg

Example of communication for the BN-8033 module20.jpg

The point test can be done on a single channel, or the PLC program can be edited for testing.