Animazione Hover

Guida all'uso del gateway di Edge Computing: Interfaccia con il PLC Xinjie tramite il protocollo Modbus RTU

In this tutorial, we will focus on EG series edge computing gateway with PLCs. We hope this proves helpful.

L'articolo di cui abbiamo parlato prima:

Come integrare il gateway di edge computing EG con General Electric PLC

Today, let’s talk about how to integration with Xinjie PLC.

Compatible PLC: Xinjie XD Series

1. Connessione hardware

The Modbus RTU protocol utilizes serial communication. For this example, the PLC model XD3-16T employs RS485 communication. Simply connect the PLC’s 485 port A to the gateway’s A1, and the PLC’s 485 port B to the gateway’s B1.

Interface with Xinjie PLC via Modbus RTU protocol1

2. Parametri di comunicazione del PLC

2.1. Serial Port Parameter Settings

Interface with Xinjie PLC via Modbus RTU protocol2

3. Gateway Settings

3.1. Impostazioni di connessione del PLC

Drag a XinJE node from the left panel and double-click to open its settings page. Configure the following based on your PLC’s serial port parameters:

Protocollo: Select Modbus RTU

Serial Port: If connected to A1/B1, select RS485-1

Baud Rate: 19200

Data Bits: 8

Stop Bits: 1

Parity: Even

Timeout di comunicazione: 2000

Series: XD

ID stazione: 1

Format: ABCD

Interface with Xinjie PLC via Modbus RTU protocol3

3.2. Configurazione del punto dati

Enter the data points to be read into the parameter list of the XinJE node. Once configured, the node will automatically read data from the PLC at the specified frequency.

I punti dati sono in genere forniti dai tecnici dei PLC. Dopo aver ottenuto l'elenco dei punti, compilare i punti dati secondo il formato richiesto dal gateway. Per dettagli specifici sulla mappatura, consultare:

Questa sezione contiene contenuti di Yuque. Fare clic sul link per visualizzare: https://iotrouter.yuque.com/zn3vdn/eg8000/crnxbmg1g0p20geq

This example reads data from addresses M0 and D0. In the parameter list, enter the address/name/data type/data length in sequence. Data is read cyclically every 2 seconds, as shown in the figure:

Interface with Xinjie PLC via Modbus RTU protocol4

3.3. Test

Click Deploy and observe that a data point is printed every 2 seconds. The read data point results are: M0:true, D0:3. Communication successful!

Interface with Xinjie PLC via Modbus RTU protocol5

Contatto