WECON

Last modified by Devin Chen on 2024/12/19 17:27

WECON

LX3 Series

Supported series: WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM

HMI Settings

ItemSettingsNote
ProtocolWECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM 
ConnectionRS422/RS485 
Baud rate9600 
Data bit7 
ParityEVEN 
Stop bit1 
PLC station No.1 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
WordXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~199 
DDD d0~7999 
SSS d0~99999 
SDSDSD d8000~9999 

Cable Wiring

  • RS485

12.PLC Protocol_html_1897d92be6948d58.png

  • RS422

12.PLC Protocol_html_5c7fca9a70da2ee8.png

✎Note:

  • HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) .
  • If PLC <= 20 points,such as LX3V-1208/LX3V-0806 PLC,PLC RS485A and RS485B mean PLC COM2 RS485+ and RS485- .PLC COM2 can support modbus. Please refer to PLC COM2 setting manual.

https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing

HMI settings

Download PIStudio Software

Please visit the link below to get the latest version PIstudio for HMI programming:

Create a new HMI project connect with PLC

Check the link below for the video to show you how to get started with a new project

For more videos, please visit our Youtube channel: http://www.youtube.com/user/Wecon2004/videos

General

HMI could communicate with PLC and support many PLC protocols.  It is easy to operate and set communication parameters. This demo shows how to make a communication with PLC device, use WECON LX3V Series PLC as an example.

Protocol settings

The communication between two devices requires a protocol. The following contents show the steps of protocol settings.

Please select the protocol, when creating a new project.

  1. Select the COM port for communication;
  2. PLC type: It means PLC brand, like WECON;
  3. PLC model: It shows the model of PLC, such as LX3V;

image-20220819093729-1.png

If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure.

image-20220819093729-2.png

The steps to change the protocol for project are as follows.

  1. Click [Setting] to open the [Communication device] window;
  2. Select communication port, such as COM1;
  3. Select Serial port for communication, such as RS422;
  4. Select device type (device brand), such as WECON;
  5. Select the protocol for communication, such as WECON LX3V;

image-20220819093729-3.png

Parameter settings

The parameters settings are in [Communication] window, shown as following below.

  1. Click [Setting] to open the [COM port setting] window;
  2. Set the parameters such as [connection], [Baud rate] and so on;

image-20220819093729-4.png

  1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value.

image-20220819093729-5.png

Set PLC address in HMI screen

  1. Place the objects to HMI screen;
  2. Double-click the object to open the setting window;
  3. Click “Edit” to open the address setting windows;
  4. Connection: select the serial port in HMI;
  5. Address type: All the PLC address types will be display in this list, such as M;
  6. Address No.: Please input the number of this address, such as 0;

image-20220819093729-6.jpeg

HMI Compilation Download

image-20220902171247-1.png

Communication cable

In order to ensure the stability of communication, please use the twisted-pair communication cable with good grounding. The following figure shows the pin out definition.

image-20220819093729-7.png

HMI communication PLC use Modbus 

PLC settings

Download PLC Software

Please visit below link to get the latest version PLC Editor for HMI programming

Start a new PLC project

Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list.

image-20220819101447-3.jpeg

Add a new instruction 

Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol.

image-20220819105530-1.png

You could also select the ladder symbol from the menu bar directly.

image-20220819093729-12.png

Add comment to PLC program

image-20220819105630-3.png

Add the statement to PLC program

Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit.

image-20220819105644-4.png

Compile 

You need to compile the PLC program before downloading or running Off-line simulator. The background color will be changed from purple to white when there is no error.

image-20220819093729-15.png

Download setting 

Click on “Transfer Setup” to select download mode.

image-20220820150853-1.png Download PLC program to PLC

Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK”

image-20220819093729-17.png

Upload PLC program from PLC

Read the PLC program from PLC to computer.

image-20220819093729-18.png

Device monitor

Monitor the value of certain address in PLC, double click “Current value” to change the value in this address.

image-20220819093730-19.png

Online monitor

Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd.

image-20220819093730-20.png

Monitor edit

In this mode, you could edit the PLC program during PLC is running.  

image-20220819105928-9.png

LX5V Series

This example introduces the establishment of serial port communication between Wecon HMI and LX5V, including three parts: PLC software configuration, HMI software configuration, and hardware wiring.

Software configuration of PLC

PLC programming software

image-20220810164710-1.png

New PLC project

Click "New Project" and select the PLC model.

image-20220810172412-1.png

HMI software configuration

HMI programming software

image-20220810171237-4.png

New HMI project

Click New Project and select the HMI model.

image-20220810172010-5.png

Set communication port parameters

Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port.

  • Baud rate:115200
  • Data bit:8
  • Stop bit:1
  • Parity:No verification

image-20220811104012-1.png

hardware connection

Hardware wiring diagram

This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows:

image-20220811103005-4.png

image-20220811103227-7.png

The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC.

LX5V-N Ethernet

 This example introduces the establishment of Ethernet communication between Wecon HMI and LX5V, including three parts: PLC software configuration, HMI software configuration, and hardware wiring.

Software configuration of PLC

PLC programming software

image-20220810164710-1.png

New PLC project

Click New Project and select the PLC model.

image-20220811115454-1.png

Set Ethernet port parameters

Follow the steps below to configure Ethernet parameters

  • PLC IP address:192.168.39.200
  • default gateway:192.168.39.1
  • subnet mask:255.255.255.0

image-20220811140530-2.png

Registers list

image-20220811102219-3.png

HMI software configuration

HMI programming software

image-20220810171237-4.png

New HMI project

Click New Project and select the HMI model.

image-20220810172010-5.png

Set communication port parameters

Click the project setting button on the left to configure the IP address of the HMI machine to ensure that the HMI and PLC IP remain in a local area network.

  • HMI IP address:192.168.39.201
  • Default gateway:192.168.39.1
  • Subnet mask:255.255.255.0

image-20220811170753-2.png

Next, click Communication Settings to configure the IP of the HMI communication object.

image-20220811163047-1.png

Hardware connection

This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows:

image-20220811170248-1.png

The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC.

LX6V Ethernet

HMI Setting

ItemsSettings
ProtocolWECON LX6V EtherNet/IP
ConnectionEthernet
Port No.33818
Device No.1
HMI No.0

Support Variable Type

Data TypePIStudio Data Format
BOOLBit
BYTE16-bit Unsigned/Binary/BCD/Hex
WORD16-bit Unsigned/Binary/BCD/Hex
DWORD32-bit Unsigned/Binary/BCD/Hex 
LWORD64-bit Signed/Binary/BCD/Hex
SINT16-bit Signed/Binary/BCD/Hex
USINT16-bit Unsigned/Binary/BCD/Hex
INT16-bit Signed/Binary/BCD/Hex
UINT16-bit Unsigned/Binary/BCD/Hex
DINT32-bit Signed/Binary/BCD/Hex
UDINT32-bit Unsigned/Binary/BCD/Hex
LINT64-bit Signed/Binary/BCD/Hex
REAL32-bit Float
LREAL64-bit Float

PLC Setting

PLC programmer software

1726822663840-435.png

Create and Export the Freetags

[Program]→[Global variable]→[GVL]→Create the Freetags you need,notice the Category and Type of data

Note: Only global variables can be exported normally

图片2.png

[File]→[Export label]

图片3.png

Set the Name and Type→[Save]→[OK]

图片4.png

HMI Setting 

Tags import

[Labels manage]→[Import Tags From File]→Choose the .CSV file you need→[Open]→[Save]→[OK]

图片1.png