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.

Protocol Selection & Communication Parameters

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

Operating Procedure

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

12.PLC Protocol_html_39c0d342e4b1dd27.png

2) Click “Setting” to open protocol setting windows.

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

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

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

12.1 Allen-Bradley FreeTag Ethernet/IP (CompactLogix)

Allen-Brandly CompactLogix

HMI Settings

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

PLC Setting

1) Create new tags

12.PLC Protocol_html_a748a27dcf7f1124.png

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

12.PLC Protocol_html_151379170bb8ff3e.png

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

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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_27870d373581892e.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.2 Allen-Bradley 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

12.3 Barcode Scanner

Supported: DELI 14880 barcode scanner

HMI Setting

ItemsSettingsNote
ProtocolBarcode Scanner 
ConnectionUSB 

Operating Procedures

1) Select [Barcode Scanner];

12.PLC Protocol_html_55a3056357320966.png

2) Set address for receiving;

3) Set correct length;

12.PLC Protocol_html_30a4c9e9dd4db40b.png

Note:

1) The protocol uploads the information acquired by the USB scanner to the HMI;

2) The acquired information is displayed in string mode, so it is necessary to use [characters input/display] object;

3) Recommended model: DELI 14880 barcode scanner;

12.4 EPSON-TM-T82II/TM-XXX

EpsonTM series printer

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.

12.5 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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_d825387f5bde6cdd.png

PLC Configuration

1) Connect with PLC, select[Online mode];

12.PLC Protocol_html_8430dda44e5c199c.png

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

1) Connect with PLC and choose to “online” mode

12.PLC Protocol_html_cdac598e770e3b67.png

2) Open I/O monitor sheet1

 12.PLC Protocol_html_68eb3518e5f80892.png

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

12.PLC Protocol_html_774652d8daf548d4.png

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

1) Both word registers and bit registers support even continuous read/write functions;

2) The range of registers is based on the specific PLC type;

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.6 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

1) Extended tag name

2) Address range for the extended tag.

Communication Settings

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_f848736ec68b125.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.7 LG 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:

1) In addition to the "UxDD" register, the others correspond to the PLC register one by one. UxDD corresponds to U in the PLC;

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

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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_a2a19b5003ad4090.png

Cable Wiring

12.8 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

1) RS485

12.PLC Protocol_html_d4012bdeb4ce4aae.png

12.PLC Protocol_html_4bf57ad8d44eacc4.png

2)RS422

12.PLC Protocol_html_f8a6bebc5792960d.png

Note:

COM3 only available in PI8000/PI9000 series.

12.9 Mitsubishi FX5U Ethernet

Mitsubishi FX5U series PLC

HMI Settings

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

Address List

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

PLC Settings (GX Works 3)

1) Find the [Ethernet port] in the navigation area.

12.PLC Protocol_html_8e8f85ace087346c.png

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

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

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

12.PLC Protocol_html_5d98495052c8c10e.png

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

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

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

12.PLC Protocol_html_14b489fdc6c6589d.png

8) Click [Apply] to completed Etherenet settings;

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

  12.PLC Protocol_html_c93025a968a8a9e7.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.10 Mitsubishi FX5U Serial Port

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)

1) Create a blank FX5U project

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

12.PLC Protocol_html_5c9cb13fac1e6c93.png

3) Select protocol in the setting item, and set parameters.

12.PLC Protocol_html_de942589ca070228.png

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

12.PLC Protocol_html_387ec7d00b5feb59.png

5) Click the [Apply] button to finish the setting.

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

  12.PLC Protocol_html_cdef1c5ec8cc2105.png

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

8) Done.

Cable Wiring

1) RS485

12.PLC Protocol_html_d4012bdeb4ce4aae.png

12.PLC Protocol_html_4bf57ad8d44eacc4.png

2) RS422

12.PLC Protocol_html_f8a6bebc5792960d.png

Note:

COM3 only available in PI8000/PI9000 series.

12.11 Mitsubishi L02 MELSEC (Ethernet)

Mitsubishi Q series CPU built-in Ethernet port.

HMI Settings

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

Address List

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

Communication Settings

1) Enable HMI Ethernet in [Project Settings];

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

12.PLC Protocol_html_38189fae42f6caa7.png

PLC Settings (GX Works2 )

1) Create a project

2) Set PLC IP, subnet mask and gateway;

3) Select [Binary Code] as communication data code;

12.PLC Protocol_html_776e17505f3fc6c0.png

4) Set PLC port number, for example 1025

12.PLC Protocol_html_8d0d1a22d388f70b.png

5) Save settings;

6) Download project into PLC device;

7) Restart PLC device;

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.12 Mitsubishi QJ71E71 MELSEC

Mitsubishi QJ71E71 Ethernet communication module;

HMI Settings

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

Address List

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

HMI Communication Settings

1) Enable HMI Ethernet in [Project Settings];

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

12.PLC Protocol_html_2d566cb5ffb2618c.png

PLC Settings(GX Works2)

1) Click [Ethernet/CC IE/MELSECNET];

2) Please select [Ethernet] as network type;

3) Set station I/O number according to situation (For example, 0000 means that the module is connected to PLC CPU in first order);

4) Select [Online] as Mode;

5) Click [Operation setting] to set IP;

6) Select [Binary Code] as [Communication Data Code];

7) Set protocol: TCP;

8) Set [unpassive] in [Open system];

9) Set [receive] in [Fixed buffer];

10) Set [procedure Exist] in [Fixed buffer communication];

11) Disable [Pairing open];

12) Set [No confirm] in [Existence confirmation];

13) Host station port number: 1025;

14) Save settings;

15) Download project into PLC and restart it

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.13 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

1) RS485

12.PLC Protocol_html_68dfb6d383f0edd9.png

12.PLC Protocol_html_cbeb90cb4faaa8bc.png

2) RS232

12.PLC Protocol_html_9030ba679545793b.png

Note:

COM3 only available in PI8000/PI9000 series.

12.14 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

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)

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

1) RS485

12.PLC Protocol_html_68dfb6d383f0edd9.png

12.PLC Protocol_html_cbeb90cb4faaa8bc.png

2) RS232

12.PLC Protocol_html_9030ba679545793b.png

Note:

COM3 only available in PI8000/PI9000 series.

12.15 MODBUS TCP Slave (All function)

Supported series: MODBUS TCP controller

HMI works as MODBUS TCP MASTER connecting with TCP SLAVE

12.PLC Protocol_html_8877cb7f39c2b607.png

12.PLC Protocol_html_e7e1f06f127a9175.png 
12.PLC Protocol_html_60bbfe5de79417a6.png
 

HMI Setting

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

Address List

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

Communication Settings

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_4bd3cc8348adecf8.png

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.16 Omron EC55

Supported device: EC55 temperature instrument

HMI Settings

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

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

Device Settings

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

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

1) COM3 only available in PI8000/PI9000 series.

2) CA address could not support continuous writing function;

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

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

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

6) Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.

7) When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.

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

9) Because 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.

12.17 Omron EtherNet/IP NX series

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

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

12.PLC Protocol_html_26f91dee66c723e9.png

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

3) Click [Label manage];

12.PLC Protocol_html_cd38d2d0c5187f6b.png

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

12.PLC Protocol_html_52bd5da678bef9b4.png

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

12.PLC Protocol_html_7f0465a589b98912.png

Communication Settings

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.18 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

1) Click [OpenCAN setting] button in communication setting window;

12.PLC Protocol_html_e866b9e56e19785d.png

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

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

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

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

2) Select Multiple package type

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

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

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

12.19 SHIMADEN FP23

Supported series: SHIMADEN FP23 series

HMI Setting

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

Address List

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

Note:

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

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

3) The Ctrl register is used to store the control group number and BCC check mode.

Ctrl Register Description

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

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

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

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

12.20 SHIMADEN SR90

Supported series: SHIMADEN SR90 series

HMI Setting

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

Address List

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

Note:

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

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

3) The Ctrl register is used to store the control group number and BCC check mode. See how to use it below;

Ctrl Register Description

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

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

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

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

12.21 SHIMADEN Standard Protocol

Supported series: SHIMADEN MR13 series

HMI Setting

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

Address List

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

Note:

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

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

3) The Ctrl register is used to store the control group number and BCC check mode.

Ctrl Register Description

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

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

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

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

12.22 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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.23 Siemens 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~DB99.DBDBxDBDDBxDB nndddd.o0.0~99999999.7

nn: block number;

dddd: address;

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

MW0=MB(0~1)

MW2=MB(2~3)

Address value is a multiple of 2

MDMD ddddd0~99999

MD0=MB(0~3)

MD4=MB(4~7)

Address value is a multiple of 4

DB0.DB~DB99.DBDBxDBBDBxDBB nndddd0~99999999

nn: block number;

dddd: address

DBxDBWDBxDBW nndddd0~99999999
DBxDBDDBxDBD nndddd0~99999999

Communication Settings

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.24 Siemens 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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_f7b3eb9abda33833.png

Note:

1) The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.

2) HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.

PLC Settings

1) Add BD

Please uncheck [Symbolic access only] option;

 12.PLC Protocol_html_643144c591994418.png

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

1) PLC configuration

a) Double click [device configuration] in Siemens via software

b) Double click [protection] to enter protection configuration screen

12.PLC Protocol_html_9779940d38da8e07.png

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

12.PLC Protocol_html_d2c667b02f9720b1.png

2) DB settings

Right click [DB], select [properties]

Uncheck [optimized block access]

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png

12.25 Siemens LOGO Ethernet

Supported Series: Siemens Logo

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:

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

12.PLC Protocol_html_8b9d2322edf89519.png

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

12.PLC Protocol_html_6c4dd041b26cd8a1.png

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

12.PLC Protocol_html_7af2611d3790a77d.png

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

12.PLC Protocol_html_3243e4cd600595cc.png 
12.PLC Protocol_html_cb1d92e2cc91a8db.png
 

HMI Communication Settings

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

12.PLC Protocol_html_573fc64ad393cd4f.png
 

2)Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_95917a3d92068467.png

3)TSAP setting

Regarding the setting of PLC TSAP, HMI provides system special address for setting, it is recommended to run in HMI script initialization, write PLC TSAP to corresponding system special register.

HSW10118 = local TSAP of HMI, this is remote TSAP of PLC.

HSW10119 = Remote TSAP of HMI, this is local TSAP of PLC.

Note:

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

12.PLC Protocol_html_5c6374b21f46e01e.png
 

2) AI word address and Ibit address are read-only and cannot be written on HMI.

3) VW address should be even number.such as VW0, VW2, VW4...

4) VD address it takes two VW addresses.such as VD0,VD4,VD8...

5) Written value of RTC cannot exceed 255.

Cable Wiring

12.PLC Protocol_html_2297240b57346b2a.png
 

12.26 Siemens S7-XXX Ethernet

Supported Series: Siemens S7-1200 and S7-1500

HMI Setting

ItemsSettingsNote
ProtocolSiemens S7-XXX 
ConnectionEthernet 
Port No.102 
PLC station No.1 (for S7-1500)/ 2 (for S7-1200) 

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

1) Enable HMI Ethernet in [Project Settings];

12.PLC Protocol_html_43b671f18153910d.png

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

12.PLC Protocol_html_f7b3eb9abda33833.png

Note:

1) The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.

2) 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.PLC Protocol_html_2297240b57346b2a.png

12.27 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

1) Select [User defined protocol];

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

12.PLC Protocol_html_5ca13817ac812cf0.png

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

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

12.PLC Protocol_html_463f2cd3a8c338fc.png

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

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

4) 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].

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

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

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

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

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

1)RS485

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

2)RS232

12.PLC Protocol_html_5de71638aab8e40d.png

Note:

COM3 only available in PI8000/PI9000 series.

12.28 WECON PLC LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM

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

1)RS485

12.PLC Protocol_html_5e9a81a14106da9e.png

12.PLC Protocol_html_1897d92be6948d58.png

2)RS422

12.PLC Protocol_html_5c7fca9a70da2ee8.png

Note:

1. HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) .

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

12.29 TSPL Printer

I. Introduction

TSPL label printer protocol supports DL-888D, SPRT TL21 series printers

II. Setting Step

1) Select the protocol

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

12.PLC Protocol_html_a2bec264816230db.png

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

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

1.Set paper size:

TSPL_SP0: width of paper, unit: mm.

  TSPL_SP1: height of paper, unit: mm.

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

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

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

5.Print offset:

     TSPL_PR0: X coordinate offset, unit: mm;

     TSPL_PR1: Y coordinate offset, unit: mm.

6.Trigger printing:

     TSPL_PN0 = 1: trigger the printer to start printing.

7.Printing status:

     TSPL_PS0 = 1: The printing is normal.

    TSPL_PS0 = 1: The printing is abnormal.

4)Print picture

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

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

Tags:
Created by Hunter on 2021/06/19 07:36