Mitsubishi Q-PLC QJ71E71-100 Ethernet Communication


The QJ71E71-100 is an Ethernet interface module designed for Q-PLC systems. In this section, we will delve into the communication process between two Q-PLC units using the QJ71E71-100 module on both ends. To facilitate communication between these two modules, a specific role is assigned to each. One module functions as the Active Connection or Client, while the other serves as the Passive Connection, which can either be in a Full Passive or Unpassive mode. In the scenario of Full Passive mode, the IP Address of the Active Connection is employed within the configuration settings. This will be elaborated upon below. Conversely, in the case of Unpassive mode, the utilization of IP and Port ID is not mandatory. Let's commence by addressing the Active Connection:

Open Network Parameter >> Ethernet:



Network Type: Ethernet

Network No: 1

Station No: 2

 

Now Open Operation Setting:



 Set IP Address: Here its 192.168.1.252


Now Click Open Setting in Network Parameters:


Presently, our task involves initiating two distinct ports—a receiver port and a sender port.

Port 1:

- Protocol: TCP

- Mode: Active

- Role: Receiver

- Procedure: None

- Local Port Number: Set to 2000

- Destination IP Address: Configured to 192.168.1.254

- Destination Port Number: Defined as 2000

Subsequent to the input of these values, proceed by selecting the "End" option.

Upon the completion of parameter configuration, the focus shifts towards the programming aspect.

Initially, the requirement entails the activation of both Port 1 and Port 2. To accomplish this, the appropriate command is "ZP.OPEN."

 

ZP.OPEN U0, K1(1 is for port no. 1)


ZP.OPEN  K2 is for Port No 2

After successfully opening the port, bidirectional data exchange becomes feasible between the two PLCs.

For data reception through Port No 1, the command "ZP.BUFRCV" is employed.



ZP.BUFSND is for Data Send which is for port no. 2


You can access examples for both Active and Passive configurations by visiting the "Download Sample" section within the menu.


To download the provided samples, please follow this link: Download Sample Examples

Post a Comment

Previous Post Next Post