<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Logging Archives | DMC, Inc.</title>
	<atom:link href="https://static.dmcinfo.com/blog/tag/data-logging/feed/index.xml" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Thu, 18 Jun 2026 18:24:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://static.dmcinfo.com/wp-content/uploads/2025/04/site-icon-150x150.png</url>
	<title>Data Logging Archives | DMC, Inc.</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data Logging with Siemens S7-1200 PLCs</title>
		<link>https://static.dmcinfo.com/blog/26228/data-logging-with-siemens-s7-1200-plcs/</link>
		
		<dc:creator><![CDATA[Otto Gottlieb]]></dc:creator>
		<pubDate>Mon, 19 Oct 2015 15:43:15 +0000</pubDate>
				<category><![CDATA[Manufacturing Automation & Intelligence]]></category>
		<category><![CDATA[PLC]]></category>
		<category><![CDATA[Siemens PLC]]></category>
		<category><![CDATA[Data Analysis]]></category>
		<category><![CDATA[Data Logging]]></category>
		<category><![CDATA[How To]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/26228/data-logging-with-siemens-s7-1200-plcs/</guid>

					<description><![CDATA[<p>The creation and maintenance of data records for machines is a very important part of keeping machines running efficiently. For example, tracking downtime and uptime is crucial to provide proper maintenance on the machine, while logging stoppages and other events can help provide insight into troubleshooting any system. Maintaining these data logs sometimes requires purchasing [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/26228/data-logging-with-siemens-s7-1200-plcs/">Data Logging with Siemens S7-1200 PLCs</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><p abp="8051">The creation and maintenance of data records for machines is a very important part of keeping machines running efficiently. For example, tracking downtime and uptime is crucial to provide proper maintenance on the machine, while logging stoppages and other events can help provide insight into troubleshooting any system. Maintaining these data logs sometimes requires purchasing additional software and hardware, as well as some programming to integrate everything together.</p></p>



<p class="wp-block-paragraph"><p abp="8052">Siemens has been providing new ways of logging data that come packed with their PLCs and HMIs, which is great because it allows us to implement these features without needing to purchase anything additional.</p></p>



<p class="wp-block-paragraph"><p abp="8053">Logging comes as a feature in both Basic and Comfort Panels, as seen below.</p></p>



<p class="wp-block-paragraph"><p abp="8054"><u abp="8055">Basic Panel Logging:</u></p></p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;6abf211dd7a36&quot;}" data-wp-interactive="core/image" data-wp-key="6abf211dd7a36" class="wp-block-image size-full wp-lightbox-container"><img fetchpriority="high" decoding="async" width="800" height="167" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on--pointerdown="actions.preloadImage" data-wp-on--pointerenter="actions.preloadImageWithDelay" data-wp-on--pointerleave="actions.cancelPreload" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Basic_Panel_Logging1.jpg" alt="Basic Panel Logging Interface" class="wp-image-26220" srcset="https://static.dmcinfo.com/wp-content/uploads/2025/05/Basic_Panel_Logging1.jpg 800w, https://static.dmcinfo.com/wp-content/uploads/2025/05/Basic_Panel_Logging1-300x63.jpg 300w, https://static.dmcinfo.com/wp-content/uploads/2025/05/Basic_Panel_Logging1-768x160.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			data-wp-bind--aria-label="state.thisImage.triggerButtonAriaLabel"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.thisImage.buttonRight"
			data-wp-style--top="state.thisImage.buttonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<p class="wp-block-paragraph"><p abp="8059"><u abp="8060">Comfort Panel Logging:</u></p></p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;6abf211dd7c48&quot;}" data-wp-interactive="core/image" data-wp-key="6abf211dd7c48" class="wp-block-image size-full wp-lightbox-container"><img decoding="async" width="800" height="170" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on--pointerdown="actions.preloadImage" data-wp-on--pointerenter="actions.preloadImageWithDelay" data-wp-on--pointerleave="actions.cancelPreload" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Comfort_Panel_Logging1.png" alt="Comfort Panel Logging Interface" class="wp-image-26221" srcset="https://static.dmcinfo.com/wp-content/uploads/2025/05/Comfort_Panel_Logging1.png 800w, https://static.dmcinfo.com/wp-content/uploads/2025/05/Comfort_Panel_Logging1-300x64.png 300w, https://static.dmcinfo.com/wp-content/uploads/2025/05/Comfort_Panel_Logging1-768x163.png 768w" sizes="(max-width: 800px) 100vw, 800px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			data-wp-bind--aria-label="state.thisImage.triggerButtonAriaLabel"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.thisImage.buttonRight"
			data-wp-style--top="state.thisImage.buttonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<p class="wp-block-paragraph"><p abp="8064">The Comfort Panel logging is nicer because you can store the logs in CSV files, which are easily opened in Excel, whereas the Basic Panels require the logs to be stored as TXT files.</p></p>



<p class="wp-block-paragraph"><p abp="8065">Siemens has now also created a group of instructions just for Data Logging so that we can create custom data logs using lower cost processors.</p></p>



<p class="wp-block-paragraph"><p abp="8066"><img decoding="async" abp="8067" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Custom_Data_Logs.png"></p></p>



<p class="wp-block-paragraph"><p abp="8068">Each of these instructions is very easy to use, and they can be packaged into a single Function Block like the one I created below.</p></p>



<p class="wp-block-paragraph"><p abp="8069"><img decoding="async" abp="8070" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Function-Block.png"></p></p>



<p class="wp-block-paragraph"><p abp="8071">This Function Block allows the user to write values to a data log on “Command Log”, using the data in “Data_block_1”.Logs[0].</p></p>



<p class="wp-block-paragraph"><p abp="8072"><img decoding="async" abp="8073" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Command-Log.png"></p></p>



<p class="wp-block-paragraph"><p abp="8074">The result of this code will be to add the values of “Int1” and “Real1” to the end of the “Data0” data log with a time stamp. “Int1” lines up with the “Var1” header and “Real1” is under the “Var2” header. If the “Data0” data log doesn’t exist yet, the code will create it.</p></p>



<p class="wp-block-paragraph"><p abp="8075"><img decoding="async" abp="8076" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/DataLogCreate.png"></p></p>



<p class="wp-block-paragraph"><p abp="8077">Once the data log is open I can write the values to it, and after every write I close the data log. I used a simple state machine to move through each step of the data logging process, part of which can be seen below.</p></p>



<p class="wp-block-paragraph"><p abp="8078"><img decoding="async" abp="8079" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/DataLogWrite.png"></p></p>



<p class="wp-block-paragraph"><p abp="8080">After writing to data logs I can then download, rename, and delete them easily through the webserver.</p></p>



<p class="wp-block-paragraph"><p abp="8081"><img decoding="async" abp="8082" alt="" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/DataLogs_FileBrowser.png"></p></p>



<p class="wp-block-paragraph"><p abp="8083">There are many different ways to log data with the S7-1200 and S7-1500 PLCs. For faster or more extensive data logging I recommend keeping the logs open while writing takes place. However, we may only have 10 logs open at a time. Also, there are limits to the lengths of data logs, so you may need to programmatically add new data logs, clear data logs, or delete them.</p></p>



<p class="wp-block-paragraph"><p abp="8083"><a href="/contact">Contact</a> DMC regarding Siemens S7 PLC Programming Projects.</p></p>



<p class="wp-block-paragraph"><p abp="8084"><a abp="8085" href="/our-services/manufacturing-automation-and-intelligence/plc-programming/siemens-s7-plc-programming">Learn more about DMC&#8217;s Siemens S7 PLC Programming services.</a></p></p>
<p>The post <a href="https://static.dmcinfo.com/blog/26228/data-logging-with-siemens-s7-1200-plcs/">Data Logging with Siemens S7-1200 PLCs</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
