Process Data Acquisition and Monitoring with the SIMATIC S7-1200 (Data Logging)
Supermarkets and discounters must ensure the cooling of certain foods. If the cold chain is broken, the foods can no longer be sold and must be disposed of. For this reason, the cooling temperature is to be continuously recorded, archived and monitored (including a signaling function).
The automation task is to include the following requirements:
- Remote access to the data log.
- Program changes via remote maintenance, if required.
- Automatic retrieval of the logged data from a local PC station at specified times and archiving.
- If a maximum temperature is exceeded, a message will be sent to a maintenance technician who will then identify the cause of the problem.
For the SIMATIC S7-1200, the STEP 7 (TIA Portal) development environment provides the "Data log" instructions.
These instructions allow you to store process data in the flash memory (CPU or memory card) in CSV format (comma-separated values). This contributes to reducing the CPU's load memory pressure.
The integrated PLC Web server allows you to conveniently access these files and analyze them, for example, in Microsoft Excel.
The SIMATIC S7-1200 has routing capability, which enables remote access via the Internet.
For secure communication, the connection via a VPN tunnel (VirtualPrivateNetwork) with the appropriate hardware is a suitable solution.
The CSV files are automatically archived via the API (ApplicationProgrammingInterface) of the SIMATIC Automation Tool V3.0.
With the "TMAIL_C" instruction, emails can be sent using an existing account with an SMTP (SimpleMailTransferProtocol) server email service provider. This function is used to implement the alarm message.
Current version 2.0 for STEP 7 V14 Upd2 (TIA Portal), S7-1200 CPU FW V4.2 and TMAIL_C V4.0
Documentation V2.0.1 (3,3 MB)
Project for STEP 7 V14 Upd2 (TIA Portal) (728.4 KB)
Executable file for automatic DataLog upload via the API of the SIMATIC Automation Tool V3.0 (incl. C# source code) (5,3 KB)
SHA-256 Checksum: 704806F2FED94D7F274A1807E8D25D0878EC7EF87A6AFD2C0CEC910D86922025
Older version 1.0 for STEP 7 V11 SP2 Upd5 (TIA Portal), S7-1200 CPU FW V2.2 and TM_MAIL V1.1
Documentation (1,5 MB)
Project for STEP 7 V11 SP2 Upd5 (TIA Portal) (2.1 MB)
"S7-1200 Programmable Controller" System Manual
"STEP 7 Basic V14.0" System Manual
Sales and delivery release SIMATIC Automation Tool V3.0
How do you parameterize the "TMAIL_C" instruction to send e-mails with the SIMATIC S7-1200?
Sending Emails to SMTP Servers with an S7 CPU
Signaling and Switching via SMS with S7-1200 and CP 1242-7 GPRS V2 (Set 32)
IP-based Remote Networks
VPN Tunnel between the TS Adapter IE Advanced and Windows 7
Chapter 4.3.4 in documentation V2.0.1 added