<?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>Engineer and Technician &#187; PLC Programming</title>
	<atom:link href="http://www.engineer-and-technician.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engineer-and-technician.com</link>
	<description>Straight Talk on Modern Industrial Automation and Engineering Technology</description>
	<lastBuildDate>Wed, 23 Mar 2011 17:04:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Video: How to Program a TON Timer in RSLogix 500</title>
		<link>http://www.engineer-and-technician.com/videohow-to-program-a-ton-timer-in-rslogix-500/</link>
		<comments>http://www.engineer-and-technician.com/videohow-to-program-a-ton-timer-in-rslogix-500/#comments</comments>
		<pubDate>Fri, 29 May 2009 02:10:59 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[PLC Programming]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=659</guid>
		<description><![CDATA[Let&#8217;s say we have a rotating beacon that is mounted near a conveyor. For safety purposes, the beacon turns on when the conveyor is running to let the plant personnel know that the conveyor is operating. Everyone agrees it would be better if  the beacon came on for 5 seconds before the conveyor starts. The [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say we have a rotating beacon that is mounted near a conveyor. For safety purposes, the beacon turns on when the conveyor is running to let the plant personnel  know that the conveyor is operating.</p>
<p>Everyone agrees it would be better if  the beacon came on for 5 seconds <em>before</em> the conveyor starts.</p>
<p>The conveyor is automatically started from another section of the plant.</p>
<p>We want the beacon to turn on as soon as the run command is given.</p>
<p>However, we need to <em>delay</em> the start of the conveyor for 5 seconds after the run command has been given. That way, the beacon will be on for 5 seconds before the conveyor starts.</p>
<p style="text-align: center;">We will do that with a TON (Timer On Delay) instruction. Watch the video to see how.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/xxoyi_Blg1M&amp;hl=en&amp;fs=1&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="360" src="http://www.youtube.com/v/xxoyi_Blg1M&amp;hl=en&amp;fs=1&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/videohow-to-program-a-ton-timer-in-rslogix-500/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Addressing in RSLogix 5000</title>
		<link>http://www.engineer-and-technician.com/addressing-in-rslogix-5000/</link>
		<comments>http://www.engineer-and-technician.com/addressing-in-rslogix-5000/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:39:08 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[plc programming]]></category>
		<category><![CDATA[rslogix]]></category>
		<category><![CDATA[rslogix 5000]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=125</guid>
		<description><![CDATA[Before you can program any PLC system, you have to understand how the addressing is done in that particulaur PLC. I have included a actual screenshot from RSLogix 5000 below that shows examples of addressing in RSLogix 5000. Read on to get the details. INSTRUCTION &#8211; RSLogix 5000&#8242;s Relay Ladder Logic command language is comprised [...]]]></description>
			<content:encoded><![CDATA[<p>Before you can program any PLC system, you have to understand how the addressing is done in that particulaur PLC. I have included a actual screenshot from RSLogix 5000 below that shows examples of addressing in RSLogix 5000.</p>
<p>Read on to get the details.<span id="more-125"></span></p>
<p><img class="alignnone size-full wp-image-142" title="rslogix_5000_588" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/rslogix_5000_588.jpg" alt="rslogix_5000_588" width="588" height="252" /></p>
<p><strong>INSTRUCTION</strong> &#8211; RSLogix 5000&#8242;s Relay Ladder Logic command language is comprised of &#8220;instructions&#8221;. An XIC (it looks like a normally open contact &#8211;] [-- ) is an instruction. A timer is an instruction. A few of the most common instructions are described below.</p>
<p><strong>BIT</strong> - an address within the PLC. It can be an input, output or internal coil, among others.</p>
<p><strong>RUNG</strong> - A section of the PLC ladder program that terminates in an output function of some type. Just like in an electrical ladder diagram, a rung has some type of output that is turned on or turned off by the preceding entities in the rung. The first rung in a ladder program is always 0.</p>
<p><strong>HARDWIRED INPUT</strong> - a physical connection to the PLC from an input device (switch or sensor, etc.).</p>
<p>RSLogix 5000 defines the address of the input, based on the input cards that you configure.</p>
<p>We'll see how this works later on, but here is an example of a hardwired input:</p>
<p>Local:4:I.Data.3</p>
<p>Here is what each part of the address means:</p>
<p><strong>Local</strong>:4:I.Data.3<br />
"Local" means that the module is connected to a controller across a backplane or with a parallel link, keeping the module within a few inches of the controller.</p>
<p>Local:<strong>4</strong>:I.Data.3<br />
"4" means that the module is module 4 (located in the 5th slot in the rack).</p>
<p>Local:4:<strong>I</strong>.Data.3<br />
"I" means the bit is an input</p>
<p>Local:4:I.<strong>Data</strong>.3<br />
"Data" indicates the type of data (this is the default for I/O)</p>
<p>Local:4:I.Data.<strong>3</strong><br />
"3" indicates that the bit is 4th input on the card (the bits start with 0).</p>
<p>By the way, don't get the capital "I's" confused with ones.</p>
<p>So, in evaluating our example, we would describe the bit as "Module 4, bit 3".</p>
<p>Here is where some confusion comes in. Because the Rockwell numbering system starts with 0, and the processor resides in Slot 0, our example bit is actually in slot 5. Our bit 3 is actually the 4th bit. We could also describe the bit as "Slot 5, position 4".</p>
<p>You will have to learn to transpose these ways of describing a bit back and forth in your head. If you are troubleshooting a problem, and you want someone to look for a signal on our example bit, you might have to tell him to look at the 4th position on the 5th slot. That will lead him to the physical point on the PLC.</p>
<p>However, you need to keep in mind that the corresponding bit in your program will be labeled Local:4:I.Data.3.</p>
<p>It can be confusing, but you will get used to it.</p>
<p><strong>HARDWIRED OUTPUT </strong>- a physical connection from the PLC to an output device (relay or pilot light, etc.)</p>
<p>Outputs are addressed the same way.</p>
<p><strong>Local</strong>:5:O.Data.4<br />
"Local" means that the module is connected to a controller across a backplane or with a parallel link, keeping the module within a few inches of the controller.</p>
<p>Local:<strong>5</strong>:O.Data.4<br />
"5" means that the module is module 5 (located in the 6th slot in the rack).</p>
<p>Local:5:<strong>O</strong>.Data.4<br />
"O" means the bit is an output</p>
<p>Local:5:O.<strong>Data</strong>.4<br />
"Data" indicates the type of data (this is the default for I/O)</p>
<p>Local:5:O.Data.<strong>4</strong><br />
"4" indicates that the bit is 5th output on the card (the bits start with 0).</p>
<p><strong>INTERNAL COIL </strong><br />
This is a programmable bit used to simulate a relay within the PLC. The internal coil has no connection to the outside world. It does not connect to an output card. Internal coils are used to store information. The "contacts" of this "relay" can then be used multiple times in other parts of the program.</p>
<p>RSLogix 5000 has greatly simplified the process of describing an internal coil. We can simply give it a name, known as a tag.</p>
<p>For example, if you have an internal coil that is the result of, say, three hardwired safety gate limit switches, we could label the coil "SafetyGatesClosed".<br />
Note the lack of spaces in the tag name. RSLogix 5000 does not allow spaces, or other special characters, in the tag name.</p>
<p>Some people use underscores, so the tag might be "Safety_Gates_Closed". Either way is fine; it just depends on what your company or your client prefers.</p>
<p><strong>TIMER</strong><br />
A timer is a programmable instruction that lets you turn on or turn off bits after a preset time.</p>
<p>The two primary types of timers are TON for "timer on delay" and TOF for "timer off delay".</p>
<p>Timers in RSLogix 5000 use tag names for identification.</p>
<p><strong>COUNTER</strong><br />
A counter is a programmable instruction that lets you turn on or turn off bits after a preset count has been reached.</p>
<p>There are different types of counters available in the RSLogix, but the CTU (counter up) instruction covers everything we will talk about here.</p>
<p>Counters in RSLogix 5000 use tag names for identification.</p>
<p><strong>--] [--    Normally Open Contact</strong><br />
When used with a hardwired input, this instruction is off until there is a voltage applied to the input. The bit address then goes high, or on, and the instruction becomes "true." It works the same way when it has the same address as an internal coil, except that the coil must be turned on by logic in the program.</p>
<p>Allen-Bradley calls these normally open contacts "XIC", or "eXamine If Closed" instruction.</p>
<p>An XIC instruction can reference a hardwired input, a hardwired output, an internal coil or a timer done bit, among others.</p>
<p><strong>--]/[&#8211;    Normally Closed Contact</strong><br />
This is an inverted normally open contact.</p>
<p>When used with a hardwired input, this instruction is &#8220;true&#8221; until there is a voltage applied to the input. It then goes low, or off, and becomes &#8220;false.&#8221;</p>
<p>It also can be used with an internal coil, becoming true when the coil is off and becoming false when the coil is on.</p>
<p>Allen-Bradley calls these normally closed contacts &#8220;XIO&#8221;, or &#8220;eXamine If Open&#8221; instructions.</p>
<p><strong>-( )-    Output Coil</strong><br />
When used with a hardwired output, this function is off until the logic in the program allows it to turn on. It then becomes &#8220;true&#8221;, and will energize the device that is wired to the respective output.</p>
<p>If it is used as an internal coil, it will toggle the instructions associated with it. That is, it will close a normally open instruction and open a normally closed instruction.</p>
<p>Allen-Bradley calls these outputs &#8220;OTE&#8221;, or &#8220;OutpuT Energize&#8221;.</p>
<p>An OTE may be used with a hardwired output or an internal coil.</p>
<p><strong>TRUE</strong> &#8211; A state that indicates an instruction is allowing logic to &#8220;flow&#8221; through it.</p>
<p>Also, if the logic in a rung turns on the output of the rung, then the rung is said to be true.</p>
<p><strong>FALSE</strong> &#8211; Without stating the obvious, this is the opposite of true.</p>
<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/PLC_Programming_with_RSLogix_5000.html">PLC Programming with RSLogix 5000</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/addressing-in-rslogix-5000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to an Allen-Bradley SLC and Going Online</title>
		<link>http://www.engineer-and-technician.com/connecting-to-an-allen-bradley-slc-and-going-online/</link>
		<comments>http://www.engineer-and-technician.com/connecting-to-an-allen-bradley-slc-and-going-online/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 04:29:16 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[allen bradley]]></category>
		<category><![CDATA[plc]]></category>
		<category><![CDATA[plc programming]]></category>
		<category><![CDATA[programming with rslogix]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=72</guid>
		<description><![CDATA[I get a lot of questions about going online with a PLC. Here is a section from PLC Programming with RSLogix 500 that covers going online with an SLC 5/03. You have written your program and now you are ready to download, or send, the Batching program to the computer. WARNING There are dangerous voltages [...]]]></description>
			<content:encoded><![CDATA[<p><em>I get a lot of questions about going online with a PLC. Here is a section from <a href="http://engineer-and-technician.com/plc-training/PLC_Programming_with_RSLogix_500.html">PLC Programming with RSLogix 500</a> that covers going online with an SLC 5/03.</em></p>
<hr />You have written your program and now you are ready to download, or send, the Batching program to the computer.<span id="more-72"></span></p>
<p><img class="alignnone size-full wp-image-73" title="warning" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/warning.png" alt="warning" width="42" height="36" /><span style="color: #ff0000;"><strong><br />
WARNING</strong></span><br />
<strong>There are dangerous voltages present on terminals of the PLC. Follow all warnings and instructions from the Allen-Bradley manual for connecting power to the PLC. If you are not familiar with hazards and the potential dangers of these voltages STOP RIGHT NOW. Consult a trained professional who is able to assist you.</strong></p>
<p>First, backup up your original file and put it in a safe place.</p>
<p>Check the serial port settings of your computer in Control Panel. Make sure the baud rate (or bits per second) of your COM port is set as high as possible 57600 should work there.</p>
<p>Allen-Bradley provides a cable to connect the serial port of your computer to the 9-pin serial port on the SLC 500 processor. Connect the cable and turn power on to the PLC.</p>
<p>Turn the key operated switch on the processor to the center position PROG (program).</p>
<p>If you do not have RSLinx installed, you will have to do that now.</p>
<p>After you install RSLinx, you will have to configure it for your computer and your PLC.</p>
<p>To do that,</p>
<p>Choose<br />
Start &gt; Programs &gt; Rockwell Software &gt; RSLinx &gt; RSLinx</p>
<p>In the Notification are of your Taskbar (the lower right of your Windows screen) that looks like this.</p>
<p><img class="alignnone size-full wp-image-74" title="connecting_to_a_plc1" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc1.png" alt="connecting_to_a_plc1" width="40" height="29" /></p>
<p>The one on the left is the RSLinx Communications Service. The other one is for the RSI Directory Service.</p>
<p>Click on the left one, the RSLinx Communications Service. The RSLinx screen will appear.</p>
<p><img class="alignnone size-full wp-image-75" title="connecting_to_a_plc2" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc2.png" alt="connecting_to_a_plc2" width="469" height="233" /></p>
<p>Choose</p>
<p>Communications &gt; Configure Drivers</p>
<p>The driver screen appears.</p>
<p><img class="alignnone size-full wp-image-77" title="connecting_to_a_plc3" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc3.png" alt="connecting_to_a_plc3" width="455" height="269" /></p>
<p>Choose RS-232 DF1 devices from the “Available Driver Types” drop-down menu.</p>
<p>Click “Add New”.</p>
<p><img class="alignnone size-full wp-image-78" title="connecting_to_a_plc4" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc4.png" alt="connecting_to_a_plc4" width="244" height="98" /></p>
<p>Click “OK”.</p>
<p><img class="alignnone size-full wp-image-79" title="connecting_to_a_plc5" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc5.png" alt="connecting_to_a_plc5" width="333" height="333" /></p>
<p>You probably have your cable connected to COM1 of your computer. Click “Auto-Configure”.</p>
<p>In the box to the right of the “Auto-Configure” button, you should see a message that says “Auto Configuration Successful”. In addition, the “Device:” box should show “SLC-CH0/Micro/PanelView”.</p>
<p><img class="alignnone size-full wp-image-80" title="connecting_to_a_plc6" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc6.png" alt="connecting_to_a_plc6" width="333" height="333" /></p>
<p>Click “OK”. You should see a screen like this.</p>
<p><img class="alignnone size-full wp-image-81" title="connecting_to_a_plc7" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc7.png" alt="connecting_to_a_plc7" width="455" height="269" /></p>
<p>Click “Close”. You may close the RSLinx screen – RSLinx will still run, as indicated by the icon in the Notification area of your taskbar.</p>
<p>Open RSLogix.</p>
<p>Choose Comms &gt; System Comm… from the menu. You will see a screen like this. You may have to maximize the screen and resize the panels to get the right view.</p>
<p><img class="alignnone size-full wp-image-82" title="connecting_to_a_plc8" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc8.png" alt="connecting_to_a_plc8" width="469" height="242" /></p>
<p>In the explorer panel on the left, click on the “+” next to “AB_DF1-1, DH-485”. You should see animation in the icon, as the tiny blue square moves around the little network symbol. The computer icon for address 00 indicates your computer. The icon for address 01 indicated the PLC. In our case, it is an SLC-5/03.</p>
<p><img class="alignnone size-full wp-image-83" title="connecting_to_a_plc9" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc9.png" alt="connecting_to_a_plc9" width="469" height="242" /></p>
<p>Select the SLC in the left window and click “OK”. The communications window will close.</p>
<p>In the RSLogix 500 main screen, choose File. Select your program from the Recent File List (it is probably 1).</p>
<p>Choose “Controller Properties” from the Project tree. Click on the “Controller Communications” tab.</p>
<p><img class="alignnone size-full wp-image-84" title="connecting_to_a_plc10" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc10.png" alt="connecting_to_a_plc10" width="350" height="257" /></p>
<p>Click on the “Driver” dropdown box and select “AB_DF-1-1”.</p>
<p><img class="alignnone size-full wp-image-85" title="connecting_to_a_plc11" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc11.png" alt="connecting_to_a_plc11" width="350" height="257" /></p>
<p>Click “Apply” then “OK”.</p>
<p>Choose Comms &gt; Download</p>
<p>You should get a screen similar to this.</p>
<p><img class="alignnone size-full wp-image-86" title="connecting_to_a_plc12" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc12.png" alt="connecting_to_a_plc12" width="407" height="192" /></p>
<p>Choose “Yes”.</p>
<p>The program will begin downloading.</p>
<p><img class="alignnone size-full wp-image-87" title="connecting_to_a_plc13" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc13.png" alt="connecting_to_a_plc13" width="251" height="105" /></p>
<p>Since we are downloading a new configuration, this screen will appear.</p>
<p><img class="alignnone size-full wp-image-88" title="connecting_to_a_plc14" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc14.png" alt="connecting_to_a_plc14" width="304" height="208" /></p>
<p>Choose “Apply”. The program is now in the PLC.</p>
<p>Sometimes it is necessary to cycle power on your computer. Making the first connection to a PLC can be tricky. Prepare yourself by having the phone number for your Rockwell rep handy.</p>
<p>If things go well, you may be able to go online right away.</p>
<p>Choose Comms &gt; Go Online</p>
<p><img class="alignnone size-full wp-image-89" title="connecting_to_a_plc15" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc15.png" alt="connecting_to_a_plc15" width="464" height="293" /></p>
<p>Choose “Browse” and find the folder where you file is located. Click “OK”.</p>
<p>The file name will show in the bottom box. Click on it to select it, then click “Upload Use File”.</p>
<p><img class="alignnone size-full wp-image-90" title="connecting_to_a_plc16" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc16.png" alt="connecting_to_a_plc16" width="251" height="105" /></p>
<p>You may need to change the Baud Rate of the PLC. Click “Channel Configuration” in the Project tree and click on the “Chan. 0 – System” tab. Choose “19200” from the Baud dropdown menu. Click “Apply” and “OK”.</p>
<p><img class="alignnone size-full wp-image-91" title="connecting_to_a_plc17" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc17.png" alt="connecting_to_a_plc17" width="395" height="379" /></p>
<p><em><strong><span style="color: #ff0000;">Tip:</span></strong> In Allen-Bradley PLC vernacular, <strong>upload</strong> means get the program from the PLC and load it in RSLogix on your computer.</em></p>
<p><em><strong>Download</strong> means send the program from RSLogix on your computer to the PLC.</em></p>
<p>You will now see a screen like this. Notice that the ladder icon is animated to indicate you are online.</p>
<p><img class="alignnone size-full wp-image-92" title="connecting_to_a_plc18" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/connecting_to_a_plc18.png" alt="connecting_to_a_plc18" width="469" height="418" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/connecting-to-an-allen-bradley-slc-and-going-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up an SCP in RSLogix 500</title>
		<link>http://www.engineer-and-technician.com/setting-up-an-scp-in-rslogix-500/</link>
		<comments>http://www.engineer-and-technician.com/setting-up-an-scp-in-rslogix-500/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 02:18:12 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[plc programming]]></category>
		<category><![CDATA[rslogix 500]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=66</guid>
		<description><![CDATA[An SCP (Scale with Parameters) is really handy instruction in RSLogix 500. It scales any range of values to a range defined by the programmer. One of the common uses of the SCP instruction is to take the value from an analog input and scale it to an engineering value. In the example below, you [...]]]></description>
			<content:encoded><![CDATA[<p>An SCP (Scale with Parameters) is really handy instruction in RSLogix 500. It scales any range of values to a range defined by the programmer.</p>
<p>One of the common uses of the SCP instruction is to take the value from an analog input and scale it to an engineering value.<span id="more-66"></span></p>
<p>In the example below, you can see how the output from a set  of scales can be scaled to show the actual weight of the tank.</p>
<p>In RSLogix 500, double-click on 0000. This opens up the ASCII editor.</p>
<p><img class="alignnone size-full wp-image-67" title="scp1" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/scp1.png" alt="scp1" width="469" height="261" /></p>
<p>Type SCP in the box and press enter. SCP stands for “Scale with Parameters”. It allows you to take an analog input from a sensor and scale it to the output units you want.  <em>[Note: You could certainly insert the instruction using the toolbar. I just wanted to show how to use the ASCII editor to insert an instruction.]</em></p>
<p>Before we start scaling, let’s take a moment to see how the Allen-Bradley NI4 converts a 0-10VDC signal to a number. The NI4 is an analog-to-digital processor that takes the 0-10VDC signal and converts it to a number between 0 and 16384.</p>
<p>The NI4 will yield a number from 0 to 16384 that is directly proportional to the 0 to 10VDC signal that is applied at the input.</p>
<p>In other words, zero volts on the input of the NI4 means that the NI4 will provide 0 as a value to the PLC. Ten volts on the input will yield 16384. Five volts on the input will yield half of 16384, or 8192, and so on.</p>
<p>The SCP instruction starts out looking like this.<br />
<img class="alignnone size-full wp-image-68" title="scp2" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/scp2.png" alt="scp2" width="469" height="262" /></p>
<p>Each of the six parameters (Input, Input Min., Input Max., Scaled Min., Scaled Max. and Output) has two fields associated with them. Each field is currently filled with a question mark. The first field is a value that you assign. The second field is the actual value returned by the processor.</p>
<p><strong>Setting up an SCP to calculate Tank Weight</strong><br />
The Input parameter is the value that will be scaled. Let’s use this SCP instruction for the Scales. The input we will use is the address we assigned to the analog input card; that is, I:1.0.</p>
<p>The Input Min parameter is the value that is read by the analog card when there is no liquid in the tank. With our scales, this value is 0.</p>
<p>The Input Max is the value that is read by the card when the tank is full. Our Mixing tank weighs 2000 lbs. when it is full of liquid. We measured the voltage that the Scale put out when the tank was full and found it to be 10 volts.</p>
<p>So, in this case, 2000 lbs. in the tank equals 10 volts, which means the NI4 will read out 16384 when the tank has 2000 lbs. of liquid in it.</p>
<p>The Scaled Min parameter is the lowest value you want the SCP to calculate in the units you want. In this case, it is 0, and we are using pounds as our units.</p>
<p>The Scaled Max parameter is the highest value you want the SCP to calculate. For the Scales in our project, it is 2000.</p>
<p>The Output parameter is typically an address where you want to store the result of the SCP. We are going to put it in the N7 file (integer). We will store it specifically in N7:0.</p>
<p>Here is how the SCP instruction for our Scales looks.<br />
<img class="alignnone size-full wp-image-69" title="scp3" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/scp3.png" alt="scp3" width="469" height="261" /></p>
<p>Admittedly, the numbers rarely work out like this, but for simplicity’s sake, I made them easy to work with.</p>
<p>The real beauty of the SCP is apparent after you go online. Let’s say that you couldn’t really calibrate the scales previously by using voltmeter.</p>
<p>After you go online, and you are getting live data from the SCP instruction, you can visually verify that the tank is empty.</p>
<p>Hoverer, you are reading 133 from the NI4. You simply enter 133 as the Input Min parameter.</p>
<p>When the tank is full, you see that the reading is 14733. Enter 14733 as the Input Max parameter and the SCP will calculate the rest for you.</p>
<p>The important thing to remember is that the value in N7:0 is the actual weight of the tank in pounds. We will use that when we program the setpoint logic.</p>
<p>This is how N7:0 is used. In the example below, we want to add 1275 pounds of water to a tank. As long as the weight of the tank (N7:0) is below 1275 pounds, the city water valve will remain open.</p>
<p><img class="alignnone size-full wp-image-70" title="scp4" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/scp4.png" alt="scp4" width="469" height="323" /></p>
<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/PLC_Programming_with_RSLogix_500.html">PLC Programming with RSLogix 500</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/setting-up-an-scp-in-rslogix-500/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Troubleshooting A PLC With RSLogix 5000</title>
		<link>http://www.engineer-and-technician.com/troubleshooting-with-rslogix-5000/</link>
		<comments>http://www.engineer-and-technician.com/troubleshooting-with-rslogix-5000/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:17:17 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[rslogix]]></category>
		<category><![CDATA[rslogix 5000]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=113</guid>
		<description><![CDATA[Excerpted from How To Troubleshoot With A PLC Let&#8217;s consider a batching system just like the one we worked on earlier, except that the PLC is an Allen-Bradley ControlLogix. The software we use to program a ControlLogix PLC is Rockwell&#8217;s RSLogix 5000. TROUBLESHOOTING OPERATION #3 BATCHING SYSTEM WON&#8217;T PUMP FINISHED PRODUCT The problem is that [...]]]></description>
			<content:encoded><![CDATA[<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/How_To_Troubleshoot_With_A_PLC.html">How To                                 Troubleshoot With A PLC</a></em></p>
<p>Let&#8217;s consider a batching system just like the one we worked on earlier, except that the PLC is an Allen-Bradley ControlLogix. The software we use to program a ControlLogix PLC is Rockwell&#8217;s RSLogix 5000.</p>
<p><span style="color: #ff0000;"><strong>TROUBLESHOOTING OPERATION #3</strong></span></p>
<p><span style="color: #ff0000;"><strong>BATCHING SYSTEM WON&#8217;T PUMP FINISHED PRODUCT<span id="more-113"></span></strong></span></p>
<p>The problem is that the system is not working. A completed batch was being pumped to the filing lines when the pumped stopped and the &#8220;System Fault&#8221; pilot light came on. Pressing the &#8220;Start&#8221; or &#8220;Stop&#8221; buttons has no effect.</p>
<p>Shown below is a graphical layout of the system. In fact, apart from the program, this is all the information you have.</p>
<p><img class="size-full wp-image-114 alignnone" title="troubleshooting_with_rslogix_5000-1" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-1.png" alt="troubleshooting_with_rslogix_5000-1" width="305" height="227" /></p>
<p>The operator station looks like this.</p>
<p><img class="alignnone size-full wp-image-115" title="troubleshooting_with_rslogix_5000-2" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-2.png" alt="troubleshooting_with_rslogix_5000-2" width="345" height="264" /></p>
<p>The &#8220;System Fault&#8221; pilot light is on.</p>
<p>As you go online, this screen appears.<br />
<img class="alignnone size-full wp-image-116" title="troubleshooting_with_rslogix_5000-3" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-3.png" alt="troubleshooting_with_rslogix_5000-3" width="468" height="316" /></p>
<p>We want to find the rung that generates a system fault.</p>
<p>In the Controller Organizer (the window on the left), click on the &#8220;+&#8221; folder icon to open the &#8220;Tasks&#8221; folder.</p>
<p>Open the &#8220;Main Task&#8221; folder.</p>
<p>Open the &#8220;Main Routine&#8221;.</p>
<p>The screen looks like this.<br />
<img class="alignnone size-full wp-image-117" title="troubleshooting_with_rslogix_5000-4" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-4.png" alt="troubleshooting_with_rslogix_5000-4" width="468" height="319" /></p>
<p><strong>Finding The Problem</strong></p>
<p>We could use CTRL-F to find the system fault bit, but it conveniently appears in the first rung.</p>
<p>The instruction is false, which keeps the output &#8220;SystemEnable&#8221; false.</p>
<p>Right-click on the tag name (SystemFault) and choose &#8220;Find All SystemFault&#8221;. The search results box appears at the bottom of the screen.<br />
<img class="alignnone size-full wp-image-118" title="troubleshooting_with_rslogix_5000-5" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-5.png" alt="troubleshooting_with_rslogix_5000-5" width="469" height="319" /></p>
<p>We are looking for the output, or OTE. Click on the blue line that says &#8220;Found: Rung 22, OTE Operand 0: OTE(SystemFault).</p>
<p>We are taken to Rung 22.<br />
<img class="alignnone size-full wp-image-119" title="troubleshooting_with_rslogix_5000-6" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-6.png" alt="troubleshooting_with_rslogix_5000-6" width="469" height="319" /></p>
<p>The output is true, but there is no other instruction in the rung that is highlighted.</p>
<p>Take a closer look at the GRT instruction. A GRT instruction is true when Source A is greater than Source B.</p>
<p>In our GRT instruction, Source A is 100 and Source B is 95. That makes the instruction true, which is turning on the &#8220;SystemFault&#8221; output, which is keeping the system from running.</p>
<p>Not all instructions in RSLogix change color when they are true.</p>
<p>According to the description applied to the instruction, Source A is the liquid level in the mixing tank. It is being reported as 100 (whatever that means).</p>
<p>Source A gets its value from Local:2:I.Ch1Data. We can tell that this tag represents a hardwired input.</p>
<p>We can deduce that this is an analog input, since we are getting a value that is not just 1 or 0.</p>
<p><strong>Investigating An Analog Input</strong><br />
In the Controller Organizer, double-click on &#8220;I/O Configuration&#8221;. On this PLC, slot 2 has a 1756-IF8 card. Right-click on slot 2 and choose &#8220;Properties&#8221;. The &#8220;Module Properties: Local:2 (1756-IF8 1.1)&#8221; window appears. Click on the &#8220;Configuration&#8221; tab. Click on the &#8220;Channel 1&#8243; button.</p>
<p>The configuration is shown like this.</p>
<p><img class="alignnone size-full wp-image-120" title="troubleshooting_with_rslogix_5000-7" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-7.png" alt="troubleshooting_with_rslogix_5000-7" width="429" height="260" /></p>
<p>Now we see that the input range on this channel is 0 to 10 volts. The engineering units applied to the scaling suggests that the level in the tank is shown as a percentage. That is, 0 volts equals 0% and 10 volts equals 100%.</p>
<p>Let&#8217;s go back to Rung 22.<br />
<img class="alignnone size-full wp-image-121" title="troubleshooting_with_rslogix_5000-8" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/troubleshooting_with_rslogix_5000-8.png" alt="troubleshooting_with_rslogix_5000-8" width="427" height="186" /></p>
<p>The GRT will become true if the level in the tank exceeds 95%, which sets a system fault. That makes sense.</p>
<p>The PLC thinks the tank is 100% full. As we look inside the tank, we can see that it is nearly empty.</p>
<p>We can conclude that the PLC program is functioning properly. It is doing what it is supposed to do.</p>
<p>This is very likely to be a hardware problem. There could be a short in the signal wire from the level sensor, the sensor could be defective or the input card on the PLC could be bad.</p>
<p>Your electrician measures the voltage on the input of the PLC card and sees 10 volts. He disconnects the signal wire from the PLC, and you see the value of Source A in the GRT instruction drop to zero.</p>
<p>He measures the voltage at the output of the level sensor and again finds 10 volts.</p>
<p>You can manually pump the remaining liquid out of the tank and monitor the voltage at the output of the sensor. If it does not change, then the next step would be to clean, repair or replace the sensor.</p>
<p>The sensor is replaced and you see a more accurate level indicated in the GRT.</p>
<p>Testing the sensor to make sure it shuts down the system if the level gets too high might be difficult without disrupting a batch. You may have to use your imagination here. I will leave that up to you.</p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/troubleshooting-with-rslogix-5000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Equivalent Logic in PLC Programming</title>
		<link>http://www.engineer-and-technician.com/equivalent-logic/</link>
		<comments>http://www.engineer-and-technician.com/equivalent-logic/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 01:00:48 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[Ladder Logic]]></category>
		<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[plc programming]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=34</guid>
		<description><![CDATA[If you understand basic electrical diagrams, it is much easier to understand ladder logic. In fact, that was the whole idea behind ladder logic. It was supposed to look, and work, like real electrical circuits Excerpted from “The Beginner’s Guide to PLC Programming” In its elementary form, PLC logic is very similar to the hard-wired [...]]]></description>
			<content:encoded><![CDATA[<p>If you understand basic electrical diagrams, it is much easier to understand ladder logic.</p>
<p>In fact, that was the whole idea behind ladder logic. It was supposed to look, and work, like real electrical circuits<span id="more-34"></span></p>
<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/Beginner_Guide_to_PLC_Programming.html">“The Beginner’s Guide to PLC Programming”</a></em></p>
<p>In its elementary form, PLC logic is very similar to the hard-wired logic you would find in an electrical ladder diagram.</p>
<p>For example, if you wanted to turn on a light with a momentary pushbutton, you would wire it like the circuit below.</p>
<p><img class="alignnone size-full wp-image-36" title="equivalent_logic_11" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/equivalent_logic_11.png" alt="equivalent_logic_11" width="433" height="81" /></p>
<p>When you press PB1, the pilot light PL1 lights up.</p>
<p><img class="alignnone size-full wp-image-37" title="equivalent_logic_2" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/equivalent_logic_2.png" alt="equivalent_logic_2" width="433" height="81" /></p>
<p>Now let&#8217;s do the same thing in a PLC. To duplicate the hardwired circuit on a PLC, you would wire the switch PB1 to an input and wire the light PL1 to an output. Each PLC manufacturer gives you the details of wiring their particular modules. The I/O (hardwired inputs and outputs) is set up like this:</p>
<p>- There is a “PB1” pushbutton switch wired to INPUT1 of the PLC.<br />
- There is a “PL1” pilot light wired to OUTPUT1 of the PLC.</p>
<p><img class="alignnone size-full wp-image-41" title="equivalent_logic_3" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/equivalent_logic_3.jpg" alt="equivalent_logic_3" width="532" height="79" /></p>
<p>Now let’s examine the sequence of events. When you first turn on the PLC, the PB1 pushbutton is off, or false.  Therefore, the PL1 output is off. Pressing PB1 will make INPUT1 true, OUTPUT1 will come on and the light will be energized. It will stay on only as long as you hold the button in. Just like electrical current has to flow through the switch to turn on the light in the hardwired circuit, the logic has to &#8220;flow&#8221; through the normally open instruction (which is closed when you press the switch) of INPUT1 to energize the output that turns on PL1.</p>
<p>The programming terminal display will look something like this as you hold in PB1. The yellow highlight indicates the bit, or address, is “on” or “true”.</p>
<p><img class="alignnone size-full wp-image-42" title="equivalent_logic_4" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/equivalent_logic_4.jpg" alt="equivalent_logic_4" width="533" height="74" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/equivalent-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSLogix 500 Addressing in an Allen-Bradley PLC</title>
		<link>http://www.engineer-and-technician.com/rslogix-500-addressing/</link>
		<comments>http://www.engineer-and-technician.com/rslogix-500-addressing/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 01:41:33 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[Ladder Logic]]></category>
		<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[instruction]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[plc]]></category>
		<category><![CDATA[plc programming]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=61</guid>
		<description><![CDATA[There are a number of addressing schemes used by PLC manufacturers. Let&#8217;s take a quick look at how memory locations (including hardware I/O) are accessed with RSLogix 500. Along the way, I will define some terms. INSTRUCTION – RSLogix’s command language is comprised of “instructions”. An XIC (it looks like a normally open contact &#8211;] [...]]]></description>
			<content:encoded><![CDATA[<p>There are a number of addressing schemes used by PLC manufacturers. Let&#8217;s take a quick look at how memory locations (including hardware I/O) are accessed with RSLogix 500. Along the way, I will define some terms.<span id="more-61"></span></p>
<p><strong>INSTRUCTION</strong> – RSLogix’s command language is comprised of “instructions”. An XIC (it looks like a normally open contact &#8211;] [-- ) is an instruction. A timer is an instruction. A few of the most common instructions are described below.</p>
<p><strong>BIT</strong> - an address within the PLC. It can be an input, output or internal coil, among others.</p>
<p>In RSLogix, there are a couple of ways to show the address of a bit. The default is:</p>
<p><strong>[type]:[word]/[bit]</strong></p>
<p>For example, an address that references an output of an SLC 500 is O:5/0. That is:</p>
<p><strong>O</strong>:5/0 means that it is a physical output.<br />
O:<strong>5</strong>/0 means that it uses Slot 5 (the 6th physical slot) in the rack.<br />
O:5/<strong>0</strong> means that it is the first output on the card.</p>
<p>Remember that the first slot in an SLC 500 rack is Slot 0. That means a card that is installed in the 6th physical slot is addressed as Slot 5.</p>
<p>Allen-Bradley PLC slots, like many computers, always start with 0.</p>
<p>By the way, don’t get the capital “O’s” confused with zeroes.</p>
<p><strong>RUNG</strong> &#8211; A section of the PLC ladder program that terminates in an output function of some type. Just like in an electrical ladder diagram, a rung has some type of output that is turned on or turned off by the preceding entities in the rung. The first rung in a ladder program is always 0000.</p>
<p><strong>HARDWIRED INPUT</strong> &#8211; a physical connection to the PLC from an input device (switch or sensor, etc.).</p>
<p>Allen-Bradley uses the capital letter “I” to designate a hardwired input. An address that describes an input on an SLC 500 is I:4/0.</p>
<p>Similar to the output structure,</p>
<p><strong>I</strong>:4/0 means that it is a physical input.<br />
I:<strong>4</strong>/0 means that it uses Slot 4 (the 5th slot in the rack).<br />
I:4/<strong>0</strong> means that it is the first input on the card.</p>
<p>Don’t get the capital “I’s” confused with ones.</p>
<p><strong>HARDWIRED OUTPUT</strong> &#8211; a physical connection from the PLC to an output device (relay or pilot light, etc.) As was said above, an address that references an output of an SLC 500 is O:5/0.</p>
<p><strong>INTERNAL COIL </strong><br />
This is a programmable bit used to simulate a relay within the PLC. The internal coil has no connection to the outside world. It does not connect to an output card. Internal coils are used to store information. The “contacts” of this “relay” can then be used multiple times in other parts of the program.</p>
<p>In RSLogix, the “B3” (binary) file is commonly used for all the internal coils. There are many other words in other files that have bits you can use as internal coils, but we are going to stick with the B3 file for our application.</p>
<p><strong>B3</strong>:0/0 means that it references an internal Binary file<br />
B3:<strong>0</strong>/0 means that it uses the first word in the table<br />
B3:0/<strong>0</strong> means that it is the first bit in the word.</p>
<p>Note that, unlike the Output and Input files, you have to use the file number in the address. In this case, the default file number is 3.</p>
<p><strong>TIMER</strong><br />
A timer is a programmable instruction that lets you turn on or turn off bits after a preset time.</p>
<p>The two primary types of timers are TON for “timer on delay” and TOF for “timer off delay”.</p>
<p>Timers in A-B SLC and MicroLogix processors use file 4 for their timers.</p>
<p><strong>T4</strong>:0 means that it references an internal Timer file<br />
T4:<strong>0</strong> means that it uses the first timer in the table</p>
<p>The address T4:0 simply refers to the timer. Each timer has bits that turn on after the timing function is complete. You can address this bit by simply putting a “/DN” after the timer address. DN stands for “done”.</p>
<p>For example, if timer T4:0 is a TON (timer on delay), then the bit T4:0/DN will turn on after the timer has reached its preset value.</p>
<p><strong>COUNTER</strong><br />
A counter is a programmable instruction that lets you turn on or turn off bits after a preset count has been reached.</p>
<p>There are different types of counters available in the RSLogix, but the CTU (counter up) instruction covers everything we will talk about here.</p>
<p>Counters in A-B SLC and MicroLogix processors use file 5.</p>
<p><strong>C5</strong>:0 means that it references an internal Counter file<br />
C5:<strong>0</strong> means that it uses the first counter in the table</p>
<p>The address C5:0 simply refers to the counter. Each counter has bits that turn on after the counting function is complete. You can address this bit by simply putting a “/DN” after the counter address. DN stands for “done”.</p>
<p>For example, if counter C5:0 is a CTU (counter up), then the bit C5:0/DN will turn on after the counter has reached its preset value.</p>
<p><strong>&#8211;] [--    Normally Open Contact</strong><br />
When used with a hardwired input, this instruction is off until there is a voltage applied to the input. The bit address then goes high, or on, and the instruction becomes “true.” It works the same way when it has the same address as an internal coil, except that the coil must be turned on by logic in the program.</p>
<p>Allen-Bradley calls these normally open contacts “XIC”, or “eXamine If Closed” instruction.</p>
<p>An XIC instruction can reference a hardwired input, a hardwired output, an internal coil or a timer done bit, among others.</p>
<p><strong>--]/[&#8211;    Normally Closed Contact</strong><br />
This is an inverted normally open contact.</p>
<p>When used with a hardwired input, this instruction is &#8220;true&#8221; until there is a voltage applied to the input. It then goes low, or off, and becomes “false.”</p>
<p>It also can be used with an internal coil, becoming true when the coil is off and becoming false when the coil is on.</p>
<p>Allen-Bradley calls these normally closed contacts “XIO”, or “eXamine If Open” instructions.</p>
<p><strong>-( )-    Output Coil</strong><br />
When used with a hardwired output, this function is off until the logic in the program allows it to turn on. It then becomes “true”, and will energize the device that is wired to the respective output.</p>
<p>If it is used as an internal coil, it will toggle the instructions associated with it. That is, it will close a normally open instruction and open a normally closed instruction.</p>
<p>Allen-Bradley calls these outputs “OTE”, or “OutpuT Energize”.</p>
<p>An OTE may be used with a hardwired output or an internal coil.</p>
<p><strong>TRUE</strong> &#8211; A state that indicates an instruction is allowing logic to “flow” through it.</p>
<p>Also, if the logic in a rung turns on the output of the rung, then the rung is said to be true.</p>
<p><strong>FALSE</strong> &#8211; Without stating the obvious, this is the opposite of true.</p>
<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/PLC_Programming_with_RSLogix_500.html">PLC Programming with RSLogix 500</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/rslogix-500-addressing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSLogix 5000 “Serial” Logic</title>
		<link>http://www.engineer-and-technician.com/conveyor/</link>
		<comments>http://www.engineer-and-technician.com/conveyor/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 21:21:15 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[Ladder Logic]]></category>
		<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[plc programming]]></category>
		<category><![CDATA[rslogix]]></category>
		<category><![CDATA[rslogix 5000]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=14</guid>
		<description><![CDATA[RSLogix 5000 allows the use of “serial” logic that does not conform to traditional, electrical ladder logic. For example, both of the rungs shown below are valid in RSLogix 5000. Clearly, the second version would not work if wired that way in an equivalent electrical circuit. It would not be allowed in RSLogix 500, either. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-13" title="rslogix-plc-conveyor" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/rslogix-plc-conveyor.jpg" alt="rslogix-plc-conveyor" width="588" height="252" /></p>
<p>RSLogix 5000 allows the use of “serial” logic that does not conform to traditional, electrical ladder logic.</p>
<p>For example, both of the rungs shown below are valid in RSLogix 5000.<span id="more-14"></span></p>
<p><img class="alignnone size-full wp-image-135" title="rslogix_5000_tips-1" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/rslogix_5000_tips-1.png" alt="rslogix_5000_tips-1" width="469" height="126" /><br />
<img class="alignnone size-full wp-image-136" title="rslogix_5000_tips-2" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/rslogix_5000_tips-2.png" alt="rslogix_5000_tips-2" width="470" height="98" /><br />
Clearly, the second version would not work if wired that way in an equivalent electrical circuit. It would not be allowed in RSLogix 500, either.</p>
<p>The main advantage, in my opinion, to writing the code as it is shown in the second version is that you can get more instructions on the screen, and that involves less scrolling. And, the logic is slightly different; if something turns off the “SystemReady” bit somewhere else in the program, PL1 would not come on.</p>
<p>The main disadvantage, in my experience, is that the second version will drive electricians and maintenance people crazy, if they are not familiar with RSLogix 5000. Their managers will most likely request that you re-write the rung in “traditional” ladder logic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/conveyor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up the Analog Input Card in RSLogix 5000</title>
		<link>http://www.engineer-and-technician.com/setting-up-the-analog-input-card-in-rslogix-5000/</link>
		<comments>http://www.engineer-and-technician.com/setting-up-the-analog-input-card-in-rslogix-5000/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 20:24:01 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[Ladder Logic]]></category>
		<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[plc programming]]></category>
		<category><![CDATA[rslogix]]></category>
		<category><![CDATA[rslogix 5000]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=131</guid>
		<description><![CDATA[Let&#8217;s assume that the output of our scales has been calibrated for 0-10 VDC. Zero volts equals 0 pounds, and 10 volts equals 2000 pounds. Now we know the signal type is DC voltage, the range is 0-10 and the engineering units are pounds. Right-click on the 1756-IF8 card in the Controller Organizer and choose [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume that the output of our scales has been calibrated for 0-10 VDC. Zero volts equals 0 pounds, and 10 volts equals 2000 pounds.</p>
<p>Now we know the signal type is DC voltage, the range is 0-10 and the engineering units are pounds.<span id="more-131"></span></p>
<p>Right-click on the 1756-IF8 card in the Controller Organizer and choose &#8220;Properties&#8221;. Click on the &#8220;Configuration&#8221; tab and you will see this.</p>
<p><img class="alignnone size-full wp-image-132" title="analog_input_card_rslogix-1" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/analog_input_card_rslogix-1.png" alt="analog_input_card_rslogix-1" width="469" height="335" /><br />
You&#8217;ll see that Channel 0, which is our Scales channel, is selected.</p>
<p>Click on the dropdown menu for &#8220;Input Range&#8221; and select &#8220;0V to 10V&#8221;.</p>
<p>Change the &#8220;Low Signal&#8221; field to 0.</p>
<p>Change the &#8220;High Engineering&#8221; field to 2000.</p>
<p>Change the &#8220;Low Engineering&#8221; field to 0.</p>
<p>That is all we really need to do. However, we are going to take advantage of the fact that there is a filter available. This filter smoothes input transitions.</p>
<p>Set the &#8220;Digital Filter&#8221; field to 1000 ms.</p>
<p>Click &#8220;Apply&#8221; and we are done with the scales.<br />
<img class="alignnone size-full wp-image-133" title="analog_input_card_rslogix-2" src="http://engineer-and-technician.com/wp-content/uploads/2009/05/analog_input_card_rslogix-2.png" alt="analog_input_card_rslogix-2" width="469" height="335" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/setting-up-the-analog-input-card-in-rslogix-5000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ladder Logic and the Dialect of PLCs</title>
		<link>http://www.engineer-and-technician.com/ladder-logic/</link>
		<comments>http://www.engineer-and-technician.com/ladder-logic/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 19:50:04 +0000</pubDate>
		<dc:creator>Neal Babcock</dc:creator>
				<category><![CDATA[Ladder Logic]]></category>
		<category><![CDATA[PLC Programming]]></category>
		<category><![CDATA[internal coil]]></category>
		<category><![CDATA[plc]]></category>
		<category><![CDATA[plc programming]]></category>

		<guid isPermaLink="false">http://engineer-and-technician.com/?p=3</guid>
		<description><![CDATA[Ladder logic is a programming language, like Visual Basic or C. When you learn any language, it is always important to understand the basic terms. If you are just getting started, here are a few terms you should know. These apply to any PLC. Excerpted from &#8220;The Beginner&#8217;s Guide to PLC Programming&#8221; BIT &#8211; an [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-6" title="rockwell-welding-robots" src="http://engineer-and-technician.com/wp-content/uploads/2009/04/rockwell-welding-robots.jpg" alt="rockwell-welding-robots" width="588" height="252" /></p>
<p>Ladder logic is a programming language, like Visual Basic or C. When you learn any language, it is always important to understand the basic terms.</p>
<p>If you are just getting started, here are a few terms you should know. These apply to any PLC.<span id="more-3"></span></p>
<p><em>Excerpted from <a href="http://engineer-and-technician.com/plc-training/Beginner_Guide_to_PLC_Programming.html">&#8220;The Beginner&#8217;s Guide to PLC Programming&#8221;</a></em></p>
<p><strong>BIT</strong> &#8211; an address within the PLC. It can be an input, output or internal coil, among others.</p>
<p><strong>RUNG</strong> &#8211; A section of the PLC ladder program that terminates in an output function of some type.</p>
<p><strong>HARDWIRED INPUT</strong> &#8211; a physical connection to the PLC from an input device (switch or sensor, etc.)</p>
<p><strong>HARDWIRED OUTPUT</strong> &#8211; a physical connection from the PLC to an output device (relay or pilot light, etc.)</p>
<p><strong>INTERNAL COIL</strong><br />
This is a programmable bit used to simulate a relay within the PLC. The internal coil has no connection to the outside world. It does not connect to an output card. Internal coils are used to store information. The “contacts” of this “relay” can then be used multiple times in other parts of the program.</p>
<p><strong>&#8211;] [--    Normally Open Contact</strong><br />
When used with a hardwired input, this instruction is off until there is a voltage applied to the input. The bit address then goes high, or on, and the instruction becomes “true.” It works the same way when it has the same address as an internal coil, except that the coil must be turned on by logic in the program.</p>
<p><strong>--]/[&#8211;    Normally Closed Contact</strong><br />
This is an inverted normally open contact. When used with a hardwired input, this instruction is &#8220;true&#8221; until there is a voltage applied to the input. It then goes low, or off, and becomes “false.” It also can be used with an internal coil, becoming true when the coil is off and becoming false when the coil is on.</p>
<p><strong>-(  )-    Output Coil</strong><br />
When used with a hardwired output, this function is off until the logic in the program allows it to turn on. It then becomes “true”, and will energize the device that is wired to the respective output. If it is used as an internal coil, it will toggle the instructions associated with it. That is, it will close a normally open instruction and open a normally closed instruction.</p>
<p><strong>+&#8212;&#8212;&#8212;&#8211;+<br />
TIMER        |<br />
+&#8211; SEC &#8212;+    Timer</strong><br />
This function is used to supply a programmable delay. It requires the use of its &#8220;timer finished&#8221; bit, like a time delay relay uses its contact.</p>
<p><strong>+&#8212;&#8212;&#8212;&#8212;+<br />
COUNTER    |<br />
+&#8212; 000 &#8212;+  Counter</strong><br />
The counter function is used to count events. It could be used to keep track of machine cycles, count parts, etc. It can be programmed with a preset value that triggers another event when the count is reached.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.engineer-and-technician.com/ladder-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

