Communicate With S7-1200 Via Ehernet
Communicate With S7-1200 Via Ehernet
Communicate with
S7-1200 via
Ethernet
Website: http://www.we-con.com.cn/en
Technical Support: liux@we-con.com.cn
Skype: “fcwkkj” or “Jason.chen842”
Phone: 86-591-87868869
QQ Tech Group: 465230233
Technical forum: http://wecon.freeforums.net/
WECON Technology Co., Ltd.
WECON PI Series HMI
1. General
WECON HMI could communicate with devices via Ethernet port, in this document use SIEMENS
S7-1200 series PLC as example.
2. Select protocol
Please select the Siemens S7-1200 Ethernet protocol in HMI project as following figure shows.
3. Communication parameters
Users can set PLC IP in [TCP/IP parameters];
The PLC port No,:102 (fixed);
Network: TCP_Client_2N (fixed);
Wait Timeout (ms):1500 (fixed);
4. Remark
1) S7-1200 supports three devices connected at the same time, so the protocol supports three accesses
HMI to PLC.
2) HMI access PLC, using the S7 protocol. The TSAP in PLC is 02.01 (S7-1200 PROFINET interface
only three connections supported by default). Please reference S7-1200 system manual for detailed
information.
3) Access BD data block
Add BD data block
5. Register settings
The register setting for SIEMENS S7-1200 in HMI screen as following table shows.
Register HMI
PLC registers Format Range Remark
types registers
MB M MBn 0 – 99,999
MW M MWn 0 – 99,999 MW0=MB0-1,
MW1=MB2-3.
MD M MDn 0 – 99,999 MD0=WB0-3,
MD1=WB4-7
Parts need to be
Word set as double
registers word.
IW I IWn 0 – 99,999
QW Q QWn 0 – 99,999
DBxDBB DB0.BD – DB99.DB DBxDBBnnxxxx 000,000 – 999,999 “nn” means
DBxDBW DB0.BD – DB99.DB DBxDBWnnxxxx 000,000 – 999,999 block number,
DBxDBD DB0.BD – DB99.DB DBxDBDnnxxxx 000,000 – 999,999 “xxxx” means
address.