AutomationDirect

Technical Support

1-800-633-0405

Our technical notes are arranged according to the type of product:

Links with the PDF icon require the free Adobe Acrobat reader.

PLC Hardware

Part Number X-Ref
Use this cross-reference table if you're looking for the equivalent Automationdirect.com parts for your "old" GE or TI/Siemens PLC system.

Misc.

Protocol Support List
A PDF guide to communicating with Automationdirect.com products

Modbus X-Ref
A PDF document with Modbus to Octal X-Ref data


Example Programs

Example Program Policy

These programs are provided as is. They have been written by our technical support department and have had limited testing. We do not guarantee that these examples are suitable for your particular application, nor do we assume any responsibility for them in your application.

Our reason for providing these programs is to help everyone get high quality support. Please try to use these examples in their original form before modifying them for your particular application. We have had many calls claiming that the examples don't work and found that a mistake had been made when the example was re-entered by hand. The examples posted here have been run on equipment in our lab. If you are having difficulty with one of the examples check the following:

  • Have changes been made and are they correct?
  • Look at the title page for any special instructions.
  • Is the example the only thing executing in the CPU and has the CPU gone from PROGRAM mode to RUN mode to allow the first scan logic to run?
  • Does the CPU type and I/O match the example?

If you still have problems give us a call.

Thank you.

The Technical Support Team


Example Programs
105 205 305 350 405 T&D

File Name

Description

x x 2_ascii.zip This file contains both documentation and examples of how the bottom port of a 240 or 440 CPU could be used to send and receive ASCII data.
x 250ascii.zip This file contains an examples of how the bottom port of a 250 CPU could be used to send and receive ASCII data. You should get the documentation in 2_ascii.zip also for more information on how the ASCII information is stored in the CPU.
x Link to 340 CPU Configuration page. Example of how to configure port 2's communication parameters.
x x x 2_sqr.zip This file shows how the square root of a value between 1 and 9999 could be calculated. The resulting value has 2 implied decimal points. The square root is determined by using an iterative approximation, and therefore this algorithm requires a long time to execute.
x x 1_rpm.zip Example of how to calculate RPM for a device connected to the High Speed Counter inputs on the 105 CPU.
x 2profile.zip This app shows how to combine Straight Velocity and Accel/Decel profiles in mode 30.
x 105_trap_reg.zip This file that contains two projects for 105 mode 30 pulse output; one for trapezoidal profile and one for registration. These projects are enhancements of the examples show in the manual on pages 3-31 and 3-34 in that they provide logic for useing a momentary start pushbutton instead of a maintained button.
x x x commerr.zip This program shows how communication errors can be detected when using the RX and WX instructions.
x x x x safety.zip This example shows how to program a two button safety system for operators working around presses.
x x x x opt_comm_f.zip Example of how to detect that the Optimation panel is no longer communicating from within the CPU.
x x x countdown.zip This example shows how to convert the current value of a timer or counter so that it appears to count down instead of up. This is useful for displays on an operator interface or for relational contacts to trigger an action at a low limit.
x x x runtime.zip This project will create a table of values generated by measuring the times an input is energized.