

The instructions have a control word that is used to mask elements that you do not want to compare. These instructions are used as input conditions on the ladder logic rung and are similar to the input comparison instructions discussed above. Time comparison instructions will compare two BCD time values and create an ON execution condition when the comparison condition is true. Time Comparison Instructions (341 to 346) – Real-Time Clock – Omron CP1H When memory area D0 is equal to #1234 or D1 is less than #10 and D2 is greater than #1000 then turn on output 100.00. Internal flags are also set when the instruction executes. Optional information can also be used to indicate data format and data length. These instructions are used as input conditions on the ladder logic rung.ĭepending on the location within the rung, these instructions can be used as a ‘LD’, ‘AND’ or ‘OR’ condition. Input comparison instructions will compare two values and create an ON execution condition when the comparison condition is true.

Input Comparison Instructions (300 to 328) – Omron CP1H We will now quickly go over the data comparison instructions in the Omron CP1H.
FUNCION CONVERSION CX PROGRAMMER MANUAL
Please refer to the programming manual or help file in CX-Programmer for different variations of the instructions that you want to use. !CMP(020) when used will do an immediate refreshing of the information before the data compare takes place on every scan. This will trigger the instruction to happen only once. MCMP(019) when used will be scanned and executed every cycle of the PLC that the input condition is when used will be executed when the input condition turns from off to on. Several of the instructions can have different variations. Links are provided at the end of this post.
FUNCION CONVERSION CX PROGRAMMER FULL
A full explanation can be obtained by using the help menu in the CX-Programmer software or the Programming Manual for the CP1H. We will be covering several different data comparison instructions. Setting, Forcing and Online Editing – Video Previously in this CP1H series, we have discussed: You must look at the individual instructions to determine if this is the case or not. Sometimes the instruction used for data comparison in the Omron CP1H will determine the kind of data that we are comparing. We will be looking at several different ways in which we can do this with some programming examples. The Omron CP1H series of programmable logic controllers provide several different ways to compare the information. This is the ability to compare information from one area of the controller to another and act on results. Just about every program usually has some data comparison instruction. We will now look at the compare instructions available on the Omron CP1H controller.
