92 files
-
CX-Programmer Ver.5 Introduction to Function Blocks Guide R121-E1-01
By Jay Anthony
CX-Programmer Ver.5 Introduction to Function Blocks Guide R121-E1-01. Quick start for using Function Blocks with CS/CJ Ver 3 CPUs.
20651 downloads
Updated
-
Modbus RTU Sample Code CJ1/SCB
By BobB
This is sample code for receiving and manipulating data from Si-TEC CGC generator controller
4989 downloads
Updated
-
FB Calculate Day Of Week
Will calculate the day of the week given and date of Year Month and Day
2067 downloads
Updated
-
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
-
CS1 C Mode Hostlink
By Jay Anthony
Provides Read and Write commands for Omron Hostlink Protocol
2406 downloads
Updated
-
Example Scale Meter Protocol
This protocol will talk to multiple Ranger Weigh Scales to display their respective display weights.
2918 downloads
Updated
-
Omron Modbus Slave Ladder
By BobB
Omron Modbus RTU slave ladder programs for C200HS Alpha CPM2 CQM1 CQM1H CS1 and CJ1 fot use with onboard serial port.
9095 downloads
Updated
-
FB Scale with parameters
This function block will scale a value and output the rsult as an interger value and floating point (real) number. The result can be clamped or not clamped to the Min and Max range. Output bit indicating Over and Under range is also included.
3914 downloads
Updated
-
Modbus TCP Client using FB's
By Nibroc
Example Implementation of Modbus TCP Client using Standard Omron Function Blocks.
3793 downloads
Updated
-
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
-
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
-
Example of Using Daylight Saving FB's
Example of using the Daylight Saving Time FB that i have previouly up loaded.....You need to have uploaded all of the associated FB's for this to work...
There is a pdf with the source code of the FB's in there as well. /thumbsupsmileyanim.gif style=vertical-align:middle emoid= border=0 alt=thumbsupsmileyanim.gif />
2918 downloads
Updated
-
Process states sequence logics
By aboon78
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
-
logging+ filewrite
By beegee
example of logging on a machien and writing it to file on a regular basis
3005 downloads
Updated
-
STUP Example
By beegee
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
-
Omron CS1 Sequencer
By neilr216
OMRON CS1
This is an example of a sequencer using a reversible shift register instruction
Easy to troubleshoot because you can see what step it is on when the sequence stops for whatever reason.
Easy to add steps and not too bad to insert steps.
This program example shows the ease with which you can move to a specific step in the sequence after an alarm or stoppage.
2666 downloads
Updated
-
Calendar Calculation
By aboon78
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