SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
Copyright © 2019 Moxa Inc. Released on August 14, 2019
About Moxa
Moxa is a leading manufacturer of industrial networking, computing, and automation
solutions. With over 25 years of industry experience, Moxa has connected more than 30
million devices worldwide and has a distribution and service network that reaches
customers in more than 70 countries. Moxa delivers lasting business value by
empowering industry with reliable networks and sincere service for automation systems.
Information about Moxa’s solutions is available at www.moxa.com. You may also contact
Moxa by email at info@moxa.com.
How to Contact Moxa
Tel: +886-2-8919-1230
Fax: +886-2-8919-1231
How to Use the TIA Portal to Set a Siemens PLC and the
MGate 5103
Moxa Technical Support Team
support@moxa.com
Contents
1 Application Description ...................................................................2
2 System Topology.............................................................................3
3 Required Equipment and Components ............................................4
A. TIA Portal V14 ............................................................................................ 4
B. Modbus Slave ............................................................................................. 4
C. MGate 5103 Firmware.................................................................................. 4
D. MGate 5103’s GSDML File............................................................................. 4
4 MGate 5103 Settings.......................................................................5
A. Protocol Conversion..................................................................................... 5
B. Configure Modbus Commands ....................................................................... 5
C. Configure PROFINET Setting ......................................................................... 7
D. I/O Data Mapping........................................................................................ 7
5 Siemens PLC Setting .......................................................................8
6 Communication Test .....................................................................21
A. Status Monitoring...................................................................................... 21
B. Fault Protection......................................................................................... 26
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 2 of 29
1 Application Description
The TIA Portal is Siemens’s new software platform to configure and program S7-
300/400/1200/1500 PLCs. This technical note demonstrates how to configure the Siemens
S7-300 to connect with the MGate 5103 in TIA Portal V14.
The MGate 5103 supports a variety of maintenance functions, such as Protocol
Diagnostics, Traffic Monitoring, Status Monitoring, and Fault Protection. The Status
Monitoring function notifies a PLC/DCS/SCADA system when a Modbus device gets
disconnected or does not respond. If a command has run successfully, the status bit’s value
will be 1. If a command has failed, the status bit’s value will then be 0. In this case, the
master device will be aware of the failure status of the slave device. When a PROFINET
connection is disconnected, the Fault Protection function executes actions on end devices
identified by a pre-defined value set by the user.
This technical note also demonstrates how the PROFINET IO controller (Siemens PLC) receive
these Modbus command statuses by sending PROFINET Acyclic Read commands, as well as
how the Fault Protection function works. We also demonstrated how to use the Protocol
Diagnostics and Traffic Monitoring functions for troubleshooting.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 3 of 29
2 System Topology
This technical note demonstrates how to exchange data between a PROFINET IO controller
and six Modbus RTU slaves. The Modbus RTU slave IDs 1-3 use Modbus Read command, and
shows the Status Monitoring function. The Modbus RTU slave IDs 4-6 use Modbus Write
command, and shows the Fault Protection function.
We use Siemens S7-300 as the PROFINET IO controller to connect the MGate 5103. On
a PC, we run Modbus Slave tools to simulate Modbus RTU slaves and connect to the MGate
5103’s serial port.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 4 of 29
3 Required Equipment and Components
A. TIA Portal V14
As a registered Siemens’s customer, you can download the trial software for the TIA
Portal V14 and test it for 21 days.
Version: V14
Download Website:
https://support.industry.siemens.com/cs/document/109740158/simatic-step-7-(tia-
portal)-v14-trial-download?dti=0&lc=en-WW
B. Modbus Slave
Modbus Slave is a very popular Modbus slave simulator to test and debug of your
Modbus devices. It supports Modbus RTU/ASCII and Modbus TCP/IP.
Version: V6+
Download Website: http://www.modbustools.com/download.html
C. MGate 5103 Firmware
Version: V.1.0 or higher
Download Website: http://www.moxa.com
D. MGate 5103’s GSDML File
The GSDML (General Station Description Mark-Up Language) file is an electronic device
datasheet or device database file that identifies the PROFINET IO device. This file can be
installed into the PROFINET Engineering Tool, e.g., the TIA Portal, so that this PROFINET
Engineering Tool can configure the PROFINET IO Device.
Version: GSDML-V2.2-Moxa-Device0202-20170502.xml/GSDML-V2.3-Moxa-
Device0202-20170502.xml
Download Website: http://www.moxa.com
Note: For wiring, please refer to the MGate 5103’s User’s Manual.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 5 of 29
4 MGate 5103 Settings
For details, please refer to the MGate 5103 user’s manual. You can download it from
www.moxa.com
A. Protocol Conversion
Log in to the MGate 5103’s Web Console. Set Protocol Conversion: Role 1 as
PROFINET IO Device, Role 2 as Modbus RTU/ASCII Master.
B. Configure Modbus Commands
Under Modbus RTU/ASCII setting, set Modbus as RTU, Max. retry as 0. The default
of this value is 3. Change this value to 0 in order to quickly detect when a Modbus
command failed.
Then add the commands below to poll Slave ID1-ID3’s register 0, and add Function
Code 06 commands to write Slave ID4-ID6’s register 0.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 6 of 29
For ID4 command’s Fault Protection, keep it as Keep latest data.
For ID5 command’s Fault Protection, choose Clear all data bit to 0 and set Fault
timeout as 10000 ms.
For ID6 command’s Fault Protection, choose Set to user defined value and set
Fault value as 0xFF 0xFF . Fault timeout is set as 10000 ms.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 7 of 29
C. Configure PROFINET Setting
Only the Device Name needs to be set. Set it as mgate-dev.
D. I/O Data Mapping
Allow the MGate to automap the data on both sides of the MGate’s IO Internal Memory.
Check I/O Data Mapping with Data flow direction: PROFINET IO Controller 
Modbus RTU/ASCII Slave or PROFINET IO Controller  Modbus RTU/ASCII
Slave. Make sure the PROFINET Output or Input Slot Size is fully and correctly
mapped to Modbus Internal Address.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 8 of 29
5 Siemens PLC Setting
(1) Create a new project.
(2) After the project is successfully created, click Configure a device to add the
PLC.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 9 of 29
According to the actual PLC’s CPU model, select it from “Controllers  S7-300 
CPU” as below:
(3) Click PLC’s PROFINET interface_1 to set its IP Address.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 10 of 29
(4) Click Add new subnet to create subnet as PN/IE_1.
(5) Click Options  Manage general station description to install the MGate
5103’s GSD file.
Select the latest version of the MGate 5103, V2.3, and then click Install.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 11 of 29
Make sure the installation is successful.
(6) In the Hardware catalog window, filter “moxa” to search the MGate 5103.
Choose the Moxa PROFINET Device 0202 device icon, and drag and drop to
PN/IE_1 subnet.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 12 of 29
(7) Under Network view, it shows that the MGate 5103 is in the PN/IE_1
subnet. Click Not assigned to assign the MGate 5103 to PN/IE_1.
Then MGate 5103 is set into the PLC_1’s PROFINET IO System.
If your MGate 5103 Device Name is not mgate-dev, you can modify it via Properties
 General  Name”.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 13 of 29
(8) Under the MGate 5103’s Device view, drag and drop Input 006 Byte to Slot
1. Assign the I address to 0-5.
Drag and drop Output 006 Byte to Slot 2. Assign the Q address to 0-5.
(9) We want to get the register values of Modbus ID1- ID3 and make sure these
Modbus commands’ responses are valid. If a Modbus command’s response is
invalid or times out, the register value will show 0xFFFF. We will show the
details later. We created these tags below:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 14 of 29
Click Main [OB1] to edit program.
Drag and Drop the RDREC function block to Network 1. DB setting pops up to add
RDREC Instance. Click OK to apply it.
Fill in the input/output parameters as below:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 15 of 29
Parameter descriptions:
①. REQ: If this bit is true, the request will be sent to the MGate 5103.
②. VALID: Bit memory M11.1 indicates whether a new data record was received and
valid.
③. BUSY: Bit memory M11.2 indicates whether the read process has been terminated.
④. ERROR: Bit memory M11.3 indicates whether an error occurred while processing the
function.
⑤. STATUS: The bit memory - double word MD12 contains block status or error
information.
⑥. ID: It is the PN-IO diagnostic address, which is 2041, as below. This address is
used for PROFINET acyclic read/write for the MGate 5103 to do some pre-define
diagnoses.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 16 of 29
If you use the CPU 1200 or 1500 Series, then the ID should be taken from System
constants or the General->PROFINET interface->Hardware identifier field.
⑦. INDEX: Data record number. For the MGate 5103, the command status starting
address is 30000.
⑧. MLEN: The maximum length of bytes of the data record information to be fetched.
In this demo, we only need one byte to get command 1-3 status (Bit 0-2).
⑨. RECORD: The destination area for the read data record. We use MB10 to store it.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 17 of 29
Other Networks’ programs are illustrated as below:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 18 of 29
(10) Execute Compile and make sure there is no error.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 19 of 29
(11) Execute Download.
Click Start Search to search an accessible PLC.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 20 of 29
When an accessible PLC has been found, execute Load.
The TIA Portal will check hardware and software consistency. After checking for any
errors, click Load to download.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 21 of 29
After loading, enable Start all to start modules, then click Finish.
6 Communication Test
A. Status Monitoring
(1) PC runs the Modbus Slave tool to connect to the MGate 5103’s Serial port.
Add slave ID1-ID3 and set each one’s register 0’s value as 1, 2, 3, respectively.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 22 of 29
(2) Click Add new watch table to create the Watch table_1.
Add the tags below to be monitored:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 23 of 29
(3) Click Go online,then click Monitor all.
If ReqBit status is not True, you can input True under the Modify value column, click
the Modify button to enable send request.
We can see RecordByte shows a value of 7, pointing out that the commands 1-3 are
successful. The ID1Value-ID3Value are running as 1, 2, 3, respectively.
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 24 of 29
(4) We can use the MGate’s Protocol Diagnostics tool on the Web Console to check
Modbus and PROFINET communication status:
Via System Monitoring  Protocol Status  Modbus RTU/ASCII Diagnose, we
can see its Received Valid response counter is equal to the Sent request counter.
Via System Monitoring  Protocol Status  Modbus RTU/ASCII Traffic, we can
log Modbus RTU communication traffic:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 25 of 29
Via System Monitoring  Protocol Status  PROFINET Diagnose, we can see its
Connected PLC MAC Address:
Via System Monitoring  Protocol Status  I/O Data View, we can choose
PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side to see the
Modbus slave input data:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 26 of 29
(5) Disable Modbus Slave ID 2 on Modbus Slave tool, so Modbus Command 2
can’t receive any responses. Check Watch table, RecordByte shows a value
of 5 and ID2value is updated as 0xFFFF.
Check Modbus RTU/ASCII Diagnose, the Timeout counter is increasing:
B. Fault Protection
(1) Add slave ID4-ID6 on the Modbus Slave tool as below:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 27 of 29
(2) On Watch table, we set Modify value under QW0 as 0x0004, QW2 as 0x0005,
QW4 as 0x0006. Then click the Modify button.
(3) Check Modbus Slave ID 4-ID6; they are updated as 0x0004, 0x0005, 0x0006.
Via System Monitoring  Protocol Status  I/O Data View, we can choose
PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side to see the
PROFINET output data:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 28 of 29
(4) Shut down the PLC. After 10000 ms, the Fault Timeout is on. Check whether
Modbus Slave ID 4’s register 0 value still is 0x0004. Slave ID 5’s register 0
value is updated as 0x0000, and Slave ID 6’s register 0 value is updated as
0xFFFF.
Check PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side; they all
updated as its Fault Value:
Check PROFINET Diagnose. Its Connected PLC MAC Address shows Not
Connected:
Moxa Tech Note
How to Use the TIA Portal to Set
the Siemens PLC and the MGate 5103
Copyright © 2019 Moxa Inc. Page 29 of 29

Weitere ähnliche Inhalte

Was ist angesagt?

AS-I Maintenance & Troubleshooting Guide
AS-I Maintenance & Troubleshooting GuideAS-I Maintenance & Troubleshooting Guide
AS-I Maintenance & Troubleshooting Guide
Danius Silgalis
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)
ammu59
 
Auto dial-er Home security
Auto dial-er Home securityAuto dial-er Home security
Auto dial-er Home security
vaibhav jindal
 
Rc 500射频芯片
Rc 500射频芯片Rc 500射频芯片
Rc 500射频芯片
guestb549bc
 
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLERGSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
Md. Moktarul Islam
 
Advanced motion controls mc4xdzp01
Advanced motion controls mc4xdzp01Advanced motion controls mc4xdzp01
Advanced motion controls mc4xdzp01
Electromate
 
Gsm modem interfacing with pic microcontroller
Gsm modem interfacing with pic microcontrollerGsm modem interfacing with pic microcontroller
Gsm modem interfacing with pic microcontroller
Yonas Andualem
 
JVL Industrial Ethernet Expansion Modules for MAC Motors
JVL Industrial Ethernet Expansion Modules for MAC MotorsJVL Industrial Ethernet Expansion Modules for MAC Motors
JVL Industrial Ethernet Expansion Modules for MAC Motors
Electromate
 

Was ist angesagt? (20)

Bently Nevada 3500 System Datasheet
Bently Nevada 3500 System DatasheetBently Nevada 3500 System Datasheet
Bently Nevada 3500 System Datasheet
 
AS-I Overview Brochure
AS-I Overview BrochureAS-I Overview Brochure
AS-I Overview Brochure
 
AS-I Maintenance & Troubleshooting Guide
AS-I Maintenance & Troubleshooting GuideAS-I Maintenance & Troubleshooting Guide
AS-I Maintenance & Troubleshooting Guide
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)
 
Auto dial-er Home security
Auto dial-er Home securityAuto dial-er Home security
Auto dial-er Home security
 
Programmable command-line interface API for managing operation of a network d...
Programmable command-line interface API for managing operation of a network d...Programmable command-line interface API for managing operation of a network d...
Programmable command-line interface API for managing operation of a network d...
 
Dc40 d mk3
Dc40 d mk3Dc40 d mk3
Dc40 d mk3
 
5 140326040112-phpapp01
5 140326040112-phpapp015 140326040112-phpapp01
5 140326040112-phpapp01
 
Rc 500射频芯片
Rc 500射频芯片Rc 500射频芯片
Rc 500射频芯片
 
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLERGSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
 
Advanced motion controls mc4xdzp01
Advanced motion controls mc4xdzp01Advanced motion controls mc4xdzp01
Advanced motion controls mc4xdzp01
 
Gsm modem interfacing with pic microcontroller
Gsm modem interfacing with pic microcontrollerGsm modem interfacing with pic microcontroller
Gsm modem interfacing with pic microcontroller
 
Introduction to IO-Link - Peter Thomas
Introduction to IO-Link - Peter ThomasIntroduction to IO-Link - Peter Thomas
Introduction to IO-Link - Peter Thomas
 
Cisco NM1FE2W
Cisco NM1FE2WCisco NM1FE2W
Cisco NM1FE2W
 
Chapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networksChapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networks
 
CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7CCNA 2 Routing and Switching v5.0 Chapter 7
CCNA 2 Routing and Switching v5.0 Chapter 7
 
JVL Industrial Ethernet Expansion Modules for MAC Motors
JVL Industrial Ethernet Expansion Modules for MAC MotorsJVL Industrial Ethernet Expansion Modules for MAC Motors
JVL Industrial Ethernet Expansion Modules for MAC Motors
 
Lp0044
Lp0044Lp0044
Lp0044
 
An introduction to IO-Link - Peter Thomas - Oct 2015
An introduction to IO-Link - Peter Thomas - Oct 2015An introduction to IO-Link - Peter Thomas - Oct 2015
An introduction to IO-Link - Peter Thomas - Oct 2015
 
Simocodes at Dwaalboom
Simocodes at DwaalboomSimocodes at Dwaalboom
Simocodes at Dwaalboom
 

Ähnlich wie PLC: cómo usar el tia-portal para configurar un PLC siemens y el mgate-5103 tech note-v1.1

SynTrust Solution Presentaion file-V16
SynTrust Solution Presentaion file-V16SynTrust Solution Presentaion file-V16
SynTrust Solution Presentaion file-V16
Jason Chuang
 
Multiuser sms based microcontroller wireless electronic board
Multiuser sms based microcontroller wireless electronic boardMultiuser sms based microcontroller wireless electronic board
Multiuser sms based microcontroller wireless electronic board
Kalees Pandiyan
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
Quantum Composers
 
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V IzzoKeynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
mfrancis
 
Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...
Iaetsd Iaetsd
 
Tn08 twido wonderware_e
Tn08 twido wonderware_eTn08 twido wonderware_e
Tn08 twido wonderware_e
UNEXPO
 
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
topomax
 

Ähnlich wie PLC: cómo usar el tia-portal para configurar un PLC siemens y el mgate-5103 tech note-v1.1 (20)

Micro Smart PLC IDEC - www.haophuong.com
Micro Smart PLC IDEC - www.haophuong.comMicro Smart PLC IDEC - www.haophuong.com
Micro Smart PLC IDEC - www.haophuong.com
 
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
 
Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3
 
SynTrust Solution Presentaion file-V16
SynTrust Solution Presentaion file-V16SynTrust Solution Presentaion file-V16
SynTrust Solution Presentaion file-V16
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
 
Multiuser sms based microcontroller wireless electronic board
Multiuser sms based microcontroller wireless electronic boardMultiuser sms based microcontroller wireless electronic board
Multiuser sms based microcontroller wireless electronic board
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
 
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V IzzoKeynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
Keynote - The Connected Home - It Starts With a Managed Service Gateway - V Izzo
 
Soracom iot hands-on workshop in Montreal
Soracom iot hands-on workshop in MontrealSoracom iot hands-on workshop in Montreal
Soracom iot hands-on workshop in Montreal
 
Mvi56 mcm datasheet
Mvi56 mcm datasheetMvi56 mcm datasheet
Mvi56 mcm datasheet
 
NithyaS_finalreview_IDP1_PPT.pptx
NithyaS_finalreview_IDP1_PPT.pptxNithyaS_finalreview_IDP1_PPT.pptx
NithyaS_finalreview_IDP1_PPT.pptx
 
Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...
 
987650-6032
987650-6032987650-6032
987650-6032
 
Dp s7300
Dp s7300Dp s7300
Dp s7300
 
WISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdfWISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdf
 
Development of A web and GSM Based Monitoring and Controlling System for PLC ...
Development of A web and GSM Based Monitoring and Controlling System for PLC ...Development of A web and GSM Based Monitoring and Controlling System for PLC ...
Development of A web and GSM Based Monitoring and Controlling System for PLC ...
 
Tn08 twido wonderware_e
Tn08 twido wonderware_eTn08 twido wonderware_e
Tn08 twido wonderware_e
 
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
 
IoT M2M Connectivity Insights from Patents
IoT M2M Connectivity Insights from PatentsIoT M2M Connectivity Insights from Patents
IoT M2M Connectivity Insights from Patents
 
SIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنزSIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنز
 

Mehr von SANTIAGO PABLO ALBERTO

Programacion de PLC basado en Rslogix 500 por Roni Domínguez
Programacion de PLC basado en Rslogix 500 por Roni Domínguez Programacion de PLC basado en Rslogix 500 por Roni Domínguez
Programacion de PLC basado en Rslogix 500 por Roni Domínguez
SANTIAGO PABLO ALBERTO
 
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
SANTIAGO PABLO ALBERTO
 
Programación de autómatas PLC OMRON CJ/CP1
Programación de  autómatas PLC OMRON CJ/CP1Programación de  autómatas PLC OMRON CJ/CP1
Programación de autómatas PLC OMRON CJ/CP1
SANTIAGO PABLO ALBERTO
 
Manual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMARTManual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMART
SANTIAGO PABLO ALBERTO
 
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
SANTIAGO PABLO ALBERTO
 
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
SANTIAGO PABLO ALBERTO
 
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
SANTIAGO PABLO ALBERTO
 
Electrónica digital: Introducción a la Lógica Digital - Teoría, Problemas y ...
Electrónica digital:  Introducción a la Lógica Digital - Teoría, Problemas y ...Electrónica digital:  Introducción a la Lógica Digital - Teoría, Problemas y ...
Electrónica digital: Introducción a la Lógica Digital - Teoría, Problemas y ...
SANTIAGO PABLO ALBERTO
 

Mehr von SANTIAGO PABLO ALBERTO (20)

secuencia electroneumática parte 1
secuencia electroneumática parte 1secuencia electroneumática parte 1
secuencia electroneumática parte 1
 
secuencia electroneumática parte 2
secuencia electroneumática parte 2secuencia electroneumática parte 2
secuencia electroneumática parte 2
 
Manual de teoría y practica electroneumática avanzada
Manual de teoría y practica electroneumática avanzadaManual de teoría y practica electroneumática avanzada
Manual de teoría y practica electroneumática avanzada
 
Programacion de PLC basado en Rslogix 500 por Roni Domínguez
Programacion de PLC basado en Rslogix 500 por Roni Domínguez Programacion de PLC basado en Rslogix 500 por Roni Domínguez
Programacion de PLC basado en Rslogix 500 por Roni Domínguez
 
Programación de microcontroladores PIC en C con Fabio Pereira
Programación de microcontroladores PIC en  C con Fabio PereiraProgramación de microcontroladores PIC en  C con Fabio Pereira
Programación de microcontroladores PIC en C con Fabio Pereira
 
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
Análisis y Diseño de Sistemas de Control Digital por Ricardo Fernandez del Bu...
 
Arduino: Arduino de cero a experto
Arduino: Arduino de cero a expertoArduino: Arduino de cero a experto
Arduino: Arduino de cero a experto
 
Fisica I
Fisica IFisica I
Fisica I
 
Quimica.pdf
Quimica.pdfQuimica.pdf
Quimica.pdf
 
Manual básico PLC OMRON
Manual básico PLC OMRON Manual básico PLC OMRON
Manual básico PLC OMRON
 
Programación de autómatas PLC OMRON CJ/CP1
Programación de  autómatas PLC OMRON CJ/CP1Programación de  autómatas PLC OMRON CJ/CP1
Programación de autómatas PLC OMRON CJ/CP1
 
Manual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMARTManual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMART
 
Catálogo de PLC S7-200 SMART
Catálogo de PLC S7-200 SMART Catálogo de PLC S7-200 SMART
Catálogo de PLC S7-200 SMART
 
PLC: Automatismos industriales
PLC: Automatismos industrialesPLC: Automatismos industriales
PLC: Automatismos industriales
 
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
PLC: Buses industriales y de campo practicas de laboratorio por Jose Miguel R...
 
PLC y Electroneumática: Electricidad y Automatismo eléctrico por Luis Miguel...
PLC y Electroneumática: Electricidad y Automatismo eléctrico por  Luis Miguel...PLC y Electroneumática: Electricidad y Automatismo eléctrico por  Luis Miguel...
PLC y Electroneumática: Electricidad y Automatismo eléctrico por Luis Miguel...
 
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
Electrónica: Diseño y desarrollo de circuitos impresos con Kicad por Miguel P...
 
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
PLC: Diseño, construcción y control de un motor doble Dahlander(cuatro veloci...
 
PLC: Motor Dahlander
PLC: Motor DahlanderPLC: Motor Dahlander
PLC: Motor Dahlander
 
Electrónica digital: Introducción a la Lógica Digital - Teoría, Problemas y ...
Electrónica digital:  Introducción a la Lógica Digital - Teoría, Problemas y ...Electrónica digital:  Introducción a la Lógica Digital - Teoría, Problemas y ...
Electrónica digital: Introducción a la Lógica Digital - Teoría, Problemas y ...
 

Kürzlich hochgeladen

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 

PLC: cómo usar el tia-portal para configurar un PLC siemens y el mgate-5103 tech note-v1.1

  • 1. Copyright © 2019 Moxa Inc. Released on August 14, 2019 About Moxa Moxa is a leading manufacturer of industrial networking, computing, and automation solutions. With over 25 years of industry experience, Moxa has connected more than 30 million devices worldwide and has a distribution and service network that reaches customers in more than 70 countries. Moxa delivers lasting business value by empowering industry with reliable networks and sincere service for automation systems. Information about Moxa’s solutions is available at www.moxa.com. You may also contact Moxa by email at info@moxa.com. How to Contact Moxa Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 How to Use the TIA Portal to Set a Siemens PLC and the MGate 5103 Moxa Technical Support Team support@moxa.com Contents 1 Application Description ...................................................................2 2 System Topology.............................................................................3 3 Required Equipment and Components ............................................4 A. TIA Portal V14 ............................................................................................ 4 B. Modbus Slave ............................................................................................. 4 C. MGate 5103 Firmware.................................................................................. 4 D. MGate 5103’s GSDML File............................................................................. 4 4 MGate 5103 Settings.......................................................................5 A. Protocol Conversion..................................................................................... 5 B. Configure Modbus Commands ....................................................................... 5 C. Configure PROFINET Setting ......................................................................... 7 D. I/O Data Mapping........................................................................................ 7 5 Siemens PLC Setting .......................................................................8 6 Communication Test .....................................................................21 A. Status Monitoring...................................................................................... 21 B. Fault Protection......................................................................................... 26
  • 2. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 2 of 29 1 Application Description The TIA Portal is Siemens’s new software platform to configure and program S7- 300/400/1200/1500 PLCs. This technical note demonstrates how to configure the Siemens S7-300 to connect with the MGate 5103 in TIA Portal V14. The MGate 5103 supports a variety of maintenance functions, such as Protocol Diagnostics, Traffic Monitoring, Status Monitoring, and Fault Protection. The Status Monitoring function notifies a PLC/DCS/SCADA system when a Modbus device gets disconnected or does not respond. If a command has run successfully, the status bit’s value will be 1. If a command has failed, the status bit’s value will then be 0. In this case, the master device will be aware of the failure status of the slave device. When a PROFINET connection is disconnected, the Fault Protection function executes actions on end devices identified by a pre-defined value set by the user. This technical note also demonstrates how the PROFINET IO controller (Siemens PLC) receive these Modbus command statuses by sending PROFINET Acyclic Read commands, as well as how the Fault Protection function works. We also demonstrated how to use the Protocol Diagnostics and Traffic Monitoring functions for troubleshooting.
  • 3. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 3 of 29 2 System Topology This technical note demonstrates how to exchange data between a PROFINET IO controller and six Modbus RTU slaves. The Modbus RTU slave IDs 1-3 use Modbus Read command, and shows the Status Monitoring function. The Modbus RTU slave IDs 4-6 use Modbus Write command, and shows the Fault Protection function. We use Siemens S7-300 as the PROFINET IO controller to connect the MGate 5103. On a PC, we run Modbus Slave tools to simulate Modbus RTU slaves and connect to the MGate 5103’s serial port.
  • 4. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 4 of 29 3 Required Equipment and Components A. TIA Portal V14 As a registered Siemens’s customer, you can download the trial software for the TIA Portal V14 and test it for 21 days. Version: V14 Download Website: https://support.industry.siemens.com/cs/document/109740158/simatic-step-7-(tia- portal)-v14-trial-download?dti=0&lc=en-WW B. Modbus Slave Modbus Slave is a very popular Modbus slave simulator to test and debug of your Modbus devices. It supports Modbus RTU/ASCII and Modbus TCP/IP. Version: V6+ Download Website: http://www.modbustools.com/download.html C. MGate 5103 Firmware Version: V.1.0 or higher Download Website: http://www.moxa.com D. MGate 5103’s GSDML File The GSDML (General Station Description Mark-Up Language) file is an electronic device datasheet or device database file that identifies the PROFINET IO device. This file can be installed into the PROFINET Engineering Tool, e.g., the TIA Portal, so that this PROFINET Engineering Tool can configure the PROFINET IO Device. Version: GSDML-V2.2-Moxa-Device0202-20170502.xml/GSDML-V2.3-Moxa- Device0202-20170502.xml Download Website: http://www.moxa.com Note: For wiring, please refer to the MGate 5103’s User’s Manual.
  • 5. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 5 of 29 4 MGate 5103 Settings For details, please refer to the MGate 5103 user’s manual. You can download it from www.moxa.com A. Protocol Conversion Log in to the MGate 5103’s Web Console. Set Protocol Conversion: Role 1 as PROFINET IO Device, Role 2 as Modbus RTU/ASCII Master. B. Configure Modbus Commands Under Modbus RTU/ASCII setting, set Modbus as RTU, Max. retry as 0. The default of this value is 3. Change this value to 0 in order to quickly detect when a Modbus command failed. Then add the commands below to poll Slave ID1-ID3’s register 0, and add Function Code 06 commands to write Slave ID4-ID6’s register 0.
  • 6. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 6 of 29 For ID4 command’s Fault Protection, keep it as Keep latest data. For ID5 command’s Fault Protection, choose Clear all data bit to 0 and set Fault timeout as 10000 ms. For ID6 command’s Fault Protection, choose Set to user defined value and set Fault value as 0xFF 0xFF . Fault timeout is set as 10000 ms.
  • 7. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 7 of 29 C. Configure PROFINET Setting Only the Device Name needs to be set. Set it as mgate-dev. D. I/O Data Mapping Allow the MGate to automap the data on both sides of the MGate’s IO Internal Memory. Check I/O Data Mapping with Data flow direction: PROFINET IO Controller  Modbus RTU/ASCII Slave or PROFINET IO Controller  Modbus RTU/ASCII Slave. Make sure the PROFINET Output or Input Slot Size is fully and correctly mapped to Modbus Internal Address.
  • 8. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 8 of 29 5 Siemens PLC Setting (1) Create a new project. (2) After the project is successfully created, click Configure a device to add the PLC.
  • 9. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 9 of 29 According to the actual PLC’s CPU model, select it from “Controllers  S7-300  CPU” as below: (3) Click PLC’s PROFINET interface_1 to set its IP Address.
  • 10. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 10 of 29 (4) Click Add new subnet to create subnet as PN/IE_1. (5) Click Options  Manage general station description to install the MGate 5103’s GSD file. Select the latest version of the MGate 5103, V2.3, and then click Install.
  • 11. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 11 of 29 Make sure the installation is successful. (6) In the Hardware catalog window, filter “moxa” to search the MGate 5103. Choose the Moxa PROFINET Device 0202 device icon, and drag and drop to PN/IE_1 subnet.
  • 12. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 12 of 29 (7) Under Network view, it shows that the MGate 5103 is in the PN/IE_1 subnet. Click Not assigned to assign the MGate 5103 to PN/IE_1. Then MGate 5103 is set into the PLC_1’s PROFINET IO System. If your MGate 5103 Device Name is not mgate-dev, you can modify it via Properties  General  Name”.
  • 13. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 13 of 29 (8) Under the MGate 5103’s Device view, drag and drop Input 006 Byte to Slot 1. Assign the I address to 0-5. Drag and drop Output 006 Byte to Slot 2. Assign the Q address to 0-5. (9) We want to get the register values of Modbus ID1- ID3 and make sure these Modbus commands’ responses are valid. If a Modbus command’s response is invalid or times out, the register value will show 0xFFFF. We will show the details later. We created these tags below:
  • 14. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 14 of 29 Click Main [OB1] to edit program. Drag and Drop the RDREC function block to Network 1. DB setting pops up to add RDREC Instance. Click OK to apply it. Fill in the input/output parameters as below:
  • 15. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 15 of 29 Parameter descriptions: ①. REQ: If this bit is true, the request will be sent to the MGate 5103. ②. VALID: Bit memory M11.1 indicates whether a new data record was received and valid. ③. BUSY: Bit memory M11.2 indicates whether the read process has been terminated. ④. ERROR: Bit memory M11.3 indicates whether an error occurred while processing the function. ⑤. STATUS: The bit memory - double word MD12 contains block status or error information. ⑥. ID: It is the PN-IO diagnostic address, which is 2041, as below. This address is used for PROFINET acyclic read/write for the MGate 5103 to do some pre-define diagnoses.
  • 16. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 16 of 29 If you use the CPU 1200 or 1500 Series, then the ID should be taken from System constants or the General->PROFINET interface->Hardware identifier field. ⑦. INDEX: Data record number. For the MGate 5103, the command status starting address is 30000. ⑧. MLEN: The maximum length of bytes of the data record information to be fetched. In this demo, we only need one byte to get command 1-3 status (Bit 0-2). ⑨. RECORD: The destination area for the read data record. We use MB10 to store it.
  • 17. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 17 of 29 Other Networks’ programs are illustrated as below:
  • 18. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 18 of 29 (10) Execute Compile and make sure there is no error.
  • 19. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 19 of 29 (11) Execute Download. Click Start Search to search an accessible PLC.
  • 20. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 20 of 29 When an accessible PLC has been found, execute Load. The TIA Portal will check hardware and software consistency. After checking for any errors, click Load to download.
  • 21. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 21 of 29 After loading, enable Start all to start modules, then click Finish. 6 Communication Test A. Status Monitoring (1) PC runs the Modbus Slave tool to connect to the MGate 5103’s Serial port. Add slave ID1-ID3 and set each one’s register 0’s value as 1, 2, 3, respectively.
  • 22. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 22 of 29 (2) Click Add new watch table to create the Watch table_1. Add the tags below to be monitored:
  • 23. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 23 of 29 (3) Click Go online,then click Monitor all. If ReqBit status is not True, you can input True under the Modify value column, click the Modify button to enable send request. We can see RecordByte shows a value of 7, pointing out that the commands 1-3 are successful. The ID1Value-ID3Value are running as 1, 2, 3, respectively.
  • 24. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 24 of 29 (4) We can use the MGate’s Protocol Diagnostics tool on the Web Console to check Modbus and PROFINET communication status: Via System Monitoring  Protocol Status  Modbus RTU/ASCII Diagnose, we can see its Received Valid response counter is equal to the Sent request counter. Via System Monitoring  Protocol Status  Modbus RTU/ASCII Traffic, we can log Modbus RTU communication traffic:
  • 25. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 25 of 29 Via System Monitoring  Protocol Status  PROFINET Diagnose, we can see its Connected PLC MAC Address: Via System Monitoring  Protocol Status  I/O Data View, we can choose PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side to see the Modbus slave input data:
  • 26. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 26 of 29 (5) Disable Modbus Slave ID 2 on Modbus Slave tool, so Modbus Command 2 can’t receive any responses. Check Watch table, RecordByte shows a value of 5 and ID2value is updated as 0xFFFF. Check Modbus RTU/ASCII Diagnose, the Timeout counter is increasing: B. Fault Protection (1) Add slave ID4-ID6 on the Modbus Slave tool as below:
  • 27. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 27 of 29 (2) On Watch table, we set Modify value under QW0 as 0x0004, QW2 as 0x0005, QW4 as 0x0006. Then click the Modify button. (3) Check Modbus Slave ID 4-ID6; they are updated as 0x0004, 0x0005, 0x0006. Via System Monitoring  Protocol Status  I/O Data View, we can choose PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side to see the PROFINET output data:
  • 28. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 28 of 29 (4) Shut down the PLC. After 10000 ms, the Fault Timeout is on. Check whether Modbus Slave ID 4’s register 0 value still is 0x0004. Slave ID 5’s register 0 value is updated as 0x0000, and Slave ID 6’s register 0 value is updated as 0xFFFF. Check PROFINET IO Controller  Modbus RTU/ASCII Slave data flow side; they all updated as its Fault Value: Check PROFINET Diagnose. Its Connected PLC MAC Address shows Not Connected:
  • 29. Moxa Tech Note How to Use the TIA Portal to Set the Siemens PLC and the MGate 5103 Copyright © 2019 Moxa Inc. Page 29 of 29