Omron CPM1A series PLC function instructions

Publisher:SereneSunsetLatest update time:2022-04-02 Source: elecfansKeywords:Omron Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Functional instructions are also called special instructions. The functional instructions provided by the CPM1A series PLC are mainly used to realize program control, data processing and arithmetic operations. This type of instruction generally does not have a corresponding instruction key on the simple programmer, but only specifies a function code for each instruction, represented by two digits. When entering this type of instruction, first press the "FUN" key, and then press the corresponding code. The following will introduce some commonly used functional instructions.


1. No operation instruction NOP (0 0)

This instruction does not perform any logical operation, so it is called a no-operation, nor does it use relays or operands. This instruction is used to leave an address in the program so that instructions can be inserted when debugging the program, and can also be used to fine-tune the scan time.


2. End command END (01)

This instruction is used alone, without operands, and is the last instruction of the program, indicating that the program ends here. When the PLC executes the user program, when it executes the END instruction, it stops executing the program and enters the output refresh stage. If the END instruction is omitted in the program, the programmer will display an error signal when executing: "NO END INSET": Only when the END instruction is added can the PLC run normally. This instruction can also be used to debug the program in sections.


3. Interlock instruction IL (02) and interlock clear instruction ILC (0 3)

These two instructions do not carry operands. The IL instruction is an interlocking condition, forming a branch circuit, i.e. a new bus for use with the LD instruction, indicating the beginning of the interlocking program segment; the ILC instruction indicates the end of the interlocking program segment.

The interlock instruction IL and the interlock clear instruction ILC are used to form a new bus at the branch of the ladder diagram, so that a part of the ladder diagram is controlled by certain conditions. The IL and ILC instructions should be used in pairs, otherwise an error will occur. The function of the IL/ILC instruction is: if the condition for controlling IL is met (i.e. ON), the interlock instruction is executed. If the condition for controlling IL is not met (i.e. OFF), the interlock program segment between IL and ILC is not executed, that is, all relays between IL/ILC are OFF, at which time all timers will be reset, but all counters, shift registers and holding relays will maintain the current values.


4. Jump start instruction JMP (0 4) and jump end instruction JME (0 5)

These two instructions do not have operands. The JMP instruction indicates the beginning of program transfer, and the JME instruction indicates the end of program transfer.

The JMP/JME instruction group is used to control program branching. When the JMP condition is OFF, the program will execute the first instruction after JME; when the JMP condition is ON, the entire ladder diagram will be executed in sequence, as if the JMP/JME instruction does not exist.

When using JMP/JME instructions, please note that if the JMP condition is OFF, the relay status between JMP/JME is: the output relay maintains the current status; the timer/counter and shift register all maintain the current value. In addition, the JMP/JME instructions should be used in pairs, otherwise the PLC display will be wrong.


5. Bit-by-bit shift instruction SFT (10)

Also known as the shift register instruction, this instruction has two operands, in channels, the first operand is the first channel number D1, the second operand is the last channel number D2. The relays used are: 000CH~019CH, 200CH~252CH, HR00~HR19. Its function is equivalent to a serial input shift register.

The shift register has a data input terminal (IN), a shift clock terminal (CP) and a reset terminal (R). It must be programmed in the order of input (IN), clock (CP), reset (R) and SFT instructions. When the shift clock turns from OFF to ON, the contents of the (D1~D2) channels are shifted one bit in order from low to high. The highest bit overflows and is lost, and the lowest bit is filled with input data. When the reset terminal input is ON, all channel data involved in the shift are reset, that is, all are OFF.

If more than 16 bits of data need to be shifted, several channel stages can be chained together.

When using the shift instruction, please note that the starting channel and the ending channel must be in the same relay and the starting channel number ≤ the ending channel number.


6. Latch instruction KEEP (11)

The operands used in this instruction are: 01000~01915, 20000~25515, HR0000~HR1915. Its function is equivalent to a latch. When the set terminal (S terminal) condition is ON, the KEEP relay remains in the ON state. Even if the S terminal condition changes to OFF, the KEEP relay still remains ON until the reset terminal (R terminal) condition is ON, then it changes to OFF. The KEEP instruction is mainly used to hold the coil, that is, the self-locking circuit of the relay can be realized by the KEEP instruction. If the SET terminal and the RES terminal are ON at the same time, the KEEP relay will turn OFF first. The latch relay instruction must be written in the order of the set line (S terminal), the reset line (R terminal) and the KEEP relay.


7. Leading edge differential pulse instruction DIFU (13) and trailing edge differential pulse instruction DIFD (14)

This instruction uses the following operands: 01000~01915, 20000~25515, HR0000~HR1915. The function of DIFU is to release the specified relay after one scan cycle is connected at the leading (rising) edge of the input pulse, while the function of DIFD is to release the specified relay after one scan cycle is connected at the trailing (falling) edge of the input pulse.


Keywords:Omron Reference address:Omron CPM1A series PLC function instructions

Previous article:Convert PLC ladder diagram into STL program
Next article:Usage of USS protocol library instructions

Recommended ReadingLatest update time:2024-11-16 13:07

Fault Analysis and Treatment of PROFIBUS-DP Slave Station Dropping in PLC Control System
I believe that everyone often encounters the situation in daily work where the DP slave station drops and the system cannot operate normally. The editor has been dealing with the problem of DP slave station dropping in several systems in succession in the past few days, which is very troublesome. The following is a
[Embedded]
Fault Analysis and Treatment of PROFIBUS-DP Slave Station Dropping in PLC Control System
PLC pulse frequency conversion
The PLC pulse frequency function reads the pulse frequency input by the high-speed counter and converts it to the rotation speed, or converts the current value of the counter to the accumulated revolutions. It outputs the converted value in 8 hexadecimal bits and can only be used in high-speed counter 0. When perfor
[Embedded]
Key Points of Siemens S7-200PLC Free Port Communication
To apply free port communication, you must first define the communication port as free port mode, and set the corresponding communication baud rate and the above communication format. The user program controls the working mode of the communication port through special memory SMB30 (for port 0) and SMB130 (for port 1
[Embedded]
Designing a Smaller PLC
Somewhat like a traffic cop directing the flow of cars from the middle of an intersection, programmable logic controllers (PLCs) play a similar role in automated factories. PLCs make decisions for machines based on analog and digital inputs and outputs. They sense and control everything from simple lighting function
[Embedded]
Designing a Smaller PLC
The structure of PLC and the functions of its parts
Programmable controllers have various structures, but their general principles are basically the same, all of which are based on a microprocessor. They are usually composed of a central processing unit (CPU), memory (RAM, ROM), input and output units (I/O), power supply, and programmer. 1. Central Process
[Embedded]
Practical Skills of PLC Programming
A complete PLC program is not as simple as just making the system run. It also requires complete annotations, sophisticated architecture, good scalability, a complete alarm protection system and system simulation before operation. 1. Design requirements for PLC programming A complete PLC program is not as
[Embedded]
Practical Skills of PLC Programming
How to save Siemens S7-200PLC program data after power failure
There are three main methods for saving Siemens S7-200plc program data during power failure. The data power failure saving methods and characteristics are as follows: 1. Set the power-off data retention function in the system block to save data. In the programming of S7-200, there is a function
[Embedded]
Four PLC program examples explained!
PLC is widely used in industrial control and power distribution systems, from simple motor control to complex process control DCS system and power monitoring SCADA. Today, I have collected four PLC program examples for you to explain! Each one is very classic! Easy to understand! Learn how to run a company sideways!
[Embedded]
Four PLC program examples explained!
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号