EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

This article uses the Soldier300 V2 as an example to explain the EtherNet/IP (EIP) communication operations between the Newland Industrial Barcode Scanner and the Huichuan AC702 PLC.

Connection Diagram:

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Environment

PLC: Model AC702, accompanying software InoProShop

Barcode Scanner: Model Soldier300 V2, accompanying software NSet

DEMO: HuichuanEIP.project

EDS File: opener_sample_app.eds

Settings on the Barcode Scanner Side

1. After entering the device in NSet, click on “Advanced Settings → Scan Settings → Trigger Command” to enable the serial trigger command.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

2. In “Advanced Settings → Scan Settings → Trigger Mode”, enable the pulse trigger.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

3. Click “Advanced Settings → Input/Output → Input”, and select serial command trigger as the input source.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

4. Click “Advanced Settings → Communication Settings → Output Channel Settings”, and select the industrial Ethernet protocol to enable the EtherNet/IP protocol.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

5. Click “Advanced Settings → Scan Settings → Read Code Unsuccessful”, and enable the read code unsuccessful information.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

6. Finally, click [Save to Device].

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Settings on the PLC Side

First, we need to confirm that the IP address of the PLC and the barcode scanner are in the same subnet. If they are not in the same subnet, one side needs to be changed to ensure both IP addresses are in the same subnet.

In this example, the IP of the Huichuan PLC is set to: 192.168.78.192, and the configuration in the DEMO is based on this, so the PLC’s IP address needs to be changed accordingly.

To check the PLC’s IP address, follow these steps:

Open InoProShop → In the left navigation pane, double-click Device (AC702), click Communication Settings, and you can view the PLC device’s IP address.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

If you need to change the PLC’s IP address, you can do so by clicking Device (AC 702) – System Settings – Network, and modify the PLC’s IP address here.

1. Click [Read] to obtain the current PLC’s IP address.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode ScannerEtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

2. Enter the new IP address you want to modify, and then click [Write]. The new IP address will take effect after a successful write.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode ScannerEtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

The default IP of the Newland Industrial Barcode Scanner is: 192.168.1.100.

For convenience in subsequent operation instructions, we will set the barcode scanner’s IP address to 192.168.78.213, which is in the same subnet as the PLC.

In the NSet software [Home] → [Network Settings], change the IP of the barcode scanner as follows:

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Testing the DEMO Usage

When using the EIP protocol, the EDS file must be imported, which can be obtained from the relevant technical support personnel at Newland.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Warm Reminder:

1. This test demo has already integrated the EDS file, so no additional import is required..

2. For users who are using the Newland Industrial Barcode Scanner and Huichuan PLC for EIP communication for the first time, it is recommended to first import this demo, as debugging in this environment makes it easier to understand the communication logic between the scanner and the PLC, and subsequent expansions can be based on this.

Next, we will detail the usage of the test DEMO.

1. Import the demo: HuichuanEIP.project (EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner)

2. Check if the PLC is connected to the computer.

Click “Huichuan EtherNet/IP → Device → Communication Settings”,

If the page shows two green dots as shown below, it indicates that the PLC is connected to the computer normally.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

If the page shows a red dot, it indicates that the PLC is not connected to the computer and needs to be reconnected..

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

To reconnect: Click “Scan Network – Select the corresponding device, such as ‘asdIl123 [0301.60C0] [192.168.78.192]’ – Confirm”.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

3. Log in to the device.

Double-click “Ethernet_A (Ethernet) – OpENer. PC (OpENer PC) – General – IP Address, enter the barcode scanner IP, such as 192.168.78.213”.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Click “Ethernet_A (Ethernet) – OpENer. PC (OpENer PC) – EtherNet/IP I/O Mapping – Log in – Select ‘Yes'”

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

4. Trigger the code reading.

Click the triangle icon in the image belowEtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner to trigger the start of code reading, and click the square iconEtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner to stop the current operation.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

The appearance of a green indicator in the left taskbar indicates that the PLC has successfully triggered, as shown in the image below:

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

5. View the code reading data.

Double-click “PLC Logic – Application [Running] – Task Configuration – PLC_PRG – Result” to see the decimal code reading result.

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Click “BarcodeData” to see the string reading result..

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

If the device fails to scan the code during the trigger process, it will output an error messageERROR (fixed value).

Click “PLC Logic – Application [Running] – Task Configuration – PLC_PRG – Result” to see the decimal reading result as69, 82, 82, 79, 82 (the corresponding character combination isE, R, R, O, R).

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Click “BarcodeData” to see the string reading result asERROR..

EtherNet/IP Communication Instructions for Huichuan PLC AC702 and Newland Industrial Barcode Scanner

Please open in the WeChat client

Leave a Comment