Tag Archives: horner plc programming examples

Horner XL4 Data Logging

Data logging is the ability to save and view data from the PLC in a format that we can utilize elsewhere on the network. The Horner APG XL4 has this feature in its design to periodically log registers to removable media. (Micro SD) This data is stored in .CSV (comma separated value) format which is compatible with many computer applications such as Microsoft Excel.
Horner provides one of the easiest methods that I have seen to get data logging. You can log 30 registers in a log group and have 10 separate groups. Each group has its own configurable timer that determines the automatic reading and logging of the variables (registers). The group also has a manual trigger bit that can be set to log the variables.
This all in one controller provides the easiest way to log data. We will look at how to configure and utilize this feature of the PLC. Continue Reading!

Horner XL4 HTTP Web Server

The Horner APG XL4 all in one controller through the Ethernet port can set up a HTTP server. This HTTP (Hypertext Transfer Protocol) server can be used for distributed and controlled information presented to and from the controller to the network. The server can have security for the information presented. We use HTML (Hypertext Mark-up Language) on the server to create this Client / Server communication. Using the program on the process tank application we created previously, we will be controlling and displaying information to the network. A web browser on a computer, tablet, smart tv, or phone can be used to view and control this information in our Horner APG XL4 controller. Continue Reading!

Horner XL4 FTP File Transfer Protocol Server

The Horner APG XL4 all in one controller through the Ethernet port can set up a FTP server. This FTP (File Transfer Protocol) server can be used to move files from the controller to the network. The server can have different security for reading and writing the files. We will use the program on the process tank to move the recipe file and report files to another location on the network. The command line prompt, automated batch file, windows explorer and a free windows FTP client software will be used. Continue Reading!

Horner XL4 Recipe Instruction

The Horner APG XL4 all in one controller has recipe instructions. Recipes allow you to send or update multiple registers in your program from the removable micro SD memory card. Each recipe can have 250 ingredients and 1024 products. The number of recipes will be limited to the size of the removable memory card. We will be looking at applying recipes to our process mixer application. Editing, Save, Load and View instructions for the recipe will be discussed. Continue Reading!

Horner XL4 Rotate and Shift Register

The Horner APG XL4 all in one controller has several different instructions to shift and rotate the bits, bytes, words or double words in the memory. We will be discussing the bitwise operations of the shift and rotate instructions. Looking further into the move operations we will look at the Element Rotate and Element Shift instructions as they pertain to a conveyor belt tracking application. Continue Reading!

Horner XL4 Program Control Instructions

PLC programs scan usually from left to right, top to bottom. The outputs from the previous rung are available for the next. This is the operation of a PLC. Program control instructions allow us to add or remove parts of our program during each scan of the controller. The Horner APG XL4 has subroutines which we can achieve this control. We will look at how to divide your main logic up and at how subroutines work. Continue Reading!

Horner XL4 Compare and Move Instructions

Compare and move instructions in the Horner XL4 OCS all-in-one controller can be very powerful. We will be looking at how to use these instructions. Combining these two instructions to build a sequencer, we will apply this to an application example. Our application will be a simple traffic light. The HMI screen will show a picture of each of the lights. Continue Reading!

Horner XL4 Numbering System and Addressing

We will now look at the Horner XL4 numbering system and addressing. Data is stored into different memory type locations called registers. The registers can be either bits or words (16bit). Multiple registers can be used together to store a 32 bit value. (Double word) This all in one controller has several additional registers to handle some of the HMI communication. Let’s look at all of the areas in the controller. Continue Reading!

Horner XL4 Cscape Software Setup

The Horner XL4 OCS all-in-one controller is programmed using Csape. Cscape (Control Station Central Application Programming Environment) We will now setup the Cscape software so we can easily communicate and program our controller. Continue Reading!

Horner XL4 Installing the Software Cscape

The Horner XL4 OCS all-in-one controller is programmed using Csape. Cscape (Control Station Central Application Programming Environment) This single programming software package is designed to be easy to use and maintain. We will now install this programming package onto our computer. Continue Reading!