<?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>brainchild Archives - CAS Dataloggers</title>
	<atom:link href="https://dataloggerinc.com/resource-article/tag/brainchild/feed/" rel="self" type="application/rss+xml" />
	<link>https://dataloggerinc.com/resource-article/tag/brainchild/</link>
	<description>Data logger and data acquisition products for any application.</description>
	<lastBuildDate>Thu, 03 Jan 2019 20:45:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://dataloggerinc.com/wp-content/uploads/2017/11/cropped-logo-larger-1-32x32.jpg</url>
	<title>brainchild Archives - CAS Dataloggers</title>
	<link>https://dataloggerinc.com/resource-article/tag/brainchild/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Coffee Roasting Temperature Profiling Solution</title>
		<link>https://dataloggerinc.com/resource-article/coffee-roasting-temperature/</link>
		
		<dc:creator><![CDATA[Liz Zala]]></dc:creator>
		<pubDate>Thu, 03 Jan 2019 17:00:59 +0000</pubDate>
				<category><![CDATA[Automation & Control]]></category>
		<category><![CDATA[brainchild]]></category>
		<guid isPermaLink="false">https://dataloggerinc.com/?p=4273</guid>

					<description><![CDATA[<p>CAS DataLoggers provides an affordable coffee roasting temperature profiling solution to a brewer that wants to ensure the right taste per cup.</p>
<p>The post <a href="https://dataloggerinc.com/resource-article/coffee-roasting-temperature/">Coffee Roasting Temperature Profiling Solution</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Affordable Data Acquisition Module Enables Greater Flavor Consistency</h2>
<p><img decoding="async" class="wp-image-21041 alignright" src="https://dataloggerinc.com/wp-content/uploads/2013/03/aroma-aromatic-art-434213.jpg" alt="coffee roasting temperature application photo" width="225" height="150" srcset="https://dataloggerinc.com/wp-content/uploads/2013/03/aroma-aromatic-art-434213.jpg 1000w, https://dataloggerinc.com/wp-content/uploads/2013/03/aroma-aromatic-art-434213-300x200.jpg 300w, https://dataloggerinc.com/wp-content/uploads/2013/03/aroma-aromatic-art-434213-768x512.jpg 768w, https://dataloggerinc.com/wp-content/uploads/2013/03/aroma-aromatic-art-434213-600x400.jpg 600w" sizes="(max-width: 225px) 100vw, 225px" />CAS DataLoggers supplied the coffee roasting temperature profiling solution to a coffee brewer who makes his own product from his home to sell at local shops and through his website. Creating a good cup of coffee from scratch requires a lot of experimentation, so he sources green coffee beans from many different countries to make original blends. First, the beans are emptied into the roaster and then raised to temperatures up to 204°C (400°F). Afterward, the beans go into the grinder. After establishing a few unique blends, the brewer wanted to document his coffee roasting profiles to give his roasting process repeatability which ensures that the beans had the right taste with every new batch. Working with a limited budget, his business needed a data acquisition product to get an accurate temperature profile of his process, but he couldn’t afford many of the DAQ setups he looked at.</p>
<h3>Installation</h3>
<p>CAS DataLoggers provided him with a <a href="https://dataloggerinc.com/product/io-6rtd-rtd-input-module/" target="_blank" rel="noopener">Brainchild 6-Channel RTD Input Module</a> which he installed in his brewing room, mounting it on a DIN rail using the included clip. Designed for temperature data acquisition, the Modbus-based module featured analog inputs for 6 RTDs. The removable screw terminal connectors made for quick installation and the module’s small size and light 105g weight made mounting the module a breeze.</p>
<p>The brewer then connected half of the inputs to 3 PT100 RTD temperature sensors which were then placed evenly in the roasting racks. The RTDs record the process temperature at a higher accuracy than would be possible with thermocouples and can maintain temperature stability over several years of use. The module provides direct reading of temperature without the need for scaling and operates on a +12 VDC power supply. Each channel has a connection terminal and an LED status indicator channel. User-set sampling rates from the module log temperature readings from the RTDs in real-time at speeds of up to once every 2 seconds, useful for profiling each roasting cycle.</p>
<h3>Usage</h3>
<p>The module’s bright LEDs show the status of the inputs/outputs, communication, and power supply. In case the PC were to malfunction, the module’s watchdog timer can identify PC hardware/program errors, sending a signal to put the PC in safe mode, with the timer adjustable from 1 to 255 seconds. This provides a failsafe in case the owner isn’t around to respond in time.</p>
<p><img fetchpriority="high" decoding="async" class=" wp-image-21040 alignleft" src="https://dataloggerinc.com/wp-content/uploads/2013/03/IO-16DI-transparent.png" alt="coffee roasting temperature IO Module" width="249" height="229" srcset="https://dataloggerinc.com/wp-content/uploads/2013/03/IO-16DI-transparent.png 500w, https://dataloggerinc.com/wp-content/uploads/2013/03/IO-16DI-transparent-300x275.png 300w" sizes="(max-width: 249px) 100vw, 249px" />Designed to communicate with a datalogger, <a href="https://en.wikipedia.org/wiki/Programmable_logic_controller" target="_blank" rel="noopener">PLC</a>, <a href="https://en.wikipedia.org/wiki/SCADA" target="_blank" rel="noopener">SCADA</a> or HMI via Modbus RTU protocol, the module supports RS485 communication with a baud rate up to 115200 bps. The module was easy to integrate into the user’s network, with his office PC acting as the Modbus master. An RS232 to RS485 converter handles communication between the module and the PC, and the address of the module is set up by using the module’s dip switches (allowing up to 127 addresses).</p>
<p>All the data is available for real-time viewing and analysis using the standard IO PC Studio Software which produces a temperature curve of the entire process. This helps ensure process repeatability, the most important aspect of his product quality. The DAQ software reads the Modbus registers which contain the data from the sensors. In this way, data is sent to the PC located in his office via serial communication and stored there. The software also enables the brewer to configure the module’s communication settings on the Modbus network, and diagnostic information is also available for troubleshooting. The software is inexpensive and easy to use, so his temperature monitoring project was quickly up and running.</p>
<h3>Benefits</h3>
<p>Using the data acquisition module to monitor his entire coffee roasting temperature process, the brewer is now able to record all the subtle temperature curves and reproduce them whenever he starts a new roast. By looking at the temperature curves from his office PC, he’s able to monitor process temperatures in the same way used by larger industrial processes (i.e. the leading brands). This guarantees that his coffee always lives up to customer expectations. The module and RTD sensors are an ideal solution for the brewer’s limited budget, giving him maximum data logging reliability and high accuracy. Now he can experiment with new flavors and reproduce his bestsellers to satisfy demand.</p>
<p>For further information on the new <a href="https://dataloggerinc.com/products/brainchild/distributed-io-modules/" target="_blank" rel="noopener">Brainchild Modbus modules</a> for data acquisition of many different sensor types, coffee roasting temperature, or to find the ideal solution for your application-specific needs, contact a CAS Data Logger Application Specialist at (800) 956-4437 or <a href="https://dataloggerinc.com/need-more-information/">request more information</a>.</p>
<p>The post <a href="https://dataloggerinc.com/resource-article/coffee-roasting-temperature/">Coffee Roasting Temperature Profiling Solution</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Lab Goes Paperless With a Digital Chart Recorder</title>
		<link>https://dataloggerinc.com/resource-article/paperless-chart-recorder/</link>
		
		<dc:creator><![CDATA[Liz Zala]]></dc:creator>
		<pubDate>Tue, 09 Oct 2018 16:00:53 +0000</pubDate>
				<category><![CDATA[Laboratory & Science]]></category>
		<category><![CDATA[brainchild]]></category>
		<guid isPermaLink="false">https://dataloggerinc.com/?p=4152</guid>

					<description><![CDATA[<p>A research lab requiring to monitor temperature goes paperless with a digital chart recorder saving valuable time and enabling instant data readings.</p>
<p>The post <a href="https://dataloggerinc.com/resource-article/paperless-chart-recorder/">Lab Goes Paperless With a Digital Chart Recorder</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Brainchild Data Logger Records Temperature on 6 Channels</h2>
<p><img decoding="async" class=" wp-image-19041 alignright" src="https://dataloggerinc.com/wp-content/uploads/2013/05/adult-biology-chemical-356040.jpg" alt="digital chart recorder for laboratory research" width="225" height="150" srcset="https://dataloggerinc.com/wp-content/uploads/2013/05/adult-biology-chemical-356040.jpg 1024w, https://dataloggerinc.com/wp-content/uploads/2013/05/adult-biology-chemical-356040-300x200.jpg 300w, https://dataloggerinc.com/wp-content/uploads/2013/05/adult-biology-chemical-356040-768x512.jpg 768w, https://dataloggerinc.com/wp-content/uploads/2013/05/adult-biology-chemical-356040-600x400.jpg 600w" sizes="(max-width: 225px) 100vw, 225px" />CAS DataLoggers provided a digital chart recorder to a medical research laboratory performing experiments which required real-time temperature monitoring. For years staff relied on older paper chart recorders but these devices were getting increasingly difficult to support and maintain. In addition, they wanted to make the switch to digital data storage and avoid wasting time hunting for hardcopy. Initially, the cost of several of the systems they considered was beyond their budget.</p>
<h3>Installation</h3>
<p>After the lab called in and described the requirements of their application, CAS DataLoggers provided them with a low-cost <a href="https://dataloggerinc.com/product/pr10-paperless-chart-recorder/" target="_blank" rel="noopener">Brainchild PR-10 6-Channel Paperless Chart Recorder</a>. Technicians connect the data logger’s 6 analog input channels to their existing thermocouples, went through a simple set-up process and immediately began measuring and recording data. This digital chart recorder shows all current readings on its customizable 4.3’’ Color Touch Screen display. The model the lab chose includes the optional portable case for easy placement wherever needed.</p>
<p>Offering flexible screen configuration and multiple display styles, the Brainchild is a stand-alone real-time monitoring solution with an interactive dialogue and convenient touch screen enabling quick navigation so staff can scroll back to review historical trends. The digital chart recorder has a fast sampling rate up to 10 Hz, accepts a wide range of thermocouple types plus RTD, voltage and 4-20 mA current inputs. It also offers optional mathematical capabilities including statistics with instant, average, and min/max values.</p>
<h3>Usage</h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-19040 alignright" src="https://dataloggerinc.com/wp-content/uploads/2013/05/pr-10-transparent.png" alt="The Brainchild PR-10 6-Channel digital chart recorder" width="270" height="206" />Users configured the paperless recorder’s alarms to get instant notification when temperatures suddenly go out of specification, a feature that was not available on the older paper recorders. This had the benefit of helping to ensure that experiments are completed with the correct conditions. The recorder lists all alarm records along with relevant information and can remind users of the alarm status in different colors. Users can browse through this alarm list or acknowledge alarms easily via the touchscreen.</p>
<p>Additionally, the digital chart recorder’s standard Ethernet interfaces enable operators to access stored data over the network using the Observer software supplied with the unit. Data from experiments can be easily downloaded and archived, eliminating the need for cabinets of paper records and the hassle of manual searching through them. For critical experiments, they could remotely view real-time temperature data over the network using the optional Observer II PC software package.</p>
<p>Being a digital chart recorder, the PR10 stores the measured data in 256 MB of internal, non-volatile flash memory, on a removable SD memory card or on a USB memory stick via one of the 2 USB host ports. The PR10 is one of a family of 3 paperless recorders which feature a flexible, expandable, modular architecture with up to 48 analog input channels plus options for digital I/O cards for <a href="https://en.wikipedia.org/wiki/Data_acquisition" target="_blank" rel="noopener">DAQ</a> and control applications, such as activating relays, reading switches or turning on warning light or buzzer.</p>
<h3>Benefits</h3>
<p>The Brainchild PR10 paperless recorder is already saving staff valuable lab hours since it enables instant visualization of the temperature data. Now users can monitor temperature remotely in real time to help ensure that their experiments are operating with the correct parameters. The recorder’s user-friendly setup and operation provides quick startup for new experiments. By storing data electronically, the recorder simplifies data archiving while integrating into users’ existing systems to improve accuracy and data accessibility. With all these capabilities, users are able to monitor, record, and evaluate the temperature data using the same system. In case the lab takes on more demanding applications, <a href="https://dataloggerinc.com/product/pr30-paperless-chart-recorder/" target="_blank" rel="noopener">expanded models</a> are available with up to 48 channels for bigger projects. Finally, if future regulatory needs dictate it an optional FDA CFR 21 part 11 option allows secure data storage.</p>
<p>For further information on the <a href="https://dataloggerinc.com/product/pr10-paperless-chart-recorder/" target="_blank" rel="noopener">Brainchild PR-10 6-Channel Paperless Chart Recorder</a>, other <a href="https://dataloggerinc.com/products/brainchild/brainchild-paperless-chart-recorders/" target="_blank" rel="noopener">digital chart recorders</a>, or to find the ideal solution for your application-specific needs, contact a CAS Data Logger Application Specialist at (800) 956-4437 or <a href="https://dataloggerinc.com/need-more-information/">request more information</a>.</p>
<p>The post <a href="https://dataloggerinc.com/resource-article/paperless-chart-recorder/">Lab Goes Paperless With a Digital Chart Recorder</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using a dataTaker DT80 with BrainChild IO-16DI Modules</title>
		<link>https://dataloggerinc.com/resource-article/using-datataker-dt80-brainchild-io-16di-modules/</link>
		
		<dc:creator><![CDATA[Liz Zala]]></dc:creator>
		<pubDate>Mon, 02 May 2016 21:16:06 +0000</pubDate>
				<category><![CDATA[dataTaker]]></category>
		<category><![CDATA[brainchild]]></category>
		<guid isPermaLink="false">https://dataloggerinc.com/?p=6402</guid>

					<description><![CDATA[<p>Digital I/Os for Use with HMI, PLC or SCADA via Modbus RTU In our latest Technical Article adapted from dataTaker, CAS DataLoggers shows you how to use a dataTaker DT80 Intelligent Datalogger with a Brainchild Digital IO-16DI Module. This is useful for adding extra inputs for applications involving monitoring or controlling a PLC or SCADA &#8230; <a href="https://dataloggerinc.com/resource-article/using-datataker-dt80-brainchild-io-16di-modules/">Continued</a></p>
<p>The post <a href="https://dataloggerinc.com/resource-article/using-datataker-dt80-brainchild-io-16di-modules/">Using a dataTaker DT80 with BrainChild IO-16DI Modules</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Digital I/Os for Use with HMI, PLC or SCADA via Modbus RTU</h2>
<p>In our latest Technical Article adapted from dataTaker, CAS DataLoggers shows you how to use a dataTaker DT80 Intelligent Datalogger with a Brainchild Digital IO-16DI Module. This is useful for adding extra inputs for applications involving monitoring or controlling a PLC or SCADA system via the Modbus RTU protocol. The process involves connecting the I/O module, setting up the DT80, connecting your sensors and writing a brief example program.</p>
<p>&nbsp;</p>
<p><strong>1&#8211;Prerequisites </strong></p>
<p>•Nil</p>
<p>&nbsp;</p>
<p><strong>2&#8211;Required Equipment </strong></p>
<p>•<strong>dataTakerDT80 range data logger</strong> (firmware version 8.08 or above)</p>
<p>•<strong>BrainChild IO-16DI Modbus Expansion Module</strong></p>
<p>•Connecting wires</p>
<p>&nbsp;</p>
<p><strong>3&#8211;Process </strong></p>
<p><strong>3.1&#8211;Connect the Module to the dataTaker </strong></p>
<p>The BrainChild module connects to the DT80 Serial Sensor port via RS485. In this exercise we will also power the BrainChild module using the 12V output terminal on the dataTaker.</p>
<p align="center"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6404" src="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-1.jpg" alt="datataker-with-brainchile-io-1" width="450" height="235" srcset="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-1.jpg 450w, https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-1-300x157.jpg 300w" sizes="auto, (max-width: 450px) 100vw, 450px" /></p>
<p align="center">Figure 1– RS485 Wiring Diagram</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="1" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td><strong>IO-16DI Terminal</strong></td>
<td><strong>DT80 Range Logger Terminal</strong></td>
</tr>
<tr>
<td>1</td>
<td><strong>GND</strong></td>
</tr>
<tr>
<td>2</td>
<td><strong>12V</strong></td>
</tr>
<tr>
<td>3</td>
<td><strong>RTS Y</strong></td>
</tr>
<tr>
<td>4</td>
<td><strong>TX Z</strong></td>
</tr>
</tbody>
</table>
<div></div>
<p align="center">Table 1&#8211;RS485 Connection List</p>
<p>&nbsp;</p>
<p><strong>NOTE</strong>: If you are powering many modules, then you should use a separate power supply, as the dataTaker 12V output can only supply 150mA.</p>
<p>&nbsp;</p>
<h2>3.2&#8211;Set the Modbus Address of the Module</h2>
<p>Use the DIP switches on the front of the BrainChild Module to select a Modbus address. In the example below we have chosen to use address number 1 (DIP1 on, others off).</p>
<p>&nbsp;</p>
<p align="center"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6405" src="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-2.jpg" alt="datataker-with-brainchile-io-2" width="300" height="117" /></p>
<p align="center">Figure 2&#8211;Setting the Modbus Address (Address 1)</p>
<p>It is essential that each device connected to the same RS485 network is unique; otherwise conflicts will occur and your system will behave in an undesirable manner.</p>
<p>For a complete list of the available addresses and DIP switch settings, please consult the IO- 16DI user manual.</p>
<p>&nbsp;</p>
<p><strong>3.3&#8211;Set Up the DT80 Serial Sensor Port</strong></p>
<p>If DIP0 is switched to off as shown in Figure 2 above, then the serial communications for the BrainChild Modules will be set to default (9600,8,1,N). It is thus necessary to configure the DT80 Serial Sensor port profiles to match this. You should also change the Modbus Server port to a known value.</p>
<p>Send the following profile commands to the logger:</p>
<p><strong>PROFILE </strong>SERSEN_PORT BPS=9600</p>
<p><strong>PROFILE </strong>SERSEN_PORT FLOW=NONE</p>
<p><strong>PROFILE </strong>SERSEN_PORT DATA_BITS=8</p>
<p><strong>PROFILE </strong>SERSEN_PORT STOP_BITS=1</p>
<p><strong>PROFILE </strong>SERSEN_PORT PARITY=NONE</p>
<p><strong>PROFILE </strong>SERSEN_PORT MODE=RS485</p>
<p><strong>PROFILE </strong>SERSEN_PORT FUNCTION=MODBUS_MASTER</p>
<p><strong>PROFILE </strong>MODBUS_SERVER SERSEN_ADDRESS=0</p>
<p>&nbsp;</p>
<p><strong>3.4&#8211;Activate the Regulated 12V Power Output</strong></p>
<p>Activating the 12V power output requires one single command:</p>
<p>PWR12V=1</p>
<p>This command, if used within a program/configuration, should be placed in the immediate schedule (called “on logger activation” in dEX).</p>
<p>&nbsp;</p>
<p><strong>3.5&#8211;Attaching Sensors to the BrainChild Module </strong></p>
<p>There are many types of sensors which can be connected to the module. However most will either be contact closure or transistor output types. The diagrams below are from the BrainChild IO-16DI user manual:</p>
<p align="center"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6406" src="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-3.jpg" alt="datataker-with-brainchile-io-3" width="500" height="491" srcset="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-3.jpg 500w, https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-3-300x295.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></p>
<p align="center">Figure 3&#8211;Contact Closure Type Input Options</p>
<p>&nbsp;</p>
<p align="center"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6407" src="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-4.jpg" alt="datataker-with-brainchile-io-4" width="500" height="451" srcset="https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-4.jpg 500w, https://dataloggerinc.com/wp-content/uploads/2017/01/datataker-with-brainchile-io-4-300x271.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></p>
<p align="center">Figure 4&#8211;Transistor-Type Input Options</p>
<p>NOTE: The numbers of the shown terminal block do not match the labels on the IO-16DI.</p>
<p><strong>3.6&#8211;Modbus Commands</strong></p>
<p>There are four Modbus commands which will be used in this section:</p>
<ol>
<li>Read a digital state</li>
<li>Activate counters</li>
<li>Read counters</li>
<li>Set/reset counters</li>
</ol>
<p>&nbsp;</p>
<p><strong>3.6.1 Read a Digital State</strong></p>
<p>Reading a digital state is straightforward and only requires a simple command:</p>
<p>1MODBUS(AD<strong>X</strong>,R1:<strong>N</strong>)</p>
<p>where:</p>
<ul>
<li><strong>X  </strong>is the address of the BrainChild module</li>
<li><strong>N   </strong>is the digital input number which is to be read</li>
</ul>
<p>Example:</p>
<p>1MODBUS(AD1,R1:14)</p>
<p>(Read the state of digital input #14 on the module with address #1)</p>
<p>&nbsp;</p>
<p><strong>3.6.2 Bulk Reading Digital States into Channel Variables</strong></p>
<p>It is also possible to read several consecutive states into a list of channel variables. This would be performed for the purpose of speed and sometimes to simplify the program.</p>
<p>1MODBUS(AD<strong>X</strong>,R1:<strong>N</strong>,=<strong>p</strong>..qCV)</p>
<p>where:</p>
<ul>
<li><strong>X </strong>is the address of the BrainChild module</li>
<li><strong>N </strong>is the <strong><em>first </em></strong>digital input number which is to be read</li>
<li><strong>p </strong>is the first channel variable to store a value</li>
<li><strong>q </strong>is the last channel variable to store a value</li>
</ul>
<p>NOTE: The number of values read from the module depends on the range of channel variables specified in the command. This means <strong>q-p+1 </strong>values are read from the slave.</p>
<p>Example:</p>
<p>1MODBUS(AD1,R1:5,=1..5CV)</p>
<p>(Read the state of digital inputs 5-9 into channel variables #1-5)</p>
<p>&nbsp;</p>
<p><strong>3.6.3—Change Counter Mode</strong></p>
<p>Each input on the IO-16DI can be used as a counter, but these are disabled by default. To change the counter mode we need to write a value to register type 4, number 101.</p>
<p>1MODBUS(AD<strong>X</strong>,R4:101)=<strong>N</strong></p>
<p>Where:</p>
<ul>
<li><strong>X </strong>is the address of the BrainChild module</li>
<li><strong>N </strong>is the counter mode, which can be either:
<ul>
<li>0 = disabled</li>
<li>1 = enabled (standard upward counter)</li>
<li>2 = enabled (up/down counter)</li>
</ul>
</li>
</ul>
<p>In counter mode 2 the inputs will act as up/down counters. Input 1 will increment counter 1 while input 2 decrements counter1. In the same way, inputs 3 and 4 operate counter 2; inputs 5 and 6 operate counter 3 and so on. A consequence of using this counter mode is halving the total number of counters.</p>
<p>Example:</p>
<p>1MODBUS(AD1,R4:101)=1</p>
<p>(Activate the standard upward counter on the module with address number 1)</p>
<p>&nbsp;</p>
<p><strong>3.6.4&#8211;Read Counter</strong></p>
<p>Reading a counter is much like reading a digital input, however the returned value is a 32-bit integer, so its value spans across two registers, which are each 16-bits wide. For this reason we use the MBL channel option, which automatically converts the two 16-bit registers into a single 32-bit value.</p>
<p><strong>NOTE</strong>: The module returns a 32-bit <strong><em>unsigned </em></strong>integer value, which potentially stores numbers up to 4,294,967,296 however the dataTaker uses 32-bit <strong><em>signed </em></strong>integer values, which means only the lower 31 bits can be used (since the highest bit changes the sign). In short, this means you should reset the counters before they reach a value of 2,147,483,648.</p>
<p>1MODBUS(AD<strong>X</strong>,R4:<strong>N</strong>,MBL)</p>
<p>Where:</p>
<p><strong>X </strong>is the address of the BrainChild module</p>
<ul>
<li><strong>N </strong>is the register number, which is related to the counter number using the equation ((2xC)+1), where C is the counter number</li>
</ul>
<p>Example:</p>
<p>1MODBUS(AD1,R4:33,MBL)</p>
<p>(read counter number 16 [ (2 x 16)+1=33] )</p>
<p>&nbsp;</p>
<p><strong>3.6.5 Set/Reset Counter</strong></p>
<p>Counters may need to be set to a starting value or zeroed. To do this you will use the following command:</p>
<p>1MODBUS(AD<strong>X</strong>,R4:<strong>N</strong>,MBL)=<strong>M</strong></p>
<p>Where:</p>
<ul>
<li><strong>X </strong>is the address of the BrainChild module</li>
<li><strong>N </strong>is the register number, which is related to the counter number using the equation ((2xC)+1), where C is the counter number</li>
<li><strong>M </strong>is the value which you would like to assign to the counter</li>
</ul>
<p>Example:</p>
<p>1MODBUS(AD1,R4:31,MBL)=0</p>
<p>(Reset counter number 15 [ (2 x 15)+1=31] to zero)</p>
<p>&nbsp;</p>
<ol>
<li value="4"><strong>&#8211;Putting it Together</strong></li>
</ol>
<p>The example program below will set up the Modbus port, read digital inputs 1-5 every 5 seconds, read a counter on channel 6 every 10 seconds and reset that counter at midnight every day.</p>
<p>&nbsp;</p>
<p><strong><u>BEGIN</u></strong>&#8220;IO16DI&#8221;</p>
<p>&#8216;====================================================</p>
<p>&#8216;    DEVICE SET UP</p>
<p>&#8216;&#8211;PROFILES—</p>
<p><strong>PROFILE </strong>SERSEN_PORT BPS=9600</p>
<p><strong>PROFILE </strong>SERSEN_PORT FLOW=NONE</p>
<p><strong>PROFILE </strong>SERSEN_PORT <strong>DATA</strong>_BITS=8</p>
<p><strong>PROFILE </strong>SERSEN_PORT STOP_BITS=1</p>
<p><strong>PROFILE </strong>SERSEN_PORT PARITY=NONE</p>
<p><strong>PROFILE </strong>SERSEN_PORT MODE=<strong><u>RS485</u></strong></p>
<p><strong>PROFILE </strong>SERSEN_PORT FUNCTION=MODBUS_MASTER</p>
<p><strong>PROFILE </strong>MODBUS_SERVER SERSEN_ADDRESS=0</p>
<p>&#8216;&#8211;POWER OUTPUT—</p>
<p>PWR12V=1</p>
<p>&#8216;&#8211;ACTIVATE COUNTERS—</p>
<p>1MODBUS(AD1, R4:101)=1</p>
<p>&#8216;====================================================</p>
<p>&#8216;====================================================</p>
<p>&#8216;     Schedule A (Read digital inputs)</p>
<p>&#8216;           &#8211; Runs every 5 seconds</p>
<p>&#8216;====================================================</p>
<p><strong><u>RA</u></strong>(&#8220;B:&#8221;,<strong>ALARMS</strong>:OV:10KB,<strong>DATA</strong>:OV:1MB)5S <strong>LOGONA</strong></p>
<p>1MODBUS(AD1,R1:1,=1..5CV,W)</p>
<p>1CV(&#8220;Digital 1&#8221;)</p>
<p>2CV(&#8220;Digital 2&#8221;)</p>
<p>3CV(&#8220;Digital 3&#8221;)</p>
<p>4CV(&#8220;Digital 4&#8221;)</p>
<p>5CV(&#8220;Digital 5&#8221;)</p>
<p>&#8216;====================================================</p>
<p>&#8216;     Schedule B (Read counter input)</p>
<p>&#8216;     &#8211; Runs every 10 seconds</p>
<p>&#8216;====================================================</p>
<p><strong><u>RB</u></strong>(&#8220;B:&#8221;,<strong>ALARMS</strong>:OV:10KB,<strong>DATA</strong>:OV:1MB)10S <strong>LOGONB</strong></p>
<p>1MODBUS(&#8220;Counter 6&#8221;,AD1,R4:13,MBL)</p>
<p>&#8216;====================================================</p>
<p>&#8216;  Schedule C (Reset Counter)</p>
<p>&#8216; &#8211; Runs every day at midnight</p>
<p>&#8216;====================================================</p>
<p><strong><u>RC</u></strong>(&#8220;B:&#8221;,<strong>ALARMS</strong>:OV:10KB,<strong>DATA</strong>:OV:1MB)1D <strong>LOGONC</strong></p>
<p>1MODBUS(AD1,R4:13,MBL)=0</p>
<h4>END</h4>
<p>The post <a href="https://dataloggerinc.com/resource-article/using-datataker-dt80-brainchild-io-16di-modules/">Using a dataTaker DT80 with BrainChild IO-16DI Modules</a> appeared first on <a href="https://dataloggerinc.com">CAS Dataloggers</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
