The interrupt function of Omron CP1 series PLC and the establishment of interrupt program

Create Date: 2024-8-30 12:03:23|Source: Omron/Omron

Since the main program of the PLC is the working mode of cyclic scanning, some more urgent special tasks (interrupt subroutines) that occur randomly must be executed immediately without being affected by the scanning cycle, and the CPU temporarily aborts the main program and executes interrupt subroutines, which is the interrupt function.

1. Omron CP1 series PLC interrupt classification:

1. I/O direct interrupt, which is the change of interrupt input from the built-in input unit on the CPU rack (0→1; 1→0).

2. Counting interrupt, the built-in input pulse of the CPU unit of the PLC is counted, and the interrupt is executed when the count reaches the set value.

3. Timing interrupt, the built-in timer of the CPU unit of the PLC is interrupted at a certain time interval.

4. High-speed counting interrupt, the built-in high-speed counter of the CPU unit of the PLC counts the input pulses, and the count reaches the set value, or the interrupt is executed by regional comparison.

5. When the CP1 series PLC is connected with CJ or other series of high-function I/O units or CPU high-function units, if the interrupt generated by these units is received, the CPU unit of the CP1 series PLC will immediately respond to the interrupt and execute the interrupt subroutine.

The order of priority of the five types of interrupts from highest to lowest is as follows: external interrupts> direct I/O interrupts> count interrupts> high-speed count interrupts> timed interrupts.

Within the same interrupt level, interrupt tasks with a small number take precedence over interrupt tasks with a large number.

2. Establishment of Interruption Procedures.

1. Open the Omron PLC programming software, right-click the mouse on the "New PLC1 [***] Offline" or "Program" item bar in the project tree, select "Insert Program" → "Ladder Diagram", and create a new program, as shown in the figure below.
The interrupt function of Omron CP1 series PLC and the establishment of interrupt program
  2. In the program properties dialog box, set the name and select the task type of the program, as shown in the following figure. You can also right-click the program name in the project tree and select "Properties" to bring up the "Program Properties" dialog box to set it.
The interrupt function of Omron CP1 series PLC and the establishment of interrupt program
  3. Write the program in the established interrupt program, and the programming method is the same as the main program.

More on that
Introduction to the functions of Omron's dual-channel intelligent fiber amplifier E3X-MZV Introduction to the functions of Omron's dual-channel intelligent fiber amplifier E3X-MZV

Dual-channel intelligent fiber amplifier E3X-MZV   Optical fiber sensors are widely used to detect the presence and absence of vibration plates, rechargeable battery pole piece winders, digital product assembly and other equipment. Omron's new fiber optic amplifier selects the functions and performance required for detection and performance.

The technical cooperation exchange between Omron and Sanhua was held in Hangzhou The technical cooperation exchange between Omron and Sanhua was held in Hangzhou

Recently, Omron Automation (China) Co., Ltd. (hereinafter referred to as "Omron") and Sanhua Holding Group Co., Ltd. (hereinafter referred to as "Sanhua") held a technical cooperation exchange meeting in Hangzhou. Nearly 100 senior leaders and technical experts from Omron, Sanhua and its subsidiaries attended the meeting.   ...

What are some common troubleshooting methods for Omron? What are some common troubleshooting methods for Omron?

(1) Failure of peripheral circuit components This kind of failure is more common in PLC maintenance, and it is generally a frequent occurrence in failures after a certain period of work. In the PLC control loop, if there is a component damage fault, the PLC control system will immediately and automatically stop working. The input circuit is P...

Omron alarm code analysis Omron alarm code analysis

Warning display Over Torque Detection (OL2) FUNCTION code error (CE01) Registers NO. Error (CE02) Data Error (CE03) Slave Execution Error (CE04) Slave Execution (CE06) Communication Timeout (CE10) Display...

What are the advantages of Omron relays? What are the advantages of Omron relays?

1. The relay is small and still weldable. The relays in SSOP/USOP packages feature directly exposed terminals for excellent visibility and easy installation. 2. Ultra-small and lightweight: In addition to SSOP and USOP, ultra-small packages contribute to the miniaturization of devices. ...

What are the characteristics of Omron 3G3JZ series inverter? What are the characteristics of Omron 3G3JZ series inverter?

1. Standard configuration with RS485 interface, Modbus bus communication function; 2. At 3Hz, it can provide more than 150% torque output and start quickly; 3. The carrier frequency of 2-15KHz is adjustable, which can realize silent drive; 4. Equipped with simple energy-saving function; 5. Controlled ...

How to use Omron switches How to use Omron switches

1. When the Omron switch power socket is embrittle or damaged, it must be repaired and replaced immediately. 2. When going out, falling asleep, or suddenly losing power, be sure to cut off the power immediately. Household appliances, in particular, must be more careful. 3. Omron switches and power sockets should be set as much as possible.

Omron PLC--C200HE/C200HG/C200HX series product model Omron PLC--C200HE/C200HG/C200HX series product model

1. C200HE-CPU11-E CPU unit memory 3.2K maximum I/O points: 640 points 2. C200HE-CPU32-E CPU unit memory 7.2K maximum I/O points: 880 points 3. C200HE-CPU42-E CPU unit RAM 7.2K Max I/O points: 880 points with RS232C ...

Omron United Traditional Pharmacy is continuing to increase the number of MMC health convenience stores Omron United Traditional Pharmacy is continuing to increase the number of MMC health convenience stores

Omron Health Care and Traditional Pharmacy are continuing to build MMC health convenience stores to provide consumers with "one-stop health management and convenient consulting services at their doorstep", which has now been successfully extended to more scenarios such as enterprises, parks and communities.   Recently, with the epidemic prevention and control measures...

Omron PLC's maintenance procedures and equipment cleaning regulations Omron PLC's maintenance procedures and equipment cleaning regulations

1. Maintenance procedures, regular testing and adjustment of equipment (1) Check the connection of the terminal blocks in the PLC cabinet every six months or quarters, and reconnect the loose places in time if they are found; (2) Re-measure the working voltage of the power supply to the main engine in the cabinet every month ...

Selection rules for Omron relays Selection rules for Omron relays

1. Coil voltage: also known as input voltage, used to control the contact on/off, with AC24V, DC24V, AC220V and other specifications 2. Contact capacity: the voltage and current of the load 3. Contact structure: 2C (double-pole double-throw), 4C (four-pole double-throw), 1A, 1B, etc 4. Load type ...

Omron PLC pre-maintenance preparation, maintenance procedures Omron PLC pre-maintenance preparation, maintenance procedures

(1) Prepare tools before overhaul; (2) In order to ensure that the function of the component does not fail and the template is not damaged, it is necessary to use protective devices and carefully make anti-static preparations; (3) Contact the dispatcher and operator before the overhaul, and hang the maintenance card at the place where the maintenance card is hung. ...

The reason why the ER light is always on after the Omron PLC is powered on The reason why the ER light is always on after the Omron PLC is powered on

1. Fault phenomenon: The ERR light is always on when the PLC is powered on, and the PLC is not working. 2. Cause of failure: (1) Poor use environment leads to oxidation and corrosion of internal MPU, memory, and even substrates. (2) Due to electromagnetic interference, noise interference, static electricity, etc., the internal MPU ...

Omron's new [Programmable Controller CP2E-ECT] was officially released Omron's new [Programmable Controller CP2E-ECT] was officially released

In December 2022, Omron Automation (China) Co., Ltd.'s new product [Programmable Controller CP2E-ECT] was officially released. The product is based on Omron's full research on the equipment needs of OEM customers in China, and is independently developed and produced by Omron China.

What are the selection factors of Omron relays - intermediate relays? What are the selection factors of Omron relays - intermediate relays?

1. Factors of geographical location and climate It mainly refers to factors such as altitude, ambient temperature, humidity, and electromagnetic interference. Considering the universal applicability of the control system, it must be taken into account for many years Due to the particularity of reliable operation for many years, the key parts of the device must be selected with high insulation, strong resistance...

【Omron Industry Case】Application case of robot in cell stack welding 【Omron Industry Case】Application case of robot in cell stack welding

Equipment Overview The stack welding machine is mainly used for the overlap welding of monocrystalline and polycrystalline cells in fully automatic crystalline silicon solar cell modules, and is suitable for series welding of small-size crystalline silicon solar cells.

Omron achieves its goal of increasing its share of the local healthcare market Omron achieves its goal of increasing its share of the local healthcare market

Omron Asia Pacific Ltd. Philippines signed an agreement with Metro Drug Inc., a pharmaceutical sales and distribution company, to expand its distribution network for OMRON Healthcare Philippines' blood pressure monitors, nebulizers, thermometers, body composition monitors, and TENS massagers ...

Maintenance method of Omron PLC Maintenance method of Omron PLC

1. Maintenance procedures, regular testing and adjustment of equipment (1) Check the connection of the terminal blocks in the PLC cabinet every six months or quarters, and reconnect the loose places in time if they are found; (2) Re-measure the working voltage of the power supply to the main engine in the cabinet every month ...

Introduction to the function of Omron PLC DIP switch Introduction to the function of Omron PLC DIP switch

1. Address setting: The DIP switch can set the local address of the PLC for communication with other devices. 2. Communication parameter setting: The DIP switch can set the communication parameters of the PLC, including communication rate, data bit, check bit and stop bit, etc. 3. Input/Output ...

Omron Heater Status Monitor K7TM was officially released Omron Heater Status Monitor K7TM was officially released

In June 2022, Omron Automation (China) Co., Ltd.'s new product [Heater Status Monitor K7TM] was officially released. Without going to the site, through real-time monitoring of heater status, the aging trend of heater equipment that cannot be captured manually is clearly displayed, and predictive maintenance is realized!   In high temperatures ...

CATEGORIES BYPASS
Customer Service Center

Online Consultation:QQ


ContactContact

Contact: Manager Huang

Contact QQ: 3271883383

Contact number: 13522565663


Scan the code to add WeChat (please save the picture first on the mobile phone)

working hoursworking hours

Weekdays: 9:00-17:00

Holidays: Only emergencies are handled

Contact us

Contact us

Contact number QQ consultation
QQ consultation

3271883383

Company address
Back to top