Click here to learn the biblical way to get to heaven! (The most important page on this site)
You can have your very own virtual server though VPSLink! Using REFERRAL code MJDCDJ you will receive a 10% discount on
your new account, and I will get a service credit on my account. My personal preference is the Link 2 package running XEN for starting out (You can upgrade any time). You can choose from a variety of Linux distributions such as CENTOS, Fedora, Debian, and Ubuntu. This is a great package for learning Linux,
and setting up your own web page, or email server.
Adding Ladder Logic Offline
To add logic, we first have to get a new rung. You cannot add any logic to the END rung. For this example, we will use the drag and drop method for adding a new rung to ladder 2. Click on the “New Rung” icon, and drag the new rung down into the ladder view. You will see a red square. Move close to the red square, and it will turn green. Now you can drop the new rung.

The first instruction we will discuss is the XIC instruction (Examine if Closed). The XIC instruction is looking for the value of 1 at a specific address in order to have logical continuity. Drag the XIC instruction onto your new rung.

The next instruction we will place on the rung is the OTE instruction (Output To Energize) The OTE instruction writes a 1 to it's address when the rung is true, and a 0 to it's address when the rung is false.

Now, you will notice the “?” above the instructions. This is because we have not addressed the instructions yet. Remember the input and output data tables? Ladder logic reads from these tables, and manipulates the data in these tables. Open the input data table. Recall that when you was online, and toggled switch 0 on and off, I:2.0/0 is the address that changed it's value. This is the address we will have the XIC instruction look at. Open the input data table, and drag the address of your first switch onto the XIC instruction. Remember you MUST see a green box before dropping the address on the instruction.

Let's do the same thing with the output table. Drag O:3.0/0 onto the OTE instruction from the output data table.

When you are finished, download and test your work. If your logic is working properly, when you throw switch 0, light 0 should energize automatically.
Try adding the following rung of logic on your own. When you are finished download and test your work. We'll use the same switch, but a different light. This time we will be using the XIO instruction, which requires the switch to be off for the rung to be true.
