PLC Sample Code

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

92 files

  1. CQM1 Host Link Master

    Program allows 10 word exchange betwen a CQM1 serial port and any other Omron Hostlink port. Uses TXD and RXD instructions. Provision for disconnection and timeout. Format is CXP 2.0 (.cxp).

    3349 downloads

    Updated

  2. CPM2A Interupt High Speed Counting Sample

    This sample program will allow you to use the standard inputs namely inputs 000.03000.04000.05 as single ended inputs high speed counters. Note the maximum speed on these inputs will be 2kHz. These will count independantly of the scan time.
    Why did

    3887 downloads

    Updated

  3. 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

  4. 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

  5. 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

  6. CX-Programmer Ver.3 Introduction Guide R104-E1-01 (ZIP VERSION)

    CX-Programmer Ver.3 Introduction Guide R104-E1-01. Quick start for beginning a project in CX-Programmer. Could also be useful for earlier versions of CX Programmer.
    Same as this download:
    http://forum.mrplc.com/index.php?&act=Download

    5377 downloads

    Updated

  7. Compact Flash Memory Write

    The attached code will enable the Omron CJ1 PLC to write a combined text number file in a csv format to the compact flach memory card.
    To extract the data some minor manipulation is required. The file is stored as an DATA.IOM file in the TEST directo

    2937 downloads

    Updated

  8. DeviceNet Explicit Message Example

    Example Ladder Code for Sending a DevicNet Explicit Message. Example is for a CS1 and coded in CX Programmer.

    2437 downloads

    Updated

  9. 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

  10. CS CJ CP NSJ password set

    This is a Function Block to set a password in a PLC.
    It can be used to automatically set a password, so you don't have to do it from CX Programmer.

    3239 downloads

    Submitted

  11. Counter Multiplex

    A method of program flow control using reversible counter and MLPX function. Returns the bit value of the actual counter value to do sequence control. Similar to GE Counter bits. Format is Syswin 3.4 (.swp)

    3290 downloads

    Updated

  12. Example Scale Meter Protocol

    This protocol will talk to multiple Ranger Weigh Scales to display their respective display weights.

    2918 downloads

    Updated

  13. 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

  14. CX-Programmer Ver.3 Introduction Guide R104-E1-01.pdf

    CX-Programmer Ver.3 Introduction Guide R104-E1-01. Quick start for beginning a project in CX-Programmer. Could also be useful for earlier versions of CX Programmer.

    5503 downloads

    Updated

  15. logging+ filewrite

    example of logging on a machien and writing it to file on a regular basis

    3005 downloads

    Updated

  16. ASCII Generic Protocol Macro.zip

    A collection of generic ASCII based sequences designed to provide TXD-RXD functionality to SCU and SCB modules for CS and CJ PLCs.

    2668 downloads

    Updated

  17. FB Extract Time Date into SecMin Hr Day Mth Yr

    Will extract and output the Time and Date in 6 different output words being Sec Min Hours Day Month Year. The year output is a Y2K format in that the range is 1980 thu 2079.

    2566 downloads

    Updated

  18. 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

  19. FB Day light savings function block

    This funciton block will output a bit when Daylight Savings is active. You input the Start Month and the start Sunday bit (Off = 1st Sunday of Month On = Last Sunday of Month) AND also the End Month and associated Sunday bit.
    This needs Function

    1992 downloads

    Updated

  20. Syswin 3.1 Manual Supplement

    Manual Supplement for Syswin 3.1 Programming Software for Omron PLCs

    2346 downloads

    Updated

  21. FB : Password Set

    There was already a nice FB made available by PMCR, but it had little restriction which I didn't liked. So I made this one. This FunctionBlock enables you to set a password like '1234OOPS' rather instead of being limited by HEX digits (0-9..A-F)
    So it's kinda a alternative to the one PMCR made available.
    I also added another functionality. This Function Block is configurable to work in automatic mode (password will be set on certain PLC hour) and/or manual mode, where you can give a trigger to the Function Block which will set the password (as example, when you're finished with online editing you can trigger the FB)
    I think it will explain itself. If you have questions, you can PM me.
    Have phun!
    ^^

    1263 downloads

    Updated

  22. Calendar Calculation

    FB will output time different in btw system date/time [PLC] and input date/time [external]. Different time range from 0~9959 minutes. 9960~9999 is allocated for error code.

    2104 downloads

    Updated

  23. ASCII Generic Protocol Macro Object Code

    A collection of generic ASCII based sequences designed to provide TXD-RXD functionality to SCU and SCB modules for CS and CJ PLCs.
    This is the object code for the ASCII Generic Protocol Macro and must be loaded with the Protocol Macro Loader Util

    2249 downloads

    Updated

  24. CS1/CJ1 Floating Point to Fixed Point Conversion for HMI

    Nested loop for quick conversion of CS1/CJ1 floating point words to fixed point words (xxxx.xxxx) for display on HMI. Format is CXP 2.0 (.cxp)

    2531 downloads

    Updated

  25. CS1 C Mode Hostlink

    Provides Read and Write commands for Omron Hostlink Protocol

    2406 downloads

    Updated