Welcome to Control.com
User Guest
Log in
Join
Link to the Puffin Projects site
The Puffin Projects

Links
Topics
About Us
Poetry
Home


The PLCArchive

Make your PLC programming examples part of this community resource. We accept PDF files; contact the maintainer if you need conversion help.

  Name Last Modified  Size 
Blink-LED.pdf   Thu May 1 10:29:01 2003  9.55 KB 
   

Controller.pdf   Thu May 1 10:28:37 2003  21.3 KB 
 

Example for using FB41 PID-Control for the SIMATIC S7 PLC's S7-300/400. Copy the data out of the PDF-file directly to a new file in the "Source"-container of STEP7, compile it and your controller is ready to work.

PID Control FB41 STEP7  

Controller_update.pdf   Thu May 1 10:29:01 2003  21.1 KB 
 

Example for using FB41 PID-Control for the SIMATIC S7 PLC's S7-300/400. Copy the data out of the PDF-file directly to a new file in the "Source"-container of STEP7, compile it and your controller is ready to work. Copy first the FB41 out of the standard library to the "Blocks"-container.

PID-Controller FB41 STEP7  

DH-485_Comm.pdf   Thu May 1 10:28:44 2003  22.4 KB 
 

This is a code fragment that I use for doing DH-485 comms between processors. The MSG instructions are cascaded to allow the fastest possible updates without worrying about a having failed MSG's clog up the channels and stop / slow down the rest of the MSG's to other machines. This is on a small (4 node) production line, but it could scale to whatever amount needed. Note that on larger networks, it may be better to keep two or three loops going at once.

Joe Jansen  

Download_Check.pdf   Thu May 1 10:28:16 2003  40.8 KB 
   

FC5.pdf   Thu May 1 10:28:14 2003  8.60 KB 
 

This function provide to smooth a analog input. The function calculate the smooth value by add S/16 of previous value with (16-S)/16 of actual value

the formula used is

Out = ([Smooth_factor]/16)[Prev_value]+((16-[Smooth_factor])/16)[Input_value]

S = smoothing factor X1 = initial value/previous output X2 = new input from I/O table

Valid entries for S smooth factor

If you want to.... then enter...

Prevent the smoothing 0 Provide minimal smoothing 1 provide maximum smoothing 15

Simone Stefani  

FDecode__S5_Version_.pdf   Thu May 1 10:22:00 2003  12.1 KB 
 

This document describes a simple method of decoding alarms (faults). These alarms may be displayed on a text OP (operator panel), or used in some other fashion. The actual algorithm used here is trivially simple, but this document describes applying it in a consistent and systematic manner.

Michael Griffin  

FLANKE_D_en.pdf   Thu May 1 10:28:15 2003  6.09 KB 
 

edge detection for a double word # simatic S7

André Räppel  

Gray_code.pdf   Thu May 1 10:28:35 2003  24.3 KB 
 

This file was submitted by Anthony Kerstens for converting grey code to binary. It's generalized to use a full 16 bits, but could be shortened or expanded to suit the application. The MSB is taken directly, and the algorithm for subsequent bits is the same for the remaining bits regardless of the number.

The logic example is programmed with symbols G15 to G00, and B with bits /15 to /0.

G15 to G00 are gray code inputs from an encoder or other such device. B is the binary integer file, with individual bit B/15 to B/0. The G15_MSB is taken directly. Subsequent G bits are XOR'd with the previous B bit. ie. B/n = Gn xor B/(n+1).

Joe Jansen  

Modicon_Motor_start-stop.pdf   Thu May 1 10:29:00 2003  85.6 KB 
 

Modicon 984 Ladder Logic Motor Start/Stop Circuit. Start/Stop circuit incorporates a momentary start pulse and an auxiliary contact sealin delay timer. Circuit valid for mechanical starters, solid state starter, and vari-frequency drives.

Brad Hite  

Modicon_Motor_start-stop_with_jog.pdf   Thu May 1 10:28:49 2003  88.6 KB 
 

Modicon 984 Ladder Logic Motor Start/Stop Circuit with Jog switch. Designed to turn an output on and off that can in turn be wired to a motor starter to start/stop a motor. Circuit includes a momentary start pulse and an auxiliary contact sealin delay timer. Circuit also provides a motor jog function. Jog switch must be a physical, wired, non-maintained switch for safe operation.

Brad Hite  

Modicon_Process_Start-Stop.pdf   Thu May 1 10:28:29 2003  111 KB 
 

Modicon 984 Ladder Logic Process Start/Stop Circuit. Provides a simple start/stop ladder circuit for many general uses. Not a motor start/stop circuit.

Brad Hite  

Modicon_toggle_bit.pdf   Thu May 1 10:28:41 2003  68.9 KB 
 

Modicon 984 Ladder Logic Toggle Bit. The Toggle Bit logic circuit provides the ability to turn a bit ON (bit=1) with the first action and then turn the bit OFF (bit=0) with the next action. The state of the Output changes each time the Input is energized (bit=1)

Brad Hite  

OPAlarm__S5_Version_.pdf   Thu May 1 10:24:55 2003  8.28 KB 
 

This document describes a simple method of acknowledging alarms in a Siemens text OP (operator panel with display and keypad). These OPs include the OP20, OP5, OP15, OP7, or OP17. OP "alarms" are an easy method of displaying and acknowledging faults. This version was written for a Siemens S5 PLC.

Michael Griffin  

OPAlarm__S7_Version_.pdf   Thu May 1 10:25:17 2003  41.4 KB 
 

This document describes a simple method of acknowledging alarms in a Siemens text OP (operator panel with display and keypad). These OPs include the OP7, and OP17. OP "alarms" are an easy method of displaying and acknowledging faults. This version of the subroutine is for a Siemens S7-22x and was translated from an older S5 function block which has been used in numerous applications.

Michael Griffin  

PLC_Paper.pdf   Thu May 1 10:29:55 2003  237 KB 
  Russell Kinner  

PLC_Paper_Appendix.pdf   Thu May 1 10:28:36 2003  21.0 KB 
  Russell Kinner  

PWtoRE.pdf   Thu May 1 10:28:38 2003  17.9 KB 
 

An S7 example to manage the "any" parameter. The function make a conversion of any type of imput in function of MAX and MIN of input and MAX & MIN of output. Furthermore check the alarm limit area of input signal and generate the overflow alarm.

Simone Stefani  

RS485_3.pdf   Thu May 1 10:28:34 2003  158 KB 
   

SAVE_2.pdf   Thu May 1 10:28:38 2003  15.7 KB 
 

Save Timer Program using Indirect Addressing in 4 Rungs.

Mark  

SLC_running_average.pdf   Thu May 1 10:28:25 2003  198 KB 
   

ScrNum__S5_Version_.pdf   Sun Jul 23 22:52:15 2000  9.18 KB 
 

This document describes a simple method of determining which is the current screen displayed on a Siemens text OP (operator panel with display and keypad). These OPs include the OP20, OP5, OP15, OP7, or OP17. It is often convenient to determine this screen number in order to limit specified actions to when a particular screen is selected by the operator. This version was written for a Siemens S5 PLC.

Michael Griffin  

Set_reset.pdf   Thu May 1 10:28:36 2003  7.94 KB 
 

This function set and reset a bit with only one command

Simone Stefani  

Software_changed.pdf   Thu May 1 10:29:01 2003  6.86 KB 
  Alan Rimmington  

Structure.pdf   Thu May 1 10:28:45 2003  17.0 KB 
   

Timer_to_HMS.pdf   Thu May 1 10:27:59 2003  16.6 KB 
   

XAxisPLC.pdf   Thu May 1 10:28:18 2003  27.6 KB 
 

An X-Axis motion control program for automating paint spraying.

Allen Smith  

a-b_mlogix_loader.pdf   Thu May 1 10:28:56 2003  232 KB 
 

Example ladder logic for a 3 station vacuum loader. Allen-Bradley Micrologix 1000.

Bob Welker  

a-b_mlogix_loader_doc.pdf   Thu May 1 10:28:44 2003  89.5 KB 
 

Supporting documentation for Micrologix 1000 3 station vacuum loader example, including an operation overview, I/O table

Bob Welker  

contador.pdf   Thu May 1 10:27:59 2003  10.7 KB 
   

derivate.pdf   Thu May 1 10:28:57 2003  13.7 KB 
 

This function calculate the 1st derive of [Input_value] The derive is calculate on 20 samples of [Input_value] the samples are take each time [CLK] is TRUE The output value is the sum of 1st 10 samples with 2nd 10 samples.

Parameters:

.[Input_value]: Value to derive .[Reset]: This command reset the act derive value. The calculation restart when all the items of samples array are refreshed

.[Derive_spl_CMD]: Timing step. The samples are taken when [Derive_spl_CMD] = TRUE .[Derive_value]: Derivated output value

.[Enable]: This output is energized when the calculation of act value is finished

.[Samples]: Samples container.

.[Nr_samples]: # of samples to take for calculation .[Derive_calc_ON]: System variable

.[Nr_of_shf]: System variable

.[Loop]: System variable

.[Index]: System variable

.[Prev_sum]: System variable

.[Next_sum]: System variable

.[Dummy_bit_1]: System variable

.[Calc_ON]: System variable

.[Init_end]: System variable

Simone Stefani  

logix_scan_eval.pdf   Thu May 1 10:28:46 2003  14.3 KB 
 

Scan time evaluator logic for an A-B Logix (ControlLogix, FlexLogix, CompactLogix) Processor. Logic calculates an average overall scan time for the controller.

Brad Hite  

logo_well_pump_control.pdf   Thu May 1 10:28:14 2003  453 KB 
 

Siemens Logo! well water pump control programming example

Bob Welker  

rsl_elapsed_time_monitor_example.pdf   Thu May 1 10:27:59 2003  7.17 KB 
 

SLC500/Micrologix - elapsed time monitoring example.

Bob Welker  

rslinx_setup.pdf   Thu May 1 10:29:48 2003  1.40 MB 
 

Rockwell Software RSLinx Lite setup and configuration for PLC-5 serial and DH+ communication.

Brad Hite  

Pi_control_example.pdf   Wed May 14 13:36:08 2003  50.7 KB 
 

PDF of an Excel spread sheet showing how you can change parameters and see what the effect is on a PI controller controlling a first order plant.

Chris Schene  

Upload a file

The man who sets out to carry a cat by its tail learns something that will always be useful and which never will grow dim or doubtful. - Mark Twain
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is ©1999-2006 Control Technology Corporation. Powered by Python, Zope, and Squishdot, inspiration by Slashdot. (Vers.ZSQ1.0) -va-
[ Bull! | Crater | Morley | Pinto | Vandoren | Worthington | Links | Topics | Post Article | Home ]