Contact us for more information
X
*Company Name
*Name
*Email Address
Country
WhatsApp Number
*Detailed Description of Technical Question

11 PLC Protocol

Version 148.1 by Ben on 2022/08/30 15:58

Introduction

This chapter contains information on configuring the communication between device and HMI.

General Procedure

During configuring communication in PIStudio. The following components and conditions is indeed at least.

  • One PI HMI
  • One connected controller (for example PLC)
  • One Cable Wiring

12.PLC Protocol_html_4d84fc52012aaad6.png

User need to select controller protocol and set communication parameters in HMI project. Please note to set same communication parameter between controller and HMI project. After finishing project, user could download HMI project into HMI and connect HMI with controller by Cable Wiring. Thena simple automation system would be established.

Communication Settings

For example, controller is WECON LX3V series PLC and HMI is PI8070. Please set communication protocol, and set communication parameters in the [Communication].

Timeout

The follwoing are description for the timeout settings from [Communication].

Communication Timout settings.png

  • Wait Timeout(ms): The time HMI waits for a response from the PLC.
  • Receive Timeout(ms): The longest waiting interval between the HMI receiving two characters.
  • Retry Count: The number of retries when there is no response in the communication between HMI and PLC.
  • Retry Timeout(s): The PLC will not be accessed during the Retry Timeout period when there is no response in the communication between HMI and PLC.
  • Delay Time(ms): The speed at which the HMI communicates with the device.
  • Continuous Length: Default value 0 means the maximum length specified by each protocol. Addresses dealt by Maximum Span settings, its read length for single time, if the Continouous Length is 1, which means it will read/write the every register one by one. If the length of Maximum Span is greater than or equal to the Continuous Length, the continuous read/write will be performed in groups according to Continuous Length.
  • Maximum Span:  Set the interval for reading PLC addresses. If there exists two same register type addresses, their interval is less than the set value of Maximum Span, then they will be integrated into a continuous address, otherwise it will be divide into two independent addresses.

Operating Procedure

After creating the [Quick_Start] project,select the [Project]->[Communication].

12.PLC Protocol_html_39c0d342e4b1dd27.png

Click “Setting” to open protocol setting windows.

Select communication protocol, users could select serial port, Ethernet port, CAN port or USB.

  • Serial port:

12.PLC Protocol_html_bc7e88067e699a2b.png

  • Ethernet port:

12.PLC Protocol_html_c3865bcb998b6ded.png

  • CAN port (In COM1):

12.PLC Protocol_html_61c3c5fa99a24463.png

  • USB port:

About parameters for communication, PLC default communication parameters have been written to PIStudio, the user can adjust them according to the actual situation.

  • Serial port:

12.PLC Protocol_html_36a660d5c1a17a95.png

  • Ethernet port

Please note, during using Ethernet port, please set HMI IP in [Project Setting], the detailed, please refer to [Project Setting] chapter.

12.PLC Protocol_html_eebfc6b1337ea860.png

Click [OK] button to save settings and close the dialog;

Create communication with WECON PLC

LX3V Serial Protocol

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

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-11.png

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.pngDownload 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 Serial Protocol

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

Software configuration of PLC

1)PLC programming software

image-20220810164710-1.png

2)New PLC project

Click New Project and select the PLC model.

image-20220810172412-1.png

3)Set Serial port parameters

Follow the steps below to configure Serial port parameters

Baud rate:115200

Data bit:8

Stop bit:1

Parity:No verification

image-20220810165759-3.png

4)Registers list

image-20220811102219-3.png

HMI software configuration

1)HMI programming software

 image-20220810171237-4.png

2)New HMI project

Click New Project and select the HMI model.

image-20220810172010-5.png

3)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

1)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 protocol

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

Software configuration of PLC

1)PLC programming software

image-20220810164710-1.png

2)New PLC project

Click New Project and select the PLC model.

image-20220811115454-1.png

3)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

4)Registers list

image-20220811102219-3.png

HMI software configuration

1)HMI programming software

 image-20220810171237-4.png

2)New HMI project

Click New Project and select the HMI model.

image-20220810172010-5.png

3)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

1)Hardware wiring diagram

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.

Create communication with Rockwell PLC

MicroLogix Protocol

MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5

HMI Settings

ItemSettingsNote
ProtocolAllen-Bradlley MicroLogix 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityNone 
Stop bit1 
PLC station No.1 

Address List

TypeDevice registersFormatRangeNote
BitII d.d0.0~255.15 
OO d.d0.0~255.15 
BB nnhh.dd0.0~ffff.15nn: block number (hex)
SS d.d0.0~255.15 
NN nnhh.dd0.0~ffff.15nn: block number (hex)
WordSS d0~255 
TSTS nnhh0~ffffnn: block number (hex)
TPTP nnhh0~ffff
CSCS nnhh0~ffff
CPCP nnhh0~ffff
NN nnhh0~ffff
CC nnhh0~ffff
TT nnhh0~ffff
RR nnhh0~ffff

Cable Wiring

12.PLC Protocol_html_58205bdf82c06d4.png

CompactLogix FreeTag Ethernet protocol

Allen-Brandly CompactLogix

HMI Settings

ItemsSettingsNote
ProtocolAllen-Brandley FreeTag Ethernet/IP (CompactLogix) 
ConnectionEthernet 
Port No.44818 

PLC Setting

Create new tags

12.PLC Protocol_html_a748a27dcf7f1124.png

Export tags to CSV file. ([Tools] » [Export] » [Tags and Logic Comments])

12.PLC Protocol_html_151379170bb8ff3e.png

Import labels, please open [Communication] window and click [Import label];

Select csv file, all tags will be displayed as belows;

12.PLC Protocol_html_af192e54dee96f38.png

✎Note:

Because in different region, the separation symbol is different, we suggest you check this before you want to import your tags. To open csv file as text format.

12.PLC Protocol_html_33df1d63ebe53726.png

The directory of changing system settings: [Control Panel] -> [Date, Time, Language,and Regional Options] -> [Change the format of numbers, dates, and times]->[Customize]-> [List separator]. Please select [,] and export CSV file after setting.

Communication settings in HMI

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_27870d373581892e.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

MicroLogix 1200  protocol

The operational address is determined by the connection of Allen-Bradley PLC to HMI. For extension modules or other special conditions, refer to allen-Bradley PLC instruction manual. The following is an example of allen-bradley MicroLogix1200.

  • Bit address I: The address ranges from 0.0 to 255.15. The value of the data before the decimal point ranges from 0 to 255 (decimal). The value from 0 to 15 after the decimal point is the sub address (decimal).
  • Bit address B: The address ranges from 000.0 to fff.15. The first f from left to right represents the block number (hexadecimal); The second and third f from left to right represent the word address (hexadecimal). The value 0 to 15 after the decimal point reprensents the sub address (decimal).
  • Word address S: The word address ranges from 0 to 255 (decimal).
  • Word address TS: The address ranges from 000.0 to ffff. The first and second f from left to right represents the block number (hexadecimal); The third and fourth f from left to right represent the word address (hexadecimal). 

✎Note: Register address TP, CS, CP, N, F and TS address edit are same. D indicates decimal, and F indicates hexadecimal. Different PLC models may support different registers. See the following table.

PLC bit address typeAddress formatAddress range
Idd.ddI 0.0 ~ 255.15
Odd.ddO 0.0 ~ 255.15
Bfff.ddB 000.0 ~ fff.15
Sdd.ddS 0.0 ~ 255.15
Nffff.ddN 000.0 ~ fff.15
PLC word address typeAddress formatAddress range
SdddS0 ~ 255
TSffffTS0 ~ FFFF
TPffffTP0 ~ FFFF
CSffffCS0 ~ FFFF
CPffffCP0 ~ FFFF
NffffN0 ~ FFFF
FffffF0 ~ FFFF

Create communication with Siemens PLC

S7-200 Smart Ethernet Protocol

Supported Series: Siemens S7-200 SMART Series Ethernet Module.

Website: http://www.siemens.com/entry/cc/en/

HMI Setting

ItemsSettingsNote
ProtocolSimens S7-200 Smart Ethernet 
ConnectionEthernet 
Port No.102 
PLC station No.2 

Address List

TypeDevice registerHMI registerFormatRangeNote
BitIII ddddd.o0.0~99999.7 
QQQ ddddd.o0.0~99999.7 
VVWbitVWbit ddddd.o0.0~99999.7 
VVV ddddd.o0.0~99999.7 
MMM ddddd.o0.0~99999.7 
SMSMddddd.o0.0~99999.7 
SSddddd.o0.0~99999.7Read only
TTddddd0~99999Timer state, read only
CCddddd0~99999Counter state, read only
WordIIWIW ddddd0~99999 
QQWQW ddddd0~99999 
AIAIWAIW ddddd0~99999 
AQVBVB ddddd0~99999 
VVWVW ddddd0~99998

VW0=VB (0~1)

VW2=VB (2~3)

Address value is a multiple of 2

VVDVD ddddd0~99998

VD0=VB (0~3)

VD2=VB (4~7)

Address value is a multiple of 4

MMBMB ddddd0~99999 
MMWMW ddddd0~99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MMDMD ddddd0~99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

TTWTW ddddd0~99999Value of timer
CCWCW ddddd0~99999Value of counter
WSWSW ddddd0~99999 

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_70b0c4c2ee21b10d.png

  • PLC IP Address: PLC IP
  • PLC pot No.: 102(fixed)
  • Network:TCP_Client_2N(fixed)

12.PLC Protocol_html_5891afd92901b7ad.png

  • Wait timeout: depend on actual network situation (more than 1500 ms)

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

S7-300 Ethernet Protocol

Supported Series: Siemens S7-300 series PLC

HMI Setting

ItemsSettingsNote
ProtocolSimens S7-300 Ethernet 
ConnectionEthernet 
Port No.102 
PLC station No.2Need to be same as the PLC setting

Address List

TypeDevice registerHMI registerFormatRangeNote
BitIII ddddd.o0.0~99999.7 
QQQ ddddd.o0.0~99999.7 
MMM ddddd.o0.0~99999.7 
DB0.DB~DB99.DBDBxDBDDBxDB nndddd.o0.0~99999999.7

nn: block number;

dddd: address;

WordIIWIW ddddd0~99999 
QQWQW ddddd0~99999 
MMBMB ddddd0~99999 
MWMW ddddd0~99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MDMD ddddd0~99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

DB0.DB~DB99.DBDBxDBBDBxDBB nndddd0~99999999

nn: block number;

dddd: address

DBxDBWDBxDBW nndddd0~99999999
DBxDBDDBxDBD nndddd0~99999999

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_910b1a0aa9e2201c.png

  • PLC IP Address: PLC IP
  • PLC pot No.: 102(fixed)
  • Network:TCP_Client_2N(fixed)

12.PLC Protocol_html_5891afd92901b7ad.png

  • Wait timeout: depend on actual network situation (more than 1500 ms)

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

S7-1200 Ethernet Protocol

Supported Series: Siemens S7-1200

HMI Setting

ItemsSettingsNote
ProtocolSiemens S7-1200 
ConnectionEthernet 
Port No.102 
PLC station No.2 

Address List

TypeDevice registerHMI registerFormatRangeNote
BitIIM d.o

d:0--9999

o:0-7

 
QQQ d.o

d:0--9999

o:0-7

 
MMM d.o

d:0--9999

o:0-7

 
DB0.DB-DB99.DBDBxDBDBxDBnndddd.o

nn:0-9999,

dddd:0-9999,

o:0-7

nn:DB No.

dddd:address value

o: digit address

WordMMBMB dd:0-99999 
MMWMW dd:0-99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MMDMD dd:0-99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

IIWIW dd:0-99999 
QQWQW dd:0-99999 
DB0.DB-DB99.DBDBxDBBDBxDBBnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

DB0.DB-DB99.DBDBxDBWDBxDBWnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 2

DB0.DB-DB99.DBDBxDBDDBxDBDnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 4

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_f7b3eb9abda33833.png

✎Note:

  • The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
  • HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.

PLC Settings

Add BD

  • Please uncheck [Symbolic access only] option;

12.PLC Protocol_html_643144c591994418.png

Address settings, using BD2 as example.

  • DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.
  • 2 represent DB block number
  • xxxx represent address

Such as:

  • DBxDBB20000 = DB2.DBB0
  • DBxDBW20004 = DB2.DBW4

12.PLC Protocol_html_87ceaea84d552e62.png

How to connect with S7-1200 Firmware V4.0

PLC configuration

  • Double click [device configuration] in Siemens via software
  • Double click [protection] to enter protection configuration screen

12.PLC Protocol_html_9779940d38da8e07.png

  • Check [Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]

12.PLC Protocol_html_d2c667b02f9720b1.png

DB settings

  • Right click [DB], select [properties]
  • Uncheck [optimized block access]

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

S7-XXX Ethernet Protocol

Supported Series: Siemens S7-400, S7-1200 and S7-1500

HMI Setting

ItemsSettingsNote
ProtocolSiemens S7-XXX 
ConnectionEthernet 
Port No.102 
Device No.Slot (Default 1 for S7-1500/ 2 for S7-1200/ 3 for S7-400) 
HMI No.Rack (Default as 0) 

Slot from TIA Portal is equal to Device No. of PIStudio

Rack from TIA Portal is equal to HMI No. of PIStudio

S7-XXXCommunication Settings.png

S7-XXXCommunication SettingsPI.png

Address List

TypeDevice registerHMI registerFormatRangeNote
BitIIM d.o

d:0--9999

o:0-7

 
QQQ d.o

d:0--9999

o:0-7

 
MMM d.o

d:0--9999

o:0-7

 
DB0.DB-DB99.DBDBxDBDBxDBnndddd.o

nn:0-9999,

dddd:0-9999,

o:0-7

nn:DB No.

dddd:address value

o: digit address

WordMMBMB dd:0-99999 
MMWMW dd:0-99999

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MMDMD dd:0-99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

IIWIW dd:0-99999 
QQWQW dd:0-99999 
DB0.DB-DB99.DBDBxDBBDBxDBBnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

DB0.DB-DB99.DBDBxDBWDBxDBWnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 2

DB0.DB-DB99.DBDBxDBDDBxDBDnndddd

nn:0-9999

dddd:0-9999

nn:DB No.

dddd:address value

Address value is a multiple of 4

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_f7b3eb9abda33833.png

✎Note:

  • The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.
  • HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.

Cable Wiring

12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png

LOGO Ethernet Protocol

Supported Series: Siemens Logo 0BA0 series

HMI Settings

ItemsSettingsNote
ProtocolSiemens LOGO 
ConnectionEthernet 
Port No.102 
PLC station No.2 

Address List

NumberAddress TypeData TypeRangeDB AddressPLC Address
1RTCWord1-7DB1.DBX984.00x001ec0
2VBByte0-1469DB1.DBX0.00x000000
3VDDouble Word0-1466DB1.DBX0.00x000000
4VWWord0-1468DB1.DBX0.00x000000
5NAQWord1-32DB1.DBX1406.00x002bf0
6NAIWord1-64DB1.DBX1262.00x002770
7AMWord1-64DB1.DBX1118.00x0022f0
8AQWord1-16DB1.DBX1072.00x002180
9AIWord1-16DB1.DBX1032.00x002040
10IBit1-64DB1.DBX1024.00x002000
11QBit1-64DB1.DBX1064.00x002140
12MBit1-112DB1.DBX1104.00x002280
13NIBit1-128DB1.DBX1246.00x0026f0
14NQBit1-128DB1.DBX1390.00x002b70
15VBit0-14697DB1.DBX0.00x000000

PLC Settings in LOGO Software:

Click [Tools]--[Ethernet Connections],shown as below.

12.PLC Protocol_html_8b9d2322edf89519.png

Set Ethernet connection parameter. IP, Subnet Mask, shown as below.

12.PLC Protocol_html_6c4dd041b26cd8a1.png

TSAP set:The value set by local TSAP is the remote TSAP set in HMI. PLC's remote TSAP is the opposite,shown as below.

12.PLC Protocol_html_7af2611d3790a77d.png

Download Project: Click "Address book" to add the IP address to be downloaded (fi."Detect" to check whether the IP address can be detected. Then click “ok”, and the system will prompt that PLC will be "STOP" mode. Click “YES” to start download.

12.PLC Protocol_html_3243e4cd600595cc.png

12.PLC Protocol_html_cb1d92e2cc91a8db.png

HMI Communication Settings

Set PLC IP in [Device IP] settings;

SiemensLOGODeviceIP.png

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_95917a3d92068467.png

TSAP setting

  • Regarding the setting of PLC TSAP, HMI provides system special address for setting, it is recommended to run in HMI script initialization, write PLC TSAP to corresponding system special register.
  • HSW10118 = local TSAP of HMI, this is remote TSAP of PLC.
  • HSW10119 = Remote TSAP of HMI, this is local TSAP of PLC.

✎Note:

  • The data of TSAP is hexadecimal format. For example: the remote TSAP configured in the PLC is set to 20.00, then HSW10118 should be set to 0x2000, that is, HSW10118 = 8192.

12.PLC Protocol_html_5c6374b21f46e01e.png

  • AI word address and Ibit address are read-only and cannot be written on HMI.
  • VW address should be even number.such as VW0, VW2, VW4...
  • VD address it takes two VW addresses.such as VD0,VD4,VD8...
  • Written value of RTC cannot exceed 255.

Cable Wiring

12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png

Create communication with Mitsubishi PLC

FX1S, 1N, 2N Series Protocol

Supported Series: Mitsubishi FX1S, FX1N, FX2N series

HMI Settings

ItemSettingsNote
ProtocolMitsubishi FX1S/FX1N/FX2N 
ConnectionRS422/RS485/RS232 
Baud rate9600~115200 
Data bit7/8 
ParityEVEN/Odd/None 
Stop bit1/2 
PLC station No.1~255 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXo0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
SMSMSM d8000~9999 
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_d4012bdeb4ce4aae.png

12.PLC Protocol_html_4bf57ad8d44eacc4.png

  • RS422

12.PLC Protocol_html_f8a6bebc5792960d.png

✎Note: COM3 only available in PI8000/PI9000 series.

FX5U Ethernet Protocol

Mitsubishi FX5U series PLC

HMI Settings

ItemsSettingsNote
ProtocolMitsubishi FX5U 
ConnectionEthernet 
Port No.5002Must be the same as the PLC setting
PLC station No.0 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
BBB h0~7FFF 
FFF d0~32767 
SBSBSB h0~7FFF 
TSTSTS d0~1023 
TCTCTC d0~1023 
STSSTSSTS d0~1023 
STCSTCSTS d0~1023 
CSCSCS d0~1023 
CCCCCC d0~1023 
SMSMSM d0~9999 
LLL d0~32767 
SSS d0~4095 
WordWWW h0~3FF 
TNTNTN d0~1023 
STNSTNSTN d0~1023 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FFF 
ZZZ d0~23 
DDD d0~7999 
SDSDSD d0~11999 

PLC Settings (GX Works 3)

Find the [Ethernet port] in the navigation area.

12.PLC Protocol_html_8e8f85ace087346c.png

Select [Own Node Settings] in the [Setting Item List];

Set [IP Address], [Subnet Mask], [Default Gateway];

Click [Detailed Settings] into [Ethernet Configuration (Built-in Ethernet Port)] windows;

12.PLC Protocol_html_5d98495052c8c10e.png

Select [SLMP Connection Module] and add into host station as below picture shows;

Set Port number as 5002 (this is necessary settings);

Click [Close with Reflecting the Setting] to save and close window;

12.PLC Protocol_html_14b489fdc6c6589d.png

Click [Apply] to completed Etherenet settings;

Switch to the [On line data operation] interface as below, check the item and click [Execute] to download.

12.PLC Protocol_html_c93025a968a8a9e7.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

FX5U Serial Port Protocol

Mitsubishi FX5U series PLC

HMI Settings

ItemSettingsNote
ProtocolMitsubishi FX5U 
ConnectionRS422/RS485 
Baud rate9600 
Data bit7 
ParityOdd 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
BBB h0~7FFF 
FFF d0~32767 
SBSBSB h0~7FFF 
TSTSTS d0~1023 
TCTCTC d0~1023 
STSSTSSTS d0~1023 
STCSTCSTS d0~1023 
CSCSCS d0~1023 
CCCCCC d0~1023 
SMSMSM d0~9999 
LLL d0~32767 
SSS d0~4095 
WordWWW h0~3FF 
TNTNTN d0~1023 
STNSTNSTN d0~1023 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FFF 
ZZZ d0~23 
DDD d0~7999 
SDSDSD d0~11999 

PLC Settings (GX Works 3)

Create a blank FX5U project

Find the 485 serial port module in the system navigation bar and double click to enter the settings.

12.PLC Protocol_html_5c9cb13fac1e6c93.png

Select protocol in the setting item, and set parameters.

12.PLC Protocol_html_de942589ca070228.png

Set station number, and [Message Pattern] (Pattern 1 or Pattern 4)

12.PLC Protocol_html_387ec7d00b5feb59.png

Click the [Apply] button to finish the setting.

Click download and select the items as below, then click [execute] to download the configuration to PLC.

12.PLC Protocol_html_cdef1c5ec8cc2105.png

 As soon as download is completed, connect PLC with serial port, then configure it in the [Specify Connection Destination Connection].

Done.

Cable Wiring

  • RS485

12.PLC Protocol_html_d4012bdeb4ce4aae.png

12.PLC Protocol_html_4bf57ad8d44eacc4.png

  • RS422

12.PLC Protocol_html_f8a6bebc5792960d.png

✎Note: COM3 only available in PI8000/PI9000 series.

L02 MELSEC (Ethernet) Protocol

Mitsubishi Q series CPU built-in Ethernet port.

HMI Settings

ItemsSettingsNote
ProtocolMIT L02 CPU MELSEC 
ConnectionEthernet 
Port No.1025Must be the same as the PLC setting
PLC station No.0Must be the same as the PLC setting

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX h0~FFFF 
BitYYY h0~FFFF 
BitMMM d0~9999 
BitLLL d0~9999 
BitFFF d0~9999 
BitBBB h0~FFFF 
BitVVV d0~2047 
BitTCTCTC d0~9999 
BitSSSSSS d0~9999 
BitSCSCSC d0~9999 
BitCSCSCS d0~9999 
BitCCCCCC d0~9999 
BitSBSBSB h0~FFFF 
BitSMSMSM d0~2047 
BitSTSSTSSTS d0~1023 
BitSSS d0~9999 
BitDXDXDX h0~FFFF 
BitDYDYDY h0~FFFF 
BitTSTSTS d0~9999 
BitDbitDbitDbit d.d0~99999.0~15 
WordWWW h0~FFFF 
WordTNTNTN d0~99999 
WordSNSNSN d0~99999 
WordCNCNCN d0~99999 
WordRRR d0~99999 
WordSWSWSW h0~FFFF 
WordZZZ d0~99999 
WordZRZRZR h0~FFFF 
WordDDD d0~99999 

Communication Settings

Enable HMI Ethernet in [Project Settings];

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_38189fae42f6caa7.png

PLC Settings (GX Works2 )

Create a project

Set PLC IP, subnet mask and gateway;

Select [Binary Code] as communication data code;

12.PLC Protocol_html_776e17505f3fc6c0.png

Set PLC port number, for example 1025

12.PLC Protocol_html_8d0d1a22d388f70b.png

Save settings;

Download project into PLC device;

Restart PLC device;

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

QJ71E71 MELSEC Protocol

Mitsubishi QJ71E71 Ethernet communication module;

HMI Settings

ItemsSettingsNote
ProtocolMIT QJ71E71 MELSEC 
ConnectionEthernet 
Port No.1025Must be the same as the PLC setting
PLC station No.0Must be the same as the PLC setting

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX h0~1FFF 
YYY h0~1FFF 
MMM d0~99999 
LLL d0~8191 
FFF d0~2047 
BBB h0~1FFF 
VVV d0~2047 
TSTSTS d0~2047 
TCTCTC d0~2047 
SSSSSS d0~2047 
SCSCSC d0~2047 
CSCSCS d0~1023 
CCCCCC d0~1023 
SBSBSB h0~7FF 
SSS d0~8191 
DXDXDX h0~1FFF 
DYDYDY h0~1FFF 
SMSMSM d8000~9999 
WordSDSDSD d0~2047 
DDD d0~12287 
WWW h0~1FFF 
TNTNTN d0~2047 
SNSNSN d0~2047 
CNCNCN d0~1023 
RRR d0~32767 
SWSWSW h0~7FF 
ZZZ d0~15 
ZRZRZR h0~FE7FF 

HMI Communication Settings

1) Enable HMI Ethernet in [Project Settings];

2) Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_2d566cb5ffb2618c.png

PLC Settings(GX Works2)

  • Click [Ethernet/CC IE/MELSECNET];
  • Please select [Ethernet] as network type;
  • Set station I/O number according to situation (For example, 0000 means that the module is connected to PLC CPU in first order);
  • Select [Online] as Mode;
  • Click [Operation setting] to set IP;
  • Select [Binary Code] as [Communication Data Code];
  • Set protocol: TCP;
  • Set [unpassive] in [Open system];
  • Set [receive] in [Fixed buffer];
  • Set [procedure Exist] in [Fixed buffer communication];
  • Disable [Pairing open];
  • Set [No confirm] in [Existence confirmation];
  • Host station port number: 1025;
  • Save settings;
  • Download project into PLC and restart it

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

Create communication with Delta PLC

DVP serial protocol

Supported Series: Delta DVP EH/ES/SS/EX/EH2/SV/SA/SC/SX Controller

1)HMI Settings

ItemSettingsNote
ProtocolDELTA DVP Series 
ConnectionRS485 
Baud rate9600 
Data bit7 
ParityEven 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~303237 
BitYYY d0~303237 
BitMMM d0~99999 
BitTTT d0~99999 
BitCCT d0~99999 
BitSST d0~99999 
WordDDD d0~99999 
WordTTT d0~99999 
WordCCC d0~99999 

3)Configure the communication protocol

image-20220829152327-6.png

image-20220829152016-3.png

4)Cable Wiring

image-20220829152610-7.png

image-20220829152102-5.png

DVP Ethernet Protocol

Supported Series: Delta DVP ES2/EX2/SS2/SA2/SX2/SE Controller

1)HMI Settings

ItemsSettingsNote
ProtocolDELTA DVP Modbus TCP 
ConnectionEthernet 
Port No.201Must be the same as the PLC setting
PLC station No.0Must be the same as the PLC setting

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~377 
BitYYY o0~377 
BitM0M0M0 d0~1535 
BitM1M1M1 d1536~4095 
BitTTT d0~255 
BitCCC d0~255 
BitSSS d0~1023 
WordD0D0D0 d0~4095 
WordD1D1D1 d4096~11999

 

WordTTT d0~255 
WordCCC d0~199

 

3)Configure the communication protocol

image-20220829155452-1.png

image-20220829162116-2.png

4)Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

AS serial protocol

1)HMI Settings

ItemSettingsNote
ProtocolDELTA AS300 MODBUS RTU 
ConnectionRS485 
Baud rate9600 
Data bit8 
ParityNONE 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~63 
BitYYY d0~63 
BitDDD d0~29999 
BitMMM d0~8191 
BitSMSMSM d0~4095 
BitSSS h0~2047 
BitTTT d0~511 
BitCCC d0~511 
BitHCHCHC d0~255 
WordXXX h0~63 
WordYYY d0~63 
WordSRSRSR d0~2047 
WordDDD d0~29999 
WordTTT d0~511 
WordCCC h0~511 
WordEEE d0~9 

3)Configure the communication protocol

image-20220830094600-1.png

image-20220830094657-2.png

4)Cable Wiring

Figure

image-20220830141138-1.png

Pin Definition Diagram

image-20220830095131-1.png

AS Ethernet Protocol

1)HMI Settings

ItemsSettingsNote
ProtocolDELTA AS300 MODBUS TCP 
ConnectionEthernet 
Port No.502 
Device No.1 
HMI No.0 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~63 
BitYYY d0~63 
BitDDD d0~29999 
BitMMM d0~8191 
BitSMSMSM d0~4095 
BitSSS h0~2047 
BitTTT d0~511 
BitCCC d0~511 
BitHCHCHC d0~255 
WordXXX h0~63 
WordYYY d0~63 
WordSRSRSR d0~2047 
WordDDD d0~29999 
WordTTT d0~511 
WordCCC h0~511 
WordEEE d0~9 

3)Configure the communication protocol

image-20220830140537-1.png

image-20220830140629-2.png

4)Cable Wiring

Figure

image-20220830094929-1.png

Pin Definition Diagram

12.PLC Protocol_html_2297240b57346b2a.png

Create communication with Omron PLC

CJ TCP FINS Ethemet  Protocol

Supported device:CJ series

1)HMI Settings

ItemsSettingsNote
ProtocolOMRON CJ TCP FINS Ethemet 
ConnectionEthernet 
Port No.9600 
Device No.0 
HMI No.0

 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitCIOCIOCIO d0~99999 
BitWWW d0~99999 
BitDDD d0~99999 
BitHHH d0~99999 
BitAAA d0~99999 
BitTTT h0~99999 
BitCFCFCF d0~99999 
BitFFFFFF d0~99999 
BitCCC d0~99999 
BitEM0EM0EM0 d0~99999 
BitEM1EM1EM1 d0~99999 
BitEM2EM2EM2 d0~99999 
BitEM3EM3EM3 d0~99999 
BitEM4EM4EM4 d0~99999 
BitEM5EM5EM5 h0~99999 
BitEM6EM6EM6 d0~99999 
BitEM7EM7EM7 d0~99999 
BitEM8EM8EM8 d0~99999 
BitEM9EM9EM9 d0~99999 
BitEMAEMAEMA d0~99999 
BitEMBEMBEMB d0~99999 
BitEMCEMCEMC d0~99999 
BitLampLampLamp d0~0 
WordCIOCIOCIO d0~99999 
WordWWW d0~99999 
WordDDD d0~99999 
WordHHH d0~99999 
WordAAA d0~99999 
WordTTT h0~99999 
WordCFCFCF d0~99999 
WordFFFFFF d0~99999 
WordCCC d0~99999 
WordEM0EM0EM0 d0~99999 
WordEM1EM1EM1 d0~99999 
WordEM2EM2EM2 d0~99999 
WordEM3EM3EM3 d0~99999 
WordEM4EM4EM4 d0~99999 
WordEM5EM5EM5 h0~99999 
WordEM6EM6EM6 d0~99999 
WordEM7EM7EM7 d0~99999 
WordEM8EM8EM8 d0~99999 
WordEM9EM9EM9 d0~99999 
WordEMAEMAEMA d0~99999 
WordEMBEMBEMB d0~99999 
WordEMCEMCEMC d0~99999 
WordIRIRIR d0~99999 
WordDRDRDR d0~99999 

3)Configure the communication protocol

image-20220830143348-1.png

image-20220830143511-2.png

4)Cable Wiring

Pin Definition Diagram

12.PLC Protocol_html_2297240b57346b2a.png

CP1E/CP1H serial protocol

Supported device: OMRON CS1(CP1E/CP1H)

1)HMI Settings

2)Address List

3)Configure the communication protocol

4)Cable Wiring

EC55 Protocol

Supported device: EC55 temperature instrument

1)HMI Settings

ItemsSettingsNote
ProtocolOmron EC55 
ConnectionRS485 (9600, 2, 7, EVEN) 
Port No.None 
PLC station No.0 

2)Address List

TypeRegisterDevice rangeHMI rangeFunction
Double wordC00-13 (Hex)0-19Set read only parameter for area 0
C10-4D(Hex)0-77Set Read/Write parameter for area 0
C30-CD(Hex)0-205Set Read/Write parameter for area 1
Word800-13(Hex)0-19Set read only parameter in area 0
810-4D(Hex)0-77Set Read/Write parameter in area 0
830-CD(Hex)0-205Set Read/Write parameter in area 1
CP-0-6Read controller intrinsic property
CS-0-2Read controller states
CA-0-17Action command

3)Device Settings

Omron E5CC PLC configuration

After entering the Communication Settings menu, please set the parameters to the default values for the following table. Press the cycle key of the instrument to enter the next setting.

12.PLC Protocol_html_3d95e093792ba98a.png

According to PLC configuration and communication port configuration information of the HMI, provide the corresponding steps and configuration screenshots. This configuration needs to communicate properly with the above PLC configuration. The project settings are as follows

12.PLC Protocol_html_be583aa69dd6cf4c.png

✎Note: The communication settings for HMI should be consistent with this setting.

Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note:

  • COM3 only available in PI8000/PI9000 series.
  • CA address could not support continuous writing function;
  • Because of CP address intrinsic property: read control intrinsic property, so please place the character input part in use. Set address with CP0 and character length 10, used to display controller type. And place a number input part, set address with CP5 (cache size). Do not place other CP type address without CP0 in screen, otherwise CP type address is invalid
  • When set value into read & write address, it is necessary to switch the temperature instrument meter to the corresponding interface according to the menu of the instrument where the address locates, so that the value could be written, otherwise, the value could not be written; When the communication write setting of the instrument is turned off, the writing function is invalid. Writing function could be opened by using the 00 address of the CA register, which write 01 value.
  • When continuous writing of a value to a read-write address, please make sure all continuous writing address could be written. Otherwise, if one of these addresses could not be written, then all continuous writing commands will fail.
  • Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
  • When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
  • Please set the communication delay time of 10ms in setting, to avoid that the instrument may not be able to communicate in a short time due to too fast data access and too much connection requests.
  • 12.PLC Protocol_html_d428cad280fdefb3.pngBecause of the particularity of the instrument, it is necessary to write the value of the address in the menu interface corresponding to the address, and to enter the menu where the address locates, so that the value could be written.

EtherNet/IP NX series Protocol

Supported series: Omron NX/NJ series

HMI Setting

ItemsSettingsNote
ProtocolOmron NX Ethernet/IP 
ConnectionEthernet 
Port No.44818 
PLC station No.1 

Instruction

1) In Sysmac Studio, please select [Publish Only] for [Network Publish] when setting address tag.

2) When [Do not publish] is selected for a tag, different import methods may lead to different results. When import tags by [Get Tags from Device], the tag will be eliminated. If [Import tags] is selected, the tags will be imported, but the communication will not succeed.

12.PLC Protocol_html_4156caf6f116c570.png

Export labels from Sysmac Studio

Launch Sysmac Studio, under Global Variables create the address labels, and thenselect [Tools] -> [Export Global Variables];

12.PLC Protocol_html_26f91dee66c723e9.png

Launch PIStudio, in [Communication] Settings add Omron NX Ethernet/IP protocol;

Click [Label manage];

12.PLC Protocol_html_cd38d2d0c5187f6b.png

Click [Import labels] and then select the file exported in step 1;

12.PLC Protocol_html_52bd5da678bef9b4.png

The Import Status field shows the result, click [OK] to finish importing address labels;

12.PLC Protocol_html_7f0465a589b98912.png

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_437cb087b36b5784.png

12.PLC Protocol_html_60ef71528a99abf5.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

Create communication with Xinje PLC

XC serial protocol

1)HMI Settings

ItemSettingsNote
ProtocolXINJE XC MODBUS 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitMMM d0~8511 
BitXXX o0~1747 
BitYYY o0~1747 
BitSSS d0~1023 
BitTTT d0~4095 
BitCCC d0~634 
WordDDD d0~8511 
WordTDTDTD d0~618 
WordCDCDCD d0~634 
WordFDFDFD d0~8511 

3)Configure the communication protocol

image-20220830154105-1.png

image-20220830154159-3.png

4)Cable Wiring

Figure

image-20220830155728-4.png

Pin Definition Diagram

image-20220830154131-2.png

XD serial protocol

1)HMI Settings

ItemSettingsNote
ProtocolXINJE XC MODBUS 
ConnectionRS232 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitMMM d0~8511 
BitXXX o0~1747 
BitYYY o0~1747 
BitSSS d0~1023 
BitTTT d0~4095 
BitCCC d0~634 
WordDDD d0~8511 
WordTDTDTD d0~618 
WordCDCDCD d0~634 
WordFDFDFD d0~8511 

3)Configure the communication protocol

4)Cable Wiring

Create communication with Inovance PLC

H3U serial protocol

1)HMI Settings

2)Address List

3)Configure the communication protocol

4)Cable Wiring

Create communication with Panasonic PLC

FP serial protocol

1)HMI Settings

2)Address List

3)Configure the communication protocol

4)Cable Wiring

Create communication with LS PLC

XBG serial protocol

1)HMI Settings

2)Address List

3)Configure the communication protocol

4)Cable Wiring

XGK FEnet Ethernet protocol

Supported Series: LS XGT series XGK CPU with XGL-EFMT Ethernet module

HMI Settings

ItemsSettingsNote
ProtocolLG XGK FEnet(Ethernet) 
ConnectionEthernet 
Port No.2004 

Address List

TypeRegisterRangeFormatNote
WordP0~2047P d 
M0~2047M d 
K0~2047K d 
F0~2047F d 
T0~2047T d 
C0~2047C d 
Z0~127Z d 
S0~127S d 
L0~11263L d 
N0~21503N d 
D0~32767D d 
R0~32767R d 
ZR0~65535ZR d 
UxDD0~6331UxDD nnddnn: 0~63, dd: 0~31

✎Note:

  • In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;
  • The [UxDD] register, defined in the PLC is Ux.dd, x represents the block, and dd represents 0-31 of each block. There are 64 blocks in the PLC;
  • All bit registers are in the form of bits in word, and the range is the same as the word register;

Communication settings in HMI

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_a2a19b5003ad4090.png

Cable Wiring

12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png

SHIMADEN

FP23

Supported series: SHIMADEN FP23 series

HMI Setting

ItemsSettingsNote
ProtocolSHIMADEN FP23 series 
ConnectionRS485 (9600, 1, 7, EVEN) 
Port No.None 
PLC station No.0 

Address List

Device addressHMI registerAddress rangeType
0040-0043(HEX)FP040100064-200067Read only
0100-010B(HEX)FP100100256-200267Read only
0110-0142(HEX)FP110100272-200322Read only
0182-0252(HEX)FP182100386-200594Write only
0280-0281(HEX)FP280100640-200641Read only
0300-030B(HEX)FP300100768-200779Read and write
0380-039F(HEX)FP380100896-200927Read and write
0400-04D7(HEX)FP400101024-201239Read and write
0500-05B0(HEX)FP500101280-201456Read and write
0600-0670(HEX)FP600101536-201814Read and write
0720-0738(HEX)FP720101824-201848Read and write
0800-083F(HEX)FP800102048-202111Read and write
0900-0952(HEX)FP900102304-202386Read and write
 Ctrl0-2 

✎Note:

  • The upper 2 bits of the address of the HMI register are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
  • The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in FP23;
  • The Ctrl register is used to store the control group number and BCC check mode.

Ctrl Register Description

  • The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
  • Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR , STX_ETX_CR LF and @_:_CR .
  • Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
  • Ctrl3 reserved

✎Note:

After reloading the HMI project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.

Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note: COM3 only available in PI8000/PI9000 series.

SR90

Supported series: SHIMADEN SR90 series

HMI Setting

ItemsSettingsNote
ProtocolSHIMADEN SR90 protocol 
ConnectionRS485 (1200, 1, 7, EVEN) 
Port No.None 
PLC station No.0 

Address List

Device addressHMI registerAddress rangeType
0040-0043 (HEX)SR040100064-100067Read only
0100-010A(HEX)SR0100100256-100266Read only
0182-018C(HEX)SR0182100386-100396Write only
0300-04FE(HEX)SR0300100768-101278Write/read
0500-050B(HEX)SR0500101280-101291Write/read
0590-0611(HEX)SR0590101424-101553Write/read
0701-0709(HEX)SR0701101793-101801Write/read
 Ctrl0-2--

✎Note:

  • The upper 2 bits of the address of HMIs are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
  • The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in SR90;
  • The Ctrl register is used to store the control group number and BCC check mode. See how to use it below;

Ctrl Register Description

  • The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
  • Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR , STX_ETX_CR LF and @_:_CR .
  • Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
  • Ctrl3 reserved

✎Note:

After reloading the HMI project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.

Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note: COM3 only available in PI8000/PI9000 series.

MR13 series(standard protocol)

Supported series: SHIMADEN MR13 series

HMI Setting

ItemsSettingsNote
ProtocolSHIMADEN standard protocol 
ConnectionRS485 (1200, 1, 7, EVEN) 
Port No.None 
PLC station No.0 

Address List

Device addressHMI registerAddress rangeType
0100-010B(HEX)MR100100256-300267Read only
0111-0126(HEX)MR111100273-300294Read only
0184-0192(HEX)MR184100388-300402Write only
0280-0282(HEX)MR280100640-300642Read only
0300-030B(HEX)MR300100768-300779Read/write
0314-0317(HEX)MR314100788-300791Read/write
031A(HEX)MR31A100794-300794Read/write
0320-0321(HEX)MR320100800-300801Read/write
0400-0504(HEX)MR400101024-301284Read/write
0506(HEX)MR506101286-301286Read/write
0510-0514(HEX)MR510101296-301300Read/write
0516-0524(HEX)MR516101302-301316Read/write
0526(HEX)MR526101318-301318Read/write
0580-08C3(HEX)MR580101408-302243Read/write
--Ctrl0-2--

✎Note:

  • The upper 2 bits of the address of the HMI register are taken as the sub address, and the real address is the last four bits (for example, if the address is 100256, then 10 is the sub address as 1, and 0256 is the real address);
  • The address range in the table is only divided by the start and end addresses, and some of the addresses in the range have no corresponding address in MR13;
  • The Ctrl register is used to store the control group number and BCC check mode.

Ctrl Register Description

  • The Ctrl register is a special register that does not communicate with the temperature controller. User needs to assign value in the screen according to the settings as in the temperature controller.
  • Ctrl0 indicates the setting of the control character, the valid values are 1, 2, 3 respectively, and the corresponding control group is: STX_ETX_CR, STX_ETX_CR LF and @_:_CR .
  • Ctrl1 indicates the BCC block check mode. The valid value range is 1-4. The corresponding check mode is: 1.ADD, 2.ADD_two's cmp, 3.XOR, 4.None;
  • Ctrl3 reserved

✎Note:

After reloading project or restarting the HMI, HMI will reset the value of ctrl0 and ctrl1 as 1, so user need to set these two values to make it the same as it in the temperature controller, then communication will be normal.

Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note: COM3 only available in PI8000/PI9000 series.

Create communication with MODBUS

MODBUS RTU Master

Supported Series: MODBUS RTU CONTROLLER

HMI works as MODBUS SLAVE connecting with MASTER

12.PLC Protocol_html_44425b313b0a6b96.png

12.PLC Protocol_html_b56b9da32c3caaa.png

12.PLC Protocol_html_67cd25458b9c72a6.png

HMI Settings

ItemsSettingsNote
ProtocolMODBUS RTU Master 
ConnectionRS485/RS232 
Baud rate2400~187500 
Data bit8 
ParityEven/ Odd/ None 
Stop bit1/2 
Station No.0~255 

Address List

TypeHMI addressMODBUS codeRange
BitHDX3000.0~HDX3499.1500~7999
WordHDW3500~HDW799940~4499

Cable Wiring

  • RS485

12.PLC Protocol_html_68dfb6d383f0edd9.png

12.PLC Protocol_html_cbeb90cb4faaa8bc.png

  • RS232

12.PLC Protocol_html_9030ba679545793b.png

✎Note: COM3 only available in PI8000/PI9000 series.

MODBUS RTU Slave (All function)/(All function OneBaseAddress)

Supported Series: MODBUS RTU CONTROLLER

HMI works as MODBUS MASTER connecting with SLAVE.

The addresses in [All function] start from 0, while the addresses in [All function OneBaseAddress] start from 1 (offset 1).

12.PLC Protocol_html_7236139c887defad.png

12.PLC Protocol_html_de80207f2b495c17.png

12.PLC Protocol_html_4e9e8eff81c7ff8b.png

HMI Settings

ItemsSettingsNote
ProtocolMODBUS RTU Slave (All function)/( All function OneBaseAddress) 
ConnectionRS485/RS232 
Baud rate2400~187500 
Data bit8 
ParityEven/ Odd/ None 
Stop bit1/2 
PLC station No.0~255 

Address List

TypeAddress TypeFunction code & Description
Word304 (read input register: read current binary value in one or more input registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
403 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W603 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W1603 (read holding register: read current binary value in one or more holding registers)
10 (write values to multiple addresses )
Bit001 (Read coil state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits, ie write continuously)
102 (Read the input state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W501 (Read coil state to obtain the current state of a set of logic coils)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W1501 (Read coil state to obtain the current state of a set of logic coils)
0F (Write multiple bits)

✎Note:

  • Modbus can also support getting bit from the word, which could access the address such as 100.1 and other formats.
  • The function codes sent out are the same as those that read and write words.

Station number for more than one slaves

If there are more than one slaves connected to HMI, please set slave station number during editing address, as below shows.

12.PLC Protocol_html_31f028c6d80be344.png

Cable Wiring

  • RS485

12.PLC Protocol_html_68dfb6d383f0edd9.png

12.PLC Protocol_html_cbeb90cb4faaa8bc.png

  • RS232

12.PLC Protocol_html_9030ba679545793b.png

✎Note: COM3 only available in PI8000/PI9000 series.

MODBUS TCP Slave (All function)

Supported series: MODBUS TCP controller

HMI works as MODBUS TCP MASTER connecting with TCP SLAVE

12.PLC Protocol_html_8877cb7f39c2b607.png

12.PLC Protocol_html_e7e1f06f127a9175.png

12.PLC Protocol_html_60bbfe5de79417a6.png

HMI Setting

ItemsSettingsNote
ProtocolMODBUS TCP Slave (All function) 
ConnectionEthernet 
Port No.502 
PLC station No.1 

Address List

TypeRegisterFunction code & Description
Word304 (read input register: read current binary value in one or more input registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
403 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W603 (read holding register: read current binary value in one or more holding registers)
06 (write single register: write a binary value to a holding register)
10 (write values to multiple addresses )
W1603 (read holding register: read current binary value in one or more holding registers)
10 (write values to multiple addresses )
Bit001 (Read coil state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits, ie write continuously)
102 (Read the input state)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W501 (Read coil state to obtain the current state of a set of logic coils)
05 (Force a single coil to force the on/off state of a logic coil)
0F (Write multiple bits)
W1501 (Read coil state to obtain the current state of a set of logic coils)
0F (Write multiple bits)

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_4bd3cc8348adecf8.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

Printer

TSPL label printer

Introduction

TSPL label printer protocol supports following models.

Setting Step

Select the protocol

  • Create a new project, select the TSPL label printer protocol as shown below.

12.PLC Protocol_html_a2bec264816230db.png

Set parameters

  • The connection between the TSPL label printer and the HMI is via the USB-A interface, no need to configure serial port parameters.

Printer register

RegisterSystemRangeFunction
TSPL_SPdecimal0 - 1Set the paper size
TSPL_PTdecimal0 - 1999Print text
TSPL_PQdecimal0 - 999Print QR code
TSPL_PBdecimal0 - 999Print barcode
TSPL_PRdecimal0 - 1Print offset
TSPL_PNdecimal0 - 0Trigger printing
TSPL_PSdecimal0 - 0Print status
  • Set paper size:
    • TSPL_SP0: width of paper, unit: mm.
    •  TSPL_SP1: height of paper, unit: mm.
  • Print text:
    • TSPL_PT can print up to 20 texts. TSPL_PT0-TSPL_PT99 is the first text; TSPL_PT100-TSPL_PT199 is the second text; … TSPL_PT1000-TSPL_PT1999 is the 20th text.
    • Detailed parameter settings of each text is shown as below table. For example, first text,TSPL_PT0-TSPL_PT99.
RegisterFunctionDescription
TSPL_PT0X coordinateUnit: dot
TSPL_PT1YcoordinateUnit: dot
TSPL_PT2Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PT3SizeRange: 0-3
TSPL_PT4 - TSPL_PT99QR code content(text content)Use character input device to configure

By analogy, we can know the text information configuration of the 2nd to 20th QR codes

Print QR code:

  • TSPL_PQ can print up to 10 QR codes. TSPL_PQ0-TSPL_PQ99 is the first QR code; TSPL_PQ100-TSPL_PQ199 is the second QR code; ...., TSPL_PQ900-TSPL_PQ999 is the tenth QR code.
  • Specific parameter description of each item: for example, the first QR code, TSPL_PQ0-TSPL_PQ99:
RegisterFunctionDescription
TSPL_PQ0X coordinateUnit: dot
TSPL_PQ1YcoordinateUnit: dot
TSPL_PQ2Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PQ3SizeRange: 0-5
TSPL_PQ4 - TSPL_PQ99QR code contentUse character input device to configure
  • By analogy, we can know the text information configuration of the 2nd to 20th QR codes.

Print bar code:

  • TSPL_PB can print up to 10 barcodes. TSPL_PB0-TSPL_PB99 is the first bar code; TSPL_PB100-TSPL_PB199 is the second bar code; ..., TSPL_PB900-TSPL_PB999 is the tenth bar code.
  • Specific parameter description of each item: for example, the first barcode, TSPL_PB0-TSPL_PB99:
RegisterFunctionDescription
TSPL_PB0X coordinateUnit: dot
TSPL_PB1YcoordinateUnit: dot
TSPL_PB2Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PB3heightUnit: dot
TSPL_PB4widthRange:0-2
TSPL_PB5- TSPL_PB99Bar code contentUse character input device to configure

By analogy, we can know the text information configuration of the 2nd to 20th bar codes.

Print offset:

  • TSPL_PR0: X coordinate offset, unit: mm;
  • TSPL_PR1: Y coordinate offset, unit: mm.

Trigger printing:

  • TSPL_PN0 = 1: trigger the printer to start printing.

Printing status:

  • TSPL_PS0 = 1: The printing is normal.
  • TSPL_PS0 = 1: The printing is abnormal.

Print picture

  • For the function of printing pictures, please refer to the configuration of [Printer object].

Conversion between dot and mm

  • Dot is the meaning of pixels. For the conversion between dot and mm, please refer to the printer manual or consult the customer service of the corresponding printer manufacturer. For example, SPRT TL21: 8 dots / mm, that is, 1mm = 8 dot.

EpsonTM series

HMI Settings

ItemSettingsNote
ProtocolEPSON-TM-T82II/TM-XXX 
ConnectionRS232 
Baud rate9600~115200 
Data bit8 
ParityNone 
Stop bit1 
PLC station No.1 

Each printer protocol has default parameter. These parameters could be configured by addresses. Error parameters may cause print failure.

Printer Settings

AddressDescriptionValue
HSW10603Print direction (only valid for print function)1
HSW10604Dot Matrix Type1
HSW10605Print width (depending on printer and paper)384
HSW10606Printer instruction type1
HSW10607Paper cut2
HSW10608Alignment (only valid for print function)1

Cable Wiring

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

✎Note: COM3 only available in PI8000/PI9000 series.

Schneider MODBUS RTU

HMI Setting

ParametersRecommendedNotes
ProtocolSchneider MODBUS RTU 
ConnectionRS485 
Baud rate19200 
Data bit8 
ParityEven 
Stop bit1 
PLC station No.1 

PLC Setting

Communication modeModbus RTU protocol

Device Address

Bit/WordDevice typeFormatRangeMemo
BIXDDDDDo0 ~ 655357Input bit (read only)
BQXDDDDDo0 ~ 655357Write multiple coils
BMXDDDDDDo0 ~ 9999997Output register bit (octal)
WMWDDDDDD0 ~ 999999Output register
DWMDDDDDDD0 ~ 999999Output register

Wiring Diagram

RS-485 2W (RJ45 Connector): The following is the view from the soldering point of a connector.

image-20220817154212-1.jpeg

Barcode Scanner

Supported: DELI 14880 barcode scanner

HMI Setting

ItemsSettingsNote
ProtocolBarcode Scanner 
ConnectionUSB 

Operating Procedures

Select [Barcode Scanner];

12.PLC Protocol_html_55a3056357320966.png

Set address for receiving;

Set correct length;

12.PLC Protocol_html_30a4c9e9dd4db40b.png

✎Note:

  • The protocol uploads the information acquired by the USB scanner to the HMI;
  • The acquired information is displayed in string mode, so it is necessary to use [characters input/display] object;
  • Recommended model: DELI 14880 barcode scanner;

Hitachi EHV Series (Ethernet)

Supported series: Hitachi EHV series

HMI Settings

ItemsSettingsNote
ProtocolHitachi EHV series 
ConnectionEthernet 
Port No.3004~3007 

Address List

TypeRegisterRangeFormatNote
BitT0 - 2545T DDDD 
M0 - 7FFF.f (Hex)M HHHH.h 
X0 – FFFF.f (Hex)X H1H2H3H4.h

H1H2H3H4 Module main number

H1: Remote number

H2: Unit number

H3: Slot number

H4: Word number of Module

H Sub number of Module

For example:X21.3

Slot number 2

Word number of module is 1

Bit number of module is 3

Remote number and unit number are 0

Y0 – FFFF.f (Hex)Y H1H2H3H4.h
R0 – FF.f (Hex)R HH.h 
L0 - 73FF.f (Hex)L HHHH.h 
WordWM0 - 7FFF (Hex)WM HHHH 
WX0 – FFFF (Hex)WX H1H2H3H4

H1H2H3H4 Module main number

H1: Remote number

H2: Unit number

H3: Slot number

H4: Word number of module

For example:WX21

Word number of module is 1

Slot number is 2

Remote number and unit number are 0

WY0 – FFFF (Hex)WY H1H2H3H4
WR0 – FFFF (Hex)WR HHHH 
WL0 - 73FF (Hex)WL HHHH 
TC0 - 2559TC DDDD 

Communication settings in HMI

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_d825387f5bde6cdd.png

PLC Configuration

Connect with PLC, select[Online mode];

12.PLC Protocol_html_8430dda44e5c199c.png

Set IP address, it is the same LAN parameters with HMI;

12.PLC Protocol_html_1d8a634f64e25fc3.png

3) Save PLC communication parameter, and restart PLC

PLC Monitor Mode

Connect with PLC and choose to “online” mode

12.PLC Protocol_html_cdac598e770e3b67.png

Open I/O monitor sheet1

12.PLC Protocol_html_68eb3518e5f80892.png

During monitoring bit address,1 pts should be selected; during monitoring word address, 16 pts should be selected

12.PLC Protocol_html_774652d8daf548d4.png

Enter the register address, click OK to view the value of the register.

12.PLC Protocol_html_bba169c300c92051.png

12.PLC Protocol_html_d3b23bb9e81921a3.png

✎Note:

  • Both word registers and bit registers support even continuous read/write functions;
  • The range of registers is based on the specific PLC type;

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

IEC60870-5 104 Client

HMI Setting

ItemsSettingsNote
ProtocolIEC60870-5 104 Client 
ConnectionEthernet 
Port No.2404 

Address List

TypeRegisterRange
BitSPTB0~16777215.7
SCNA0~16777215.7
DPTB0~16777215.7
DCNA0~16777215.7
METF0~16777215.7
SENC0~16777215.7
SENA0~16777215.7
MENA0~16777215.7
METD0~16777215.7
WordSPTB0~16777215
SCNA0~16777215
DPTB0~16777215
DCNA0~16777215
SENA0~16777215
MENA0~16777215
METD0~16777215
INRO0~16777215
TIMESYN0~16777215
TIMEZ0~16777215
NTP0~16777215
Double wordMETF0~16777215
SENC0~16777215

Address Configuration

The address registers of the IEC60870-5-104 protocol are SPTB, SCNA, DPTB, DCNA, METF, and SENC. The protocol needs to be added with an extension tag "ASDU", which could only be added in the [Address Identification Library], other places are not editable, that is, the read address in the object or script is not editable.

12.PLC Protocol_html_ba78d143bf457ead.png

12.PLC Protocol_html_23533fd5bb81f4ab.png

Extended tag name

Address range for the extended tag.

Communication Settings

Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

Set PLC IP in [Device IP] settings;

12.PLC Protocol_html_f848736ec68b125.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

OpenCAN

OpenCan is based on CAN2.0 standard; OpenCAN protocols that could be configured autonomously to accept and send frames.

This protocol is only available in PI8000 series HMI.

HMI Settings

ItemsSettingsNote
ProtocolOPENCAN 
ConnectionCAN port 
Baud rate250000 

CAN frame setting in HMI

Click [OpenCAN setting] button in communication setting window;

12.PLC Protocol_html_e866b9e56e19785d.png

Click [Add] to create a new frame;

12.PLC Protocol_html_3a6f4e2141763c8f.png

NoItemsDescription
1Addadd a frame related to register address
2InsertSelect the position where you want to insert a frame, and click [Insert frame] to add a new frame in front of the current frame position
3Frame managerThis list shows some of the main parameters for each frame that the user adds
4ModifyModify the frames in frame management
5CopyCopy one frame to another
6DeleteRemove the selected frames from the list by modifying the frames in frame management. If no frames are selected in the list, the first frame is deleted.
7EmptyAll frames in the list are cleared
8BrowseDisplays configuration files in XML format in IE
9OKComplete the configuration of the frame and exit

Set CANBUS frame in setting windows

12.PLC Protocol_html_7c83130820321ef.png

NoItemsDescription
1IDSet the ID of a can frame in hexadecimal format;
2ID assignsplit the ID by PF, PS, and SA;
3Frame typeSelect Standard frame or Extended Frame;
4Frame formatSelect between data frame and remote Frame;
5DataSet the data part of CAN frame, with two Numbers representing a hexadecimal number and Spaces spaced; Maximum support of 8 bytes is defined according to CAN message;
6Use address

Set the register address related to the CAN frame, which corresponds to the register address set on the main state one by one. The data obtained from the address is assigned continuously;

Edit: Set a bit or word address by its format;

Option: Set address options related to frame, enter “register address option” interface, specifically browse the following “register address option” interface;

7Data interactive configurationThere are two interactive modes of the touch screen. One is that the touch screen actively sends frames, and the device receives and processes and feeds back. The other, on the contrary, passively receives frames from the device for processing and feedback;
Send after receiving: if this item is selected, the interaction of the touch screen will act as a passive party, and the touch screen will receive the CAN frame first and send feedback. Unchecked items interact in the opposite way;
Feedback mode: feedback mode includes no response, confirm response and data response;
No response: the device or touch screen will not receive feedback;
Confirm response: the device or the touch screen will receive feedback with confirmation, which could be used to compare the data parts. If this function is used, the 20 addresses before and after this address should not be used. All addresses of cata10-cata30 could not be used with the reply confirmation function of cata20;
Data response: the device or touch screen will receive feedback with data, and the data to be separated from the feedback frame should be set to store in the register address;
response ID: if the address wants to receive data on a frame with a different ID, set this, check "different from sender", and enter a different ID in the following input box. Without this setting, the screen will receive and process a frame with the same ID as the sender;
Response timeout: sets whether the response frame timeout;
8Control addressIf ticked, enable sending when the value of the corresponding control bit number (address) is non-0.
Control bit: CtrlBit register range 0~255, if the control bit is ON, can instruction will run normally. Otherwise, it doesn't run;
Manually send: a manually send tick indicates only one send;
9Flag configurationCommunication control for each frame. Display OFF when communication is normal, and ON when communication is abnormal;
10NoteFill the text to explain the meaning of the frame;
11Data assignPreview the display in this table based on the address and the corresponding number of digits;
12Current operation displayDisplay the description of current operation;
13AddAdd a new frame;
14Save frameSave the configured frame format;
15CancelCancel the frame configuration;

Set CAN address (Read or write operation);

12.PLC Protocol_html_7e9f9b25eb6ae8ce.png

No.ItemDescription
1Current addressDisplays the register type and register address set by the user in the data access interface
2TriggerTwo operations, "read" and "write," are based on on-screen registers
If "read" is selected, the register address is reading device data in a manner of sending frames set by the user in a loop.
If "write" is selected, the screen data of the register address will be written into the device. The writing mode is that the user makes a write operation on the screen, which will trigger the sending of a frame set by the user.
3Data operationThe read and write operations in the trigger conditions are set accordingly.
If the trigger condition is a read operation, this section needs to set the position and length of the data to be obtained at the current address in the frame.
If the trigger condition is a writing operation, there are two situations:
  • If the "add writing data to the frame" option is not selected, the frame set by the user will be sent directly when the user writes on the screen.
  • Select the "add the written data to the frame" option, and when the user writes on the screen, the program will insert the data in the frame set by the user and send the written data to the frame set by the user according to the data insertion position and length set by the user.
Position and length input formatIf the register type is a bit address, the decimal point is required to represent the bits in the byte. For example, 1.1 represents the first bit of the first byte of 8 bytes in the data frame, and the length is in bits, and so on.
If the register type is word address, the integer only needs to represent the byte, such as 1, which represents the first byte of 8-byte data in the data frame, and the unit of length is byte, and so on.
4AddAdd current configuration
5CloseClose the configuration window to exit

Multiple Packages Settings

12.PLC Protocol_html_107e0f6b1a90afff.png

Check [Multiple packages supported] to open [Multiple package data] window, as below show.

Select Multiple package type

  • Not Multiple packages
  • J1939 Multiple packages
  • Customized Multiple packages

Click [Edit Receive data] for [Receive] settings

  • Start code+ Total length (J1939)

12.PLC Protocol_html_3c360c6b5aca51bf.png

As set above set, J1939 command is received by the HMI, only when its length is 25 bytes, and the start code is 0x57, 0x1B;

  • Start code + Data max length (J1939)

12.PLC Protocol_html_74496b2a68cfcdde.png

As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes, and the start code is 0x57, 0x1B;

  • Data max length (J1939)

12.PLC Protocol_html_98cea3e7cbd8f05d.png

As set above set, J1939 command is received by the HMI, only when its length less than 50 bytes.

  • Customized multiple package

12.PLC Protocol_html_4635bbe4d7999db0.png

As set above, It is received by the HMI, when the first frame starts with 0X57 0X1B, and the sum of the data lengths of multiple frames is equal to 79 bytes.

Click [Edit Send data] for [Send] setting

  • J1939

12.PLC Protocol_html_a4769e44331ca732.png

[Data] is all data to be sent.

Since the frame of the J1939 frame contains the number of the data packet, so the data sent is: the first byte (number) + 7 bytes of data. If it is less than 7 bytes, it is sent in the actual number of bytes.

  • Customized multiple package

12.PLC Protocol_html_78546f765d6f3deb.png

[Data] is all data to be sent.

As set above, fist frame length is 2 bytes, and others are sent with 6 bytes for every frame, if the last frame is less than 6 bytes, send according to the actual length.

Cable Wiring

12.PLC Protocol_html_fccede84efcbdc22.png

✎Note: The address interval between each frame need to be more than a word address;

User Defined Protocol

If the device does not support MODBUS standard, and the protocol is not list in PIStudio, then user can define the protocol by following instruction to realize simply communication functions like sending and receiving commands.

HMI Settings

ItemsSettingsNote
ProtocolUser defined protocol 
ConnectionRS485/RS232 
Baud rate2400~187500 
Stop bits1/ 2 
Data bits7/ 8 
ParityNone/ Even/ ODD 

Operating Procedures

Select [User defined protocol];

Click [User defined protocol] button to open setting window as below;

12.PLC Protocol_html_5ca13817ac812cf0.png

Configure user defined command;

12.PLC Protocol_html_11441e69f21e243d.png

NoItemDescription
1Instruction editThe required command.
2ModeWrite to address or read from the address.
3FormatEncode format: HEX or ASCII.
4Other

No receiving: HMI does not respond to the receiving command.

Send after receiving: HMI responds to the receiving command.

5Manually send

Respond once after trigger the address.

Address: set the trigger address.

6AddSave this setting.
7CancelCancel current settings.
8AddAdd a new command.
EditEdit the selected command.
DeleteDelete the selected command.
ClearClear all the commands.
9Instruction listDisplay all current commands.
10Address ListDisplay all the addresses added.
11ImportImport the command files to the instruction list.
ExportExport current command settings to local storage.
BrowseBrowse local command files.
AdvancedCombine two commands.
ExitComplete editing and exit setting.

Operating Procedures

Click [Add] to create a new command, as below shows;

12.PLC Protocol_html_463f2cd3a8c338fc.png

Select mode, [Read] or [Write], and then select Format, there are two options [Hex] and [ASCII]. As below shows;

12.PLC Protocol_html_a48eba3aa30b612d.png

Other settings: [No receiving] means HMI only sends command, and it would not process the reply command which from device. [Send after receiving] means HMI will be receiving the command which from device firstly, and then sending the command to device. From example, when HMI receiving [00 FF 00] firstly and then send command, as below shows

12.PLC Protocol_html_b36d990e126365d.png

Check [Manually send], and then please set the address for trigging, the setting range is 1~10, and please put Bit switch in project screen for it, and [OneCtrlBit] register is for [Manually send].

Instruction edit, when the data format is HEX, please use two numbers to represent one 16-bit number. ASCII format using characters to input;

Check settings;

12.PLC Protocol_html_5ac7075d9e8dad8d.png

NoItemsDescription
1Add checkingAdd checking command when receiving the data.
2Back checkingAdd control character in ASCII format.
Differ with send checkSet return checking.
3Add control characterStart position: select the start position of the data which need to check.
Length: The data length need to be checked.

Object settings;

12.PLC Protocol_html_1e776a838316fb5.png

NoItemsDescription
1Object settingsObject type: bit or word address;
Address: the triggering address;
Note: description to object;
2Byte orderThe numerical display order;

Data length settings;

12.PLC Protocol_html_6959664a46b03b69.png

NoItemDescription
1Return dataPosition: the start position of the return data.
Length: the return data length.
2Write dataPosition: the start position of the write data.
Length: the write data length.

Instruction length settings

12.PLC Protocol_html_7e0d8613c5e12f7b.png

NoItemDescription
1Send lengthThe instruction data will only send designated data length.
2Return lengthThe responds data length.
3End codeInstruction will not be terminated until receiving [End code];

Cable Wiring

  • RS485

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

  • RS232

12.PLC Protocol_html_5de71638aab8e40d.png

✎Note: COM3 only available in PI8000/PI9000 series.