PLC Sample Code

Caps, LSS, CPT, Syswin, etc...

92 files

  1. Woodwood Controler Example Protocol Program

    This is a sample program to communicate to a Woodwood controller. This program is to be used in conjunction with the Modbus Protocol Macro Software. (See download section)

    1700 downloads

    Updated

  2. valve_control

    A working example of an FB to control a valve from an HMI panel. Controls closing/opening times, plus a little visualization.

    49 downloads

    Submitted

  3. V700-V720 RFID Protocol Macro

    Protocol Macro for V700 and V720 RFID controlllers. Has additional lader code. Need CX Protocol to download to PLC.

    1289 downloads

    Updated

  4. V600-E5CK

    Demonstrates how to use the TXD and RXD commands with V600 RFID system and E5CK Temperature Controller. In Syswin format (Can be opened with CX-Programmer.)

    1068 downloads

    Updated

  5. Useable timer

    Hate BCD? Me too. Here's a timer FB that uses wait for it an INTeger preset.
    Easier to scale gives you the time remaining done bit and a timing bit.
    Use one of the system bits (P_1s etc.) to set the timebase.

    3492 downloads

    Updated

  6. TXD-RXD Serial Port Handling

    Basic format for handling ASCII and Binary serial strings through an Omron Serial port. Covers control bits and TXD-RXD functions. Format is CPT 1.12 (.cpt)

    7194 downloads

    Updated

  7. TXD-RXD Quickstart Programs

    Collection of programs which demonstrate the use and setup of the TXD-RXD serial communication instructions. Examples for C200HE/G/X CPM2C CQM1 and CS/CJ PLCs
    Corrected CSCJ TXD_RXD program. Thanks BITS N BYTES

    9470 downloads

    Updated

  8. Tracking product on conveyor

    Products arrive on conveyor irregularly pitched. Conveyor is equipped with an encoder or maybe a proxy looking at the sprocket.
    This program captures the position and then multiple FB calls can be made to give an output at a distance from the input point maybe at a label inspction point or reject unit.
    The Shift register readout FB can be called as many times as necessary.
    The encoder can be connected to a high-speed counter meaning that the PLC scan need not 'see' every number i.e the encoder counter can be asynchronous.
    I've simulated this in this program by incrementing the 'encoder' with a timed interrupt.
    Adjacent to the product position stack is a product status stack so data can be written in at any point too e.g. I'm in front of the label detect sensor - if it's on then I can enter a '1' (say) into the stack. As the status is kept in a Word then upto 16 devices can write into the stack. Subsequent writes are ORed with existing data.
    This can be achieved with FIFO but this method is more efficient as data is not actually moved just pointers to the data.

    4757 downloads

    Updated

  9. Toggle Button

    This program illustrates how to simply Toggle a bit on or off with a single input. (A basic flip flop if u like)
    Two versions are provided
    The first version will work in a CJ1 / CS1 PLC because of the direct diff funciton on the input bit.
    The se

    3103 downloads

    Updated

  10. Template for Step-Step Next Sequence

    Provides a starting template for construction for an Omron STEP-STEP NEXT sequence. Similar to AB sequencer. Format is Syswin 3.4 (.swp).

    3490 downloads

    Updated

  11. Syswin 3.4 Manual

    Manual for the Syswin Programming Software for Omron Plcs

    27558 downloads

    Updated

  12. Syswin 3.3 Manual

    Manual for Syswin 3.3 Programming Software for Omron PLCs

    4697 downloads

    Updated

  13. Syswin 3.1 Manual Supplement

    Manual Supplement for Syswin 3.1 Programming Software for Omron PLCs

    2346 downloads

    Updated

  14. Sysmac Studio Simple PID Example

    A simple test program and starting values for the PIDAT instruction in Sysmac Studio. Simply run the simulator (Simulation-> Run) and toggle the Test_PID bit. Simulated feedback will allow the loop to operate normally. The setpoint can be adjusted by modifying the PID_SP variable. There is a pre-programmed data trace that traces the SP, MV, and PV.
    To use the data trace navigate to DataTrace0 and start the trace, flip the Test_PID bit true and the trace will log 10k samples. Change the SP and view the behavior when the trace finishes.

    60 downloads

    Updated

  15. STUP Example

    This is an example how to change the port settings:
    in the example it is triggered by dip switch 6 (free use) and it changes the speed from 115200 for th HMI to 9600 for the modem. You could completely change the setup: check manual W393 section 7 PLC setup area
    Word 160 in the setup is here D6000 for the standard comms and D6010 for the high speed

    2061 downloads

    Updated

  16. StepNext.cpt

    Provides a starting template for construction for an Omron STEP-STEP NEXT sequence. Similar to AB sequencer. Format is CPT 1.14 (.cpt)

    1387 downloads

    Updated

  17. SMS - GSM PLC Communications

    Files for Setup of a FALCOM A2D GSM modem to an Omron CJ1M-cpu22 to send SMS text messages. Included files are CX-Prgrammer File and Word Doc explaining the Setup.

    6219 downloads

    Updated

  18. SCL2 + APR

    here a an example taken from Omron manual where a temperature range from -200 to +1300 is linearly shifted to a #0000  #1FFF range. It can be useful when a -/+ temperature signal is sent to PIDAT controller.

    19 downloads

    Submitted

  19. Scaling in CJ1 CS1 PLC's

    The use of the old scaling functions SCL really suck when it comes to the new CJ1/CS1 PLC's mainly because it still relies on BCD etc....Today is so easy to use INT UINT values in the program i hardly ever use BCD any more.....
    Therefore I n

    3745 downloads

    Updated

  20. Recipe Sample Code - Ladder program with supporting NB project

    This is a quick bit of code to show how a recipe function might be written if one were to do it in the PLC rather than the HMI. This is the basic building blocks with which a program could begin to be written. The BSET instruction combined with the indirect addressing method demonstrated would allow for a delete function. Copy and other functionality could be added using similar concepts.

    1453 downloads

    Submitted

  21. Random Number Generator

    Generates a Pseudo random number using the mixed congrential method.
    Formula r(i+1) = (a r + b) MOD N
    This will generate a random number between 0 & N-1 with N = 2 (pwr 20) = 1048576 a = 1909 b = 221571
    The MOD operation is the integer

    3674 downloads

    Updated

  22. Quadrature Input for Standard CPM1A DC Inputs

    Allows quadrature input from encoders and drives into standard DC inputs on CPM1A or other Omron PLCs. Max Frequency is about 100hz. Format is CXP 2.0 (.cxp).

    2267 downloads

    Updated

  23. Process states sequence logics

    One of my recent project using OMRON CPM2A; with peocess states sequence logics programming concept. It is a systematic way of writing an "easy to maintenance" logics.

    3058 downloads

    Updated

  24. Polls and Writes setpoints to E5CK Process Controller - E5CK.swp

    Allows CPM2A to poll and write setpoints to E5CK Process Controller. Be sure to load the enclosed Data Memory File (E5CK.ddm)

    1425 downloads

    Updated

  25. PLC Clock adjustment with screen

    This program will display the clock time and date on a screen and allow an operator to easily adjust the time/date values though the familar use of thumb wheel switches.
    The screen used was an Omron NT21 and the PLC is the Omron CJ1M.
    The zip f

    2857 downloads

    Updated