12 PLC Protocol OLD

Last modified by Mora Zhou on 2023/12/04 10:45

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;

Limitation for Ethernet communication protocol

The table below shows the maximum number of communications configured for  the general protocol,Free Tag Protocol and CodeSys V3 Protocol on each series model.
(Only HMI V2.0 System supports Free Tag Protocol and CodeSys V3 Protocol)

HMI SeriesGeneral ProtocolFreeTags ProtocolCodeSys V3 Protocol
General 3000 Series16N/AN/A
General 8000 Series244N/A
General 9000 Series32N/AN/A
PI3000i Series16N/AN/A
PI3000ie Series
(PI3043ieS-N)
162N/A
PI3000ie Series
(other model)
N/AN/AN/A
PI3000ig Series
(PI3070ig-O & PI3102ig-O)
16N/AN/A
PI3000ig Series
(other model)
1642
PI8000ig Series3262

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 [Project] → [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.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 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

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

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

ABB

AC500

Support Series: ABB AC500

HMI Settings

ItemRecommendedNote
ProtocolABB AC500 
ConnectionRS232 
Baud rate19200 
Stop bits1 
Data bits8 
ParityEVEN 
PLC Station No.1 
HMI Station No.0 

Address List

TypeDevice registersFormatRangeNote
BitMXMXdddd.oo0.0~8191.7 
WordMW0MW0ddddd0~32767 
MW1MW1ddddd0~32767 

Cable Wiring

ABB AC500.gif

Abzil

Abzil CPL Protocol

Supported series: SDC series

HMI Settings

ItemSettingsNote
ProtocolAbzil CPL 
ConnectionRS485 
Baud rate9600 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.0

Address List

TypeDevice registersFormatRangeNote
Bit0000DDDD.h0~9999.f 
0101DDDD.h0~9999.f 
0202DDDD.h0~9999.f 
0303DDDD.h0~9999.f 
0404DDDD.h0~9999.f 
0505DDDD.h0~9999.f 
0606DDDD.h0~9999.f 
0707DDDD.h0~9999.f 
0808DDDD.h0~9999.f 
Word0000DDDD0~9999 
0101DDDD0~9999 
0202DDDD0~9999 
0303DDDD0~9999 
0404DDDD0~9999 
0505DDDD0~9999 
0606DDDD0~9999 
0707DDDD0~9999 
0808DDDD0~9999 

Cable Wiring

Azbil CPL485.gif

Crouzet

M3 (FBD)

Support Series: Crouzet Millenium 3 CD12/CB12

HMI Settings

ItemRecommendedNote
ProtocolCROUZET M3 (FBD) 
ConnectionRS232 
Baud rate115200 
Stop bits1 
Data bits7 
ParityEVEN 
PLC Station No.1 
HMI Station No.0 

 Address List

TypeDevice registersFormatRangeNote
BitII DD1~99Input
SLIBitSLIBit DD.dd1.0~24.15Serial Link Input 
SLOBitSLOBit DD.dd25.0~48.15Serial Link Output(Read only)
StateState D1~1PLC state(Read only)
WordAIAI DD1~99Analog Input
SLInSLIn DD1~24Serial Link Input 
SLOutSLOut DD25~48Serial Link Output(Read only)
TimeTime D1~6

Time1: Second

Time2: Minute

Time3: Hour

Time4: Day

Time5: Month

Time6: Year

OrderOrder D1~1

Running command(Write only)

=2: Run mode; =1: Stop mode;

Cable Wiring

CrouzetRS232.png

✎Note: As the communication driver remark mentioned, this protocol requires the DB9 serial port pin 4. But pin 4 is not define, not used or not useful(e.g. the pin 4 is the B- terminal of 485_2 of ig series) for PI HMIs, so it need the user to solder a Pull-up resistor to make the pin 4 working. As for how to solder the resistor on the motherboard, please contact with Wecon technical support for the details.

Danfoss

FC Series

Support Series: VLT FC300 Drive

HMI Settings

ItemRecommended 
ProtocolDanfoss FC Series
ConnectionRS485
Baud rate9600
Stop bits1
Data bits8
ParityEVEN
PLC Station No.1
HMI Station No.0

Address List

TypeDevice registersFormatRangeNote
WordPP dddd0~4095 
EE dddd0~4095 
SS d0~1 
CC d0~1 

Cable Wiring

Danfoss.png

Delta

DVP Series

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

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

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 

Configure the communication protocol

image-20220829152327-6.png

image-20220829152016-3.png

Cable Wiring

image-20220829152102-5.png

DVP Modbus TCP

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

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

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

 

Configure the communication protocol

image-20220829155452-1.png

image-20220829162116-2.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

AS300 MODBUS RTU

Supported Series: Delta AS200/AS300

HMI Settings

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

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXXdd.dd0~63.15Read only
BitYYYdd.dd0~63.15 
BitDDDddddd0~29999 
BitMMMdddd0~8191 
BitSMSMSMdddd0~4095 
BitSSSdddd0~2047 
BitTTTddd0~511 
BitCCCddd0~511 
BitHCHCHCddd0~255Double Word
WordXXXdd0~63 
WordYY

Ydd

0~63 
WordSRSRSRdddd0~2047Special register
WordDDDddddd0~29999 
WordTTTddd0~511 
WordCCCddd0~511 
WordEEEd0~9 

Configure the communication protocol

Create project

AsCreateProject.png

Open the tool COMMGR, to communicate with PLC, if know the IP, we can directly click Add to input PLC IP. Or search the PLC IP from LAN.

AScommunicarw.png

Double click the HWCONFIG to open the communication settings window. 

ASHWCONFIG.png

 Expand the Project Tree, open the hardware configuration, double click the PLC icon.

ASHSCONFIGICON.png

 Click COM1 Port Setting, the default Modbus mode is ASCII, need to change to RTU.

ASModbusMode.png

Click Ethernet Port Basic Setting, set the PLC IP and Gateway. Make sure the IP and Gateway is same segment. Then download into PLC.

ASconfigIP.png

image-20220830094600-1.png

image-20220830094657-2.png

Cable Wiring

image-20220830141138-1.png

Pin Definition Diagram

image-20220830095131-1.png

AS300 MODBUS TCP

HMI Settings

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

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 

Configure the communication protocol

image-20220830140537-1.png

image-20220830140629-2.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

EMERSON

RTU Slave Protocol

Supported series: EC10 series

HMI Settings

ItemSettingsNote
ProtocolEmerson 984 RTU Slave MODBUS 
ConnectionRS485 
Baud rate19200 
Data bit8 
ParityEVEN 
Stop bit1 
PLC station No.1

PLC Settings

Remember to use the Control Star to enable the Modbus RTU communication for port 1 in system block before dowload into PLC.

ControlStarSystemBlock.png

ControlStarCommunicate.png

ControlStarModbus.png

Address List

TypeDevice registersFormatRangeNote
BitYYOOO0~377 
XXOOO0~377 
M0M0DDDD0~2047 
M1M1DDDDD2048~10239 
SM0SM0DDD0~255 
SM1SM1DDD256~511 
S0S0DDDD0~1023 
S1S1DDDD1024~4095 
T0T0DDD0~255 
T1T1DDD256~511 
C0C0DDD0~255 
C1C1DDD256~306 
WordDDDDDD0~7999 
ZZDD0~15 
TW0TW0DDD0~255 
TW1TW1DDD256~511 
SD0SD0DDD0~255 
SD1SD1DDD256~511 
CWCWDDD0~306 
Double WordCW0CW0DDD200~255 
CW1CW1DDDDD256~99999 

 Cable Wiring

Emerson.gif

HollySys

LK MODBUS RTU

Supported Series: HollySys LK series CPU

HMI Settings

ItemRecommendedNote
ProtocolHollySys LK MODBUS RTU 
ConnectionRS485 
Baud rate38400 
Stop bits1 
Data bits8 
ParityNONE 
PLC Station No.1 
HMI Station No.0 

Address List

TypeDevice registersFormatRangeNote
BitQXQXDDDDD.dd0~65535.15 
BitIXIXDDDDD.dd0~65535.15 
BitMXMXDDDDD.dd0~65535.15 
WordQWQWDDDDD0~99999 
WordIWIWDDDDD0~99999 
WordMWMWDDDDD0~99999 
WordMDMDDDDDD0~99999 

Cable Wiring

Hollysys485.png

LM MODBUS RTU

Supported Series: HollySys LM3109/LM3107 PLC

HMI Settings

ItemRecommendedOptionalNote
ProtocolHollySys LM MODBUS RTUHollySys LM MODBUS RTU 
ConnectionRS232RS485 
Baud rate3840038400 
Stop bits11 
Data bits88 
ParityNONENONE 
PLC Station No.5151 
HMI Station No.00 

Address List

TypeDevice registersFormatRangeNote
BitQXQXDDDDD.oo0~65535.7 
BitIXIXDDDDD.oo0~65535.7 
BitMXMXDDDDD.oo0~65535.7 
WordQWQWDDDDD0~99999 
WordIWIWDDDDD0~99999 
WordMWMWDDDDD0~99999 
WordMDMDDDDDD0~99999 

Cable Wiring

RS232

HollySys LM Modbus RTU.gif

RS485

Hollysys LM Modbus RTU.gif

Inovance

H1U/H2U Serial

HMI Settings

ItemRecommendedNote
ProtocolINOVANCE H1U PLC/INOVANCE H2U PLC 
ConnectionRS422 
Baud rate9600 
Stop bits1 
Data bits7 
ParityEVEN 
PLC Station No.1 
HMI Station No.0 

Address List

TypeDevice registersFormatRangeNote
BitXXOOOOOO0~303237Input Bit
BitYYOOOOOO0~303237Output Bit
BitMMDDDDD0~99999Auxiliary
BitTTDDDDD0~99999Timer
BitCCDDDDD0~99999Counter
BitSMSMDDDD8000~9999Special Auxiliary
BitSSDDDDD0~99999 
BitLampLamp00~0Communication Indicator
WordXX OOOOOO0~303237Input Word
WordYY OOOOOO0~303237Output Word
WordMM DDDDD0~99999Auxiliary
WordTT DDDDD0~99999Timer
WordCC DDD0~199Counter
WordDD DDDD0~7999Data Register
WordSS DDDDD0~99999 
WordSDSD DDDD8000~9999Special Data Register
Double WordCHCH DDD200~255

Cable Wiring

Inovance.png

H3U Serial

HMI Settings

ItemSettingsNote
ProtocolINOVANCE H3U PLC 
ConnectionRS422 
Baud rate9600 
Data bit7 
ParityEVEN 
Stop bit1 
PLC station No.0 

Address List

TypeDevice registersFormatRangeNote
BitXX OOOOOO0~303237 
BitYY OOOOOO0~303237 
BitMM DDDDD0~99999 
BitTT DDDDD0~99999 
BitCC DDDDD0~99999 
BitSMSM DDDD8000~9999 
BitSS DDDDD0~99999 
BitLampLamp00~0 
WordXX OOOOOO0~303237 
WordYY OOOOOO0~303237 
WordMM DDDDD0~99999 
WordTT DDDDD0~99999 
WordCC DDD0~199 
WordDD DDDD0~7999 
WordSS DDDDD0~99999 
WordSDSD DDDD8000~9999 
WordRR DDDDD0~32767 
Double WordCHCH DDD200~255 

Configure the communication protocol

image-20220830170114-4.png

image-20220830170017-3.png

Cable Wiring

Inovance.png

H3U Ethernet

HMI Settings

ItemSettingsNote
ProtocolINOVANCE H3U PLC Ethernet 
ConnectionEthernet 
Port No.502 
Device No.1 
HMI No.0 

Address List

TypeDevice registersFormatRangeNote
BitMM DDDD0~8511 
BitSMSM DDDD0~1023 
BitSS DDDD0~4095 
BitTT DDD0~511 
BitCC DDD0~255 
BitXX OOO0~571 
BitYY OOO0~571 
WordDD DDDD0~8511 
WordSD SD DDDD0~1023 
WordRR DDDDD0~32767 
WordTT DDD0~255 
WordCC DDD0~199 
Double WordCC DDD200~255 

Cable Wiring

CommonEthernet.png

LS

XGB Serial

HMI Settings

ItemSettingsNote
ProtocolLS XGB CPU DRIECT 
ConnectionRS232 
Baud rate115200 
Data bit8 
ParityNONE 
Stop bit1 
PLC station No.1 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitPPP DDDD.f0~2047 
BitMMM DDDD.f0~2047 
BitLLL DDDDD.f0~11263 
BitKKK DDDD.f0~2559 
BitFFF DDDD.f0~2047 
BitSSS DDDDD0~12799 
BitDDD DDDDD.f0~32767 
BitUUU FFFF.f0~7f31 
BitTTT DDDD.f0~2047 
BitCCC DDDD.f0~2047 
WordPPP DDDD0~2047 
WordMMM DDDD0~2047 
WordLLL DDDDD0~11263 
WordKKK DDDD0~2559 
WordFFF DDDD0~2047 
WordCCC DDDD0~2047 
WordTTT DDDD0~2047 
WordDDD DDDDD0~32767 
WordNNN DDDDD0~21503 
WordUUU FFFF0~7f31 
WordZZZ DDD0~127 
WordRRR DDDDD0~32767 
WordZRZRZ DDDDD0~32767 
WordTSTSTS DDDD0~2047 
WordCSCSCS DDDD0~2047 
WordSSS DDDDD0~12799 

Configure the communication protocol

image-20221028174410-1.png

image-20221028174753-2.png

image-20221028181125-4.png

Pin Definition Diagram

image-20221028180930-3.png

XBC Serial

HMI Settings

ItemSettingsNote
ProtocolLS XBC CNet 
ConnectionRS232 
Baud rate115200 
Data bit8 
ParityNONE 
Stop bit1 
PLC station No.1 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitPPP d0~2047 
BitMMM d0~2047 
BitLLL d0~11263 
BitKKK d0~16183 
BitFFF d0~2047 
BitDDD d0~32767 
BitRRR d0~32767 
BitUUU d0~4095 
WordPPP d0~2047 
WordMMM d0~2047 
WordLLL d0~11263 
WordKKK d0~16183 
WordFFF d0~2047 
WordCCC d0~2047 
WordTTT d0~2047 
WordDDD d0~32767 
WordNNN d0~21503 
WordRRR d0~32767 
WordUUU d0~4095 
WordZZZ d0~127 
WordSSS d0~127 

Configure the communication protocol

image-20220831170807-1.png

image-20220830174733-2.png

Cable Wiring

image-20220830174659-1.png

Pin Definition Diagram

image-20220830173402-8.png

XGK FEnet(Ethernet)

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

CommonEthernet.png

Mitsubishi

FX1S, 1N, 2N Series

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.

FX3U/3G/3GA Serial

HMI Settings

ItemSettingsNote
ProtocolMitsubishi FX3U/3G/3GA 
ConnectionRS422 
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 

Configure the communication protocol

image-20220831095222-1.png

image-20220831095743-2.png

Wiring

image-20220831100314-6.png

FX NOPROTOCOL

Mitsubishi FX3G-RS232-BD

HMI Settings

ItemSettingsNote
ProtocolMitsubishi FX NOPROTOCOL 
ConnectionRS232 
Baud rate9600 
Data bit7 
ParityEVEN 
Stop bit1 
PLC station No.0 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~99999 
SSS d0~99999 
SMSMSM d8000~9999 
LampLampLamp d0~0 
WordXXX o0~303237 
YYY o0~303237 
MMM d0~99999 
TTT d0~99999 
CCC d0~199 
DDD d0~7999 
SSS d0~99999 
SDSDSD d8000~9999 

Configure the communication protocol

1.png

2.png

Wiring

3.png

FX3U Ethernet

Mitsubishi FX3U series PLC

HMI Settings

ItemsSettingsNote
ProtocolMitsubishi FX3U Ethernet 
ConnectionEthernet 
Port No.5009Must be the same as the PLC setting
PLC station No.0 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX OOO0~377 
YYY OOO0~377 
MMM DDDD0~7679 
SMSMSM DDDD8000~8511 
SSS DDDD0~4095 
TSTSTS DDD0~511 
CSCSCS DDD0~255 
WordCNCNCN DDD0~199 
TNTNTN DDD0~511 
DDD DDDD0~7999 
SDSDSD DDDD8000~8511 
RRR DDDDD0~32767 

Ethernet Module Settings

FX3U-ENET-L module configuration
Set up the FX3U-ENET-L Ethernet module settings as follows.
Select the module location, which in this document is Module 0.

image-20221115140802-1.png

Select "Operational setting" to enter the following screen.

The Ethernet module IP is set to 192.168.39.254 in this document, and other options are default.

image-20221115142728-4.png

Select "Open setting" to enter the setting interface, the settings are as follows.

The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the

Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.

image-20221115142945-5.png

Click on "transter setup" - "PC side I/F setting", see the following figure.

After setting, the first download must use the programming cable, as shown in the figure; after that, can

use the IP set in the "Ethernet board" to communicate directly with the network cable.

image-20221115143341-6.png

Read and write data from the Ethernet module

image-20221115143703-7.png

Set "Transter setup" to COM communication, and read or write operation as shown below

image-20221115143809-8.png

PLC Settings (GX Works 2)

Create a blank FX5U project

Find Current Connection in the navigation

image-20221115144335-9.png

Select Connection Channel List

Select Ethernet board communication

image-20221115144824-10.png

Select Ethernet Module
Set the IP address of the PLC

image-20221115145228-11.png

Read or write PLC data, in this document is read

image-20221115145553-12.png

image-20221115145559-13.png

HMI Communication Setting

image-20221115150003-14.png

image-20221115150235-15.png

image-20221115145559-13.png

HMI Communication Setting

image-20221115150003-14.png

image-20221115150235-15.png

FX5U Serial

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 CPU Port

Mitsubishi L02 series CPU built-in serial port.

HMI Settings

ItemSettingsNote
ProtocolMitsubishi L02 CPU Port 
ConnectionRS422 
Baud rate115200 
Data bit8 
ParityOdd 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

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

image-20220831105732-3.png

image-20220831110004-5.png

Cable Wiring

image-20220831105542-2.pngimage-20220831105529-1.png

Pin Definition Diagram

image-20220825160820-4.png

L02 CPU MELSEC(Ethernet)

Mitsubishi Q series CPU built-in Ethernet port.

HMI Settings

ItemsSettingsNote
ProtocolMITSUBISHI 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];

 12.PLC Protocol_html_43b671f18153910d.png

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;

image-20221108202109-2.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

QJ71C24N MELSEC

Mitsubishi QJ71C24N communication module built-in serial port;

HMI Settings

ItemsSettingsNote
ProtocolMITSUBISHI QJ71 MELSEC 
Connection422 
Baud rate9600 
Data bit8 
ParityODD 
Stop bit1 
PLC station No.1~255Need to be the same as PLC settings

Address List

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

Communication Settings

image-20221109135738-1.png

image-20221109140016-3.png

Pin Definition Diagram

image-20221109140406-4.png

QJ71E71 MELSEC

Mitsubishi QJ71E71 Ethernet communication module;

HMI Settings

ItemsSettingsNote
ProtocolMITSUBISHI 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];

 12.PLC Protocol_html_43b671f18153910d.png

2) Set PLC IP in [Device IP] settings

;image-20221119164628-1.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, 0020 means that the module is connected to PLC CPU in first order);
  • Select [Online] as Mode;
  • image-20221119164958-2.png 12.PLC Protocol_html_acd084d845da380e.png
  • Click [Operation setting] to set IP;
  • Select [Binary Code] as [Communication Data Code];
  • image-20221119165129-3.png 12.PLC Protocol_html_a972e671d2bb9150.png
  • Click [Open setting]
  • 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: 5009;
  • 12.PLC Protocol_html_f2c432006cdd2f9.pngSave settings;
  • image-20221119165342-4.png
  • Download project into PLC and restart it

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

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 Meter

The following example is using the Linfee meter LNF96EY to demonstrate how to set up the Modbus communication.

1. Wiring the RS485 cable first. Because the pin 58 is A, the pin 59 is B for meter. Here we use the COM1 to connect. So the diagram like follows:

LinfeeDiagram.png

2. Check the specific Modbus parameter in the communication menu from LED display.

So from the following pictures, we can know the Meter Address is 85, Baud rate is 9600, CRC None.

✎Note: Meter address usually corresponding to the Device No. in the PIStudio Communication settings.

MeterModbusAllView.png

3. Create new project and change the Communication settings.

Set the protocol as MODBUS RTU Slave (All Function), set Device No. as 85. And COM port setting as 9600, 1, 8, NONE.

PIStudioSetupMeterModbusPara.png

4. Drag the numeric input into screen, and fill in the Modbus Address we want to read according to manual

The following table is intercept part of the manual for Linfee Modbus manual.

0x03/0x04 command data register address:

AddressDescriptionData FormatData Length(Word)Remark
 HEXDEC    
0x000Reserved   
0x022Reserved   
0x044Reserved   
0x066Uafloat2Phase Voltage data, Unit V
0x088Ubfloat2Phase Voltage data, Unit V
0x0A10Ucfloat2Phase Voltage data, Unit V
0x0C12Uabfloat2Line Voltage data, Unit V
0x0E14Ubcfloat2Line Voltage data, Unit V
0x1016Ucafloat2Line Voltage data, Unit V
0x1218Iafloat2Phase Current data, Unit A
0x1420Ibfloat2Phase Current data, Unit A
0x1622Icfloat2Phase Current data, Unit A

✎Note: We usually use the Address Type 4 for read the Modbus registers(Function Code 03)

For example, here we want to read the Phase Voltage Ua (Modbus offset 0006), the Address No. requires input decimal number, and check whether the actual address has one address offset, so the address set like the following screenshot:

MeterModbusPInumericSet.png

Set the Read-Write type for address, because meter only to measuring the data, so set it as read-only, and floating data format.

MeterModbusNumericInputFormat.png

Then download into HMI, if the HMI COM led is blinking and no timeout message show, which means the communication is setup successfully.

ActualHMIModbusResult.jpg

MODBUS TCP Slave (All function)

Supported series: MODBUS TCP controller

Note: Although the protocol selected for the HMI is MODBUS TCP Slave, the HMI is working as a MODBUS TCP Master connected to 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

Omron

CJ TCP FINS Ethemet

Supported device:CJ series, CJ1W-EIP21

HMI Settings

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

 

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 

Configure the communication protocol

image-20220830143348-1.png

image-20220830143511-2.png

Configure CJ1W-EIP21 connect with HMI

ftEVGvAprh.png

Select TCP_Client_2N

RURXWcgyCd.png

Cable Wiring

Pin Definition Diagram

12.PLC Protocol_html_2297240b57346b2a.png

CS1(CP1E/CP1H)

Supported device: OMRON CS1(CP1E/CP1H)

HMI Settings

ItemsSettingsNote
ProtocolOMRON CS1(CP1E/CP1H) 
ConnectionRS232 (9600, 2, 7, EVEN) 
Port No.None 
PLC station No.0 

Address List

TypeDevice registersHMI registersFormatRangeNote
BitCIOCIOCIO d0~99999 
BitWWW d0~99999 
BitDDD d0~99999 
BitHHH d0~99999 
BitAAA d0~99999 
BitTFTT h0~99999 
BitCFCFCF d0~99999 
BitTFFFF 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 
WordCIOCIOCIO d0~99999 
WordWWW d0~99999 
WordDDD d0~99999 
WordHHH d0~99999 
WordAAA d0~99999 
WordTTT h0~99999 
WordCIOCFCF 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 

Configure the communication protocol

image-20220902153118-1.png

image-20220902151322-2.png

PLC Settings(CX-Programmer)

Open cx-programmer, create a new PLC project or open the project that has been created.
Create new project: [File]→[New]→[Device Type]CP1E→[settings]→[General]→[CPU Type]N30→[OK]→[OK].

1.2 工程新建D.png

PLC Default Parameters:[Settings]→[Built-in RS232C Port]→[Communication Settings]→[Standard]9600,1,7,2,E means:[Baud rate] 9600, [Data bits]7, [Stop bits] 2,[Parity] EVEN→[Unit Number]0 →[Mode]Host Link(Defaut).

1.3 串口参数的查看-配置D.png

Cable Wiring

image-20220902153949-2.png

Pin Definition Diagram

image-20220902154056-3.png

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.

NX EtherNet/IP

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

CV/CJ1M/CS1H

HMI Setting:

ParametersRecommended
PLC typeOMRON CV/CJ1M/CS1H
PLC I/FRS232/RS485
Baud rate9600
Data bits7
ParityEven
Stop bits2
PLC sta. no.0

PLC Setting:

Open cx-programmer, create a new PLC project or open the project that has been created.
Create new project: [File]→[New]→[Device Type]CJ2M→[settings]→[General]→[CPU Type]CPU31→[OK]→[OK].

1.2 新建工程.png

PLC Default Parameters:[Settings]→[Serial Port]→[Communication Settings]→[Standard]9600,1,7,2,E means:[Baud rate] 9600, [Data bits]7, [Stop bits] 2,[Parity] EVEN→[Unit Number]0 →[Mode]Host Link.
Note:The serial port parameters should be set depending on field requirements

1.3串口参数配置.png

Device Address:

Bit/WordDevice typeFormatRangeMemo
BCIODDDDDdd0 ~65535.15I/O and Internal Relay
BWDDDDDdd0 ~65535.15Hold Relay
BDDDDDDdd0 ~65535.15Link Relay
BHDDDDDdd0 ~65535.15 
BADDDDDdd0 ~65535.15 
BTFDDDDD0 ~ 99999 
BCFDDDDD0 ~ 99999Auxiliary Relay
BTDDDDDdd0 ~65535.15 
BCDDDDDdd0 ~65535.15 
BEM0DDDDDdd0 ~ 99999.15 
BEM1DDDDDdd0 ~ 99999.15 
BEM2DDDDDdd0 ~ 99999.15 
BEM3DDDDDdd0 ~ 99999.15 
BEM4DDDDDdd0 ~ 99999.15 
BEM5DDDDDdd0 ~ 99999.15 
BEM6DDDDDdd0 ~ 99999.15 
BEM7DDDDDdd0 ~ 99999.15 
BEM8DDDDDdd0 ~ 99999.15 
BEM9DDDDDdd0 ~ 99999.15 
BEMADDDDDdd0 ~ 99999.15 
BEMBDDDDDdd0 ~ 99999.15 
BEMCDDDDDdd0 ~ 99999.15 
BLampD0~0 
Bit/WordDevice typeFormatRange
WWDDDDD0 ~ 99999
WDDDDDD0 ~ 99999
WHDDDDD0 ~ 99999
WADDDDD0 ~ 99999
WTDDDDD0 ~ 99999
WCDDDDD0 ~ 99999
WCIODDDDD0 ~ 99999
WEM0DDDDD0 ~ 99999
WEM1DDDDD0 ~ 99999
WEM2DDDDD0 ~ 99999
WEM3DDDDD0 ~ 99999
WEM4DDDDD0 ~ 99999
WEM5DDDDD0 ~ 99999
WEM6DDDDD0 ~ 99999
WEM7DDDDD0 ~ 99999
WEM8DDDDD0 ~ 99999
WEM9DDDDD0 ~ 99999
WEMADDDDD0 ~ 99999
WEMBDDDDD0 ~ 99999
WEMCDDDDD0 ~ 99999
WIRDDDDD0 ~ 99999
WDRDDDDD0 ~ 99999

Wiring Diagram:

RS-485

3.1.png

Pin Definition Diagram

3.2.png

RS-232

CPU Port (CPM2A,CQM1/1H,C200H/HS/ALPHA series)

Communication Module:

CPM1-CIF01 adapter (for CPM1/CPM1A/CPM2A series, CQM1/CQM1H series) CPM1H-SCB41 communication module (for CQM1H-CPU51/61)

The serial port pin assignments may vary between HMI models, please click the following link for more information.

image-20220914115848-1.jpeg

Supported series: Omron C200HE series

HMI Settings(recommended)

ItemRecommended 
ProtocolOMRON HOSTLINK
ConnectionRS232
Baud rate9600
Stop bits2
Data bits7
ParityEVEN
PLC Station No.0
HMI Station No.0

Address List

TypeDevice registersHMI registersFormatRange
BitIRIRIR d0~99999
BitLRLRLR d0~99999
BitHRHRHR d0~99999
BitARARAR d0~99999
BitTIMBTIMBTIMB d0~99999
BitCNTBCNTBCNTB d0~99999
BitTIMTIMTIM d0~99999
BitDMDMDM d0~99999
BitCNTCNTCNT d0~99999
BitWRWRWR d0~99999
BitLAMPLAMPLAMP d0~0
WordIRIRIR d0~99999
WordLRLRLR d0~99999
WordHRHRHR d0~99999
WordARARAR d0~99999
WordTIMTIMTIM d0~99999
WordDMDMDM d0~99999
WordCNTCNTCNT d0~99999
WordWRWRWR d0~99999

Cable Wiring

3.1.2 接口.png

Rockwell

DF1

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

HMI Settings

ItemRecommended Note
ProtocolRockwell DF1 
ConnectionRS232 
Baud rate19200 
Stop bits1 
Data bits8 
ParityNone 
PLC Station No.1 
HMI Station No.0 

PLC Settings

DF1 Full Duplex protocol and CRC error check

Address List

TypeDevice registersFormatRangeNote
BitII ddd.dd0.0~255.15Only able to communicate with file number I1
OO ddd.dd0.0~255.15Only able to communicate with file number O0
BB nnhh.dd0.0~ffff.15Only able to communicate with file number B3
SS ddd.dd0.0~255.15Only able to communicate with file number S2
NN nnhh.dd0.0~ffff.15Only able to communicate with file number N7
WordSS ddd0~255Only able to communicate with file number S2
TSTS nnhh0~ffffOnly able to communicate with file number T4 (Timer Preset Value)
TPTP nnhh0~ffffOnly able to communicate with file number T4 (Timer Accumulator Value)
CSCS nnhh0~ffffOnly able to communicate with file number C5 (Counter Preset Value)
CPCP nnhh0~ffffOnly able to communicate with file number C5 (Counter Accumulator Value)
NN nnhh0~ffffOnly able to communicate with file number N7

Cable Wiring

AB.gif

DF1 Advanced

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

HMI Settings

ItemRecommended Note
ProtocolRockwell DF1 Advanced 
ConnectionRS232 
Baud rate19200 
Stop bits1 
Data bits8 
ParityNone 
PLC Station No.1 
HMI Station No.0 

PLC Settings

DF1 Full Duplex protocol and CRC error check

Address List

TypeDevice registersFormatRangeNote
BitI1I1ddd.dd0.0~255.15Only able to communicate with file number I1
O0O0ddd.dd0.0~255.15Only able to communicate with file number O0
S2S2ddd.dd0.0~255.15Only able to communicate with file number S2
B3B3ddd.dd0.0~255.15Only able to communicate with file number B3
BNBNddddd.dd0.0~99255.15

Bit data file B0~B99

First two digits is for file number

For example, BN13001.00 represents file number B13, address 001, the 0th bit. 

N7N7ddd.dd0.0~255.15Only able to communicate with file number N7
NNNNddddd.dd0.0~99255.15

Integer data file bit format N0~N99

First two digits is for file number

For example, NN13001.00 represents file number N13, address 001, the 0th bit. 

WordS2S2ddd0~255Only able to communicate with file number S2
T4ST4Sddd0~255Only able to communicate with file number T4 (Timer Preset Value)
T4PT4Pddd0~255Only able to communicate with file number T4 (Timer Accumulator Value)
TNSTNSddddd0~99255

Timer Preset Value

First two digits is for file number

For example, TNS99255 represents file number T99, address 255. 

TNPTNPddddd0~99255

Timer Accumulator Value

First two digits is for file number

For example, TNP99255 represents file number T99, address 255. 

C5SC5Sddd0~255Only able to communicate with file number C5 (Counter Preset Value)
C5PC5Pddd0~255Only able to communicate with file number C5 (Counter Accumulator Value)
CNSCNSddddd0~99255

Counter Preset Value

First two digits is for file number

For example, CNS99255 represents file number C99, address 255. 

CNPCNPddddd0~99255

Counter Accumulator Value

First two digits is for file number

For example, CNP99255 represents file number C99, address 255. 

N7N7ddd0~255Only able to communicate with file number N7
NNNNddd0~99255

Integer data file

First two digits is for file number

For example, NN99255 represents file number N99, address 255. 

Double WordF8F8ddd0~255

Only able to communicate with file number F8

FNFNddddd0~99255

Floating point data file

First two digits is for file number

For example, FN99255 represents file number F99, address 255. 

LNLNddddd0~99255Long

Cable Wiring

AB.gif

MicroLogix

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

EtherNet/IP(CompactLogix Series)

Allen-Brandly Compact Logix Free Tag

HMI Settings

ItemsSettingsNote
ProtocolEtherNet/IP(CompactLogix Series) 
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

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

Siemens

S7-200 Smart Ethernet

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

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~DB9999.DBDBxDBDDBxDB nnnndddd.o0.0~99999999.7

nnnn: 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~DB9999.DBDBxDBBDBxDBB nnnndddd0~99999999

nnnn: block number;

dddd: address

DBxDBWDBxDBW nnnndddd0~99999999
DBxDBDDBxDBD nnnndddd0~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

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.
  • S7-1200 String type, the default first two bytes are used to store the maximum character and valid characters, so the text data will be shifted back one word address. When interacting with the data, what way this address plc is displayed with is unknown. And because of an extra word of data causes us to display the wrong. The solution is if we use String, then the actual data address we want to operate on is actually shifted back two bytes, so as long as the address on the project is shifted back 2 bits to correspond with the actual data address.
  • HMI operation character length needs to be set to 2 times the length of the Siemens character for proper display. 

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

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

Supported Series: Siemens Logo 0BA0, 0BA1 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.

image-20221228142937-4.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.

image-20221228143047-5.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.

image-20221228143246-6.png

HMI Communication Settings

Set PLC IP in [Device IP] settings;

image-20221228143614-7.png

Enable HMI Ethernet in [Project Settings];

image-20221228144229-9.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/HSW1200 = local TSAP of HMI, this is remote TSAP of PLC.
  • HSW10119/HSW1201 = Remote TSAP of HMI, this is local TSAP of PLC.
  • PI, PI+, i series (1.0 system): use HSW10118, HSW10119.
    ie, ig series: use HSW1200, HSW1201.
    HMI V2.0: use HSW1200, HSW1201.

✎Note:

  • The data of TSAP is hexadecimal format. For example: the remote TSAP configured in the PLC is set to 20.00, then HSW10118/HSW1200 should be set to 0x2000, that is, HSW10118/HSW1200=8192.
  • HSW10119/HSW1201 is set up as shown.
  • image-20221228144800-11.png

  • image-20221228144708-10.png

  • AI word address and Ibit address are read-only and cannot be written on HMI.
  • VW address should be even number address, such as VW0, VW2, VW4..., because in the address rule of Siemens PLC, the value of odd number address is equal to the value of previous even number address. For example VW1 = VW0.
  • VD address should be multiple of 4, because it occupies two VW addresses, such as VD0, VD4, VD8...
  • Written value of RTC cannot exceed 255.

Cable Wiring

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

S7-300(With PC Adapter)

HMI Setting:

ParametersRecommendedOptionsNotes
PLC typeSIEMENS S7-300 (with PC Adapter) 
PLC I/FRS232  
Baud rate192009600,19200 
Data bits8  
ParityOdd  
Stop bits1  
PLC sta. no.2 Must be same as the PLC setting.

Device Address

Bit/WordDevice typeFormatRangeMemo
BitIDDDDo0 ~ 40957Input (I)
BitQDDDDo0 ~ 40957Output (O)
BitMDDDDo0 ~ 40957Bit Memory
Word

DB1 to DB99

DDDDDo0 ~ 655327 
WordIWDDDD0 ~ 4095Input (I)
WordQWDDDD0 ~ 4095Output (O)
WordMWDDDD0 ~ 4095Bit Memory
Double wordMDDDDD0 ~ 4094 
Double wordDBDnFFFFFDDDD0 ~ 655359999

Data Register Double Word (must be even)

ByteMBDDDD0 ~ 4095Bit Memory Byte

Cable Wiring

image-20221010102051-1.png

Xinje

XC MODBUS

HMI Settings

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

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 

Configure the communication protocol

image-20220830154105-1.png

image-20220830154159-3.png

Cable Wiring

Figure

image-20220830155728-4.png

Pin Definition Diagram

image-20220830154131-2.png

XD/XE MODBUS

HMI Settings

Supported Series: Xinjie XD/XE Series PLC

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

Address List

TypeDevice registersHMI registersFormatRangeNote
BitMMM d0~74999 
BitX1xxX1xxX1xx o0~1177 
BitX2xxX2xxX2xx o0~277 
BitXXX o0~77 
BitY1xxY1xxY1xx o0~1177 
BitY2xxY2xxY2xx o0~277 
BitYYY o0~4095 
BitSMSMSM d0~4999

 

BitTTT d0~4999 
BitCCC d0~4999 
BitETETET d0~31 
BitSESESE d0~31 
BitHMHMHM d0~11999 
BitHSCHSCHSC d0~39 
BitHSHSHS d0~999 
BitHTHTHT d0~1999 
BitHCHCHC d0~1999 
BitSSS d0~7999 
WordDDD d0~69999 
WordIDIDID d0~99 
WordID1xxID1xxID1xx d0~999 
WordID2xxID2xxID2xx d0~299 
WordQDQDQD d0~99 
WordQD1xxQD1xxQD1xx d0~999 
WordQD2xxQD2xxQD2xx d0~299 
WordSDSDSD d0~4999 
WordTDTDTD d0~575 
WordCDCDCD d0~575 
WordETDETDETD d0~31 
WordHDHDHD d0~24999 
WordHSDHSDHSD d0~1023 
WordHTDHTDHTD d0~95 
WordHCDHCDHCD d0~95 
WordHSCDHSCDHSCD d0~31 
WordFDFDFD d0~8191 
WordSFDSFDSFD d0~5999 
WordFSFSFS d0~47 

Configure the communication protocol

image-20220830160042-1.png

image-20220830160129-2.png

Cable Wiring

image-20220905093902-1.png

Pin Definition Diagram

image-20220830160232-3.png

Panasonic

FP MEWTOCOL

1)HMI Settings

ItemSettingsNote
ProtocolPanasonic FP MEWTOCOL 
ConnectionRS232 
Baud rate9600 
Data bit8 
ParityODD 
Stop bit1 
PLC station No.1 

2)Address List

TypeDevice registersHMI registersFormatRangeNote
BitXXX d0~9999 
BitYYY d0~9999 
BitRRR d0~9999 
BitTTT d0~9999 
BitCCC d0~9999 
BitLLL d0~9999 
WordWXWXWX d0~9999 
WordWYWYWY d0~9999 
WordWRWRWR d0~9999 
WordWLWLWL d0~9999 
WordLDLDLD d0~9999 
WordDTDTDT d0~65535 
WordFLFLFL d0~9999 
WordEVEVEV d0~9999 
WordSVSVSV d0~9999 

3)Configure the communication protocol

image-20220830171050-1.png

image-20220830171126-2.png

4)Cable Wiring

Figure

image-20220830171328-4.png

Pin Definition Diagram

image-20220830171146-3.png

SHIMADEN

FP23 Series

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

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.

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

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.