What is PLC? Introducing the machine control mechanism at the manufacturing site and the required language (program)



"PLC" is an indispensable control device for machines and equipment operating at manufacturing sites. PLCs are used to automate connected external devices and are used in a variety of situations, from vending machines to production lines in automobile factories. PLCs that can control machines and equipment efficiently and reliably contribute to improving production efficiency and reducing costs. In this article, we will introduce the details of the hardware/software that composes the PLC, from the mechanism that the PLC controls the machines and equipment.

table of contents

What is PLC?

About PLC type
Where is the PLC used?
What language (program) is required for PLC?

What is PLC?

businessman's hand draws gear to success concept-1 PLC is an abbreviation for Programmable Logic Controller, which is a device for controlling sequences of manufacturing equipment by a dedicated computer. PLC is used in various factory equipment from semiconductor manufacturing to metal processing machines, including FA (factory automation) systems in manufacturing lines such as automobiles and electrical equipment, and is also used to control familiar mechanical equipment such as elevators. .. PLC, which has evolved from a control circuit that uses electromagnetic relays, has made it possible to change and improve sequence control programmatically. The PLC gives us a high degree of control over the operation of manufacturing equipment, which makes it possible to carry out everything from planning to execution and control in supply chain management ( SCM ). To understand the mechanism of PLC and mechanical equipment, it is important to correctly understand sequence control and relay sequence control. Here, we will introduce sequence control and relay sequence control in detail. Supply Chain Management (About SCM) is explained in the following article. Related article: What is SCM (Supply Chain Management)? Introducing the background and system components that are becoming more necessary

What is sequence control?

Sequence control is one of the automatic control methods using electric signals. Sequences have meanings such as "order" and "array", and sequence control operates machines in a fixed order. For example, a washing machine operates in the order of water supply, washing, rinsing, and dehydration. A series of operations of this washing machine is sequence control, which is defined in the JIS standard as "control that sequentially advances each stage of control according to a predetermined order or procedure".

What is relay sequence control?

Relay sequence control is a sequence control that uses an electromagnetic relay as a switch. Also called "contact sequence", the switch uses the contact that opens and closes the coil of the electromagnetic relay to control the sequence. Relay sequence control has the characteristics of being resistant to large load capacity and electrical noise, and is applied to the control of motors. By using an electromagnetic relay that controls an electric signal by the movement of mechanical contacts, it is possible to remotely control a high-risk current by converting a low-risk low current into a signal. However, there are also disadvantages such as higher power consumption compared to other methods, slow operation because it opens and closes to mechanical contacts, and wear of contacts.

Advantages of PLC

Prior to the widespread use of PLCs, sequence control circuits were constructed using a huge number of electromagnetic relays, which caused problems such as complexity and space pressure. If you wanted to change the operation controlled by using an electromagnetic relay, you had to change or improve the wiring that connects the electromagnetic relays. PLCs have the advantages of eliminating the need for wiring between the machines to be controlled and enabling space-saving control of complex equipment. Since the PLC has the same basic structure as a general-purpose computer, the sequence control can be easily changed by rewriting the program. By using PLC, it is not necessary to stop for a long time when changing the operation of the controlled machine, and the efficiency of the product manufacturing process can be realized. Furthermore, since PLC is controlled by software instead of hardware control using electromagnetic relays, mass production of control devices is easy. In addition, PLC has high durability because it is controlled by a program instead of mechanical contacts that are consumed like electromagnetic relays.

About PLC type

Young technician working on broken computer in his office The internal structure of PLC is divided into functions and roles, and mainly consists of the following functions. Input module: Input information from switches and sensors Calculation unit: Calculates the input signal Memory part: Stores programs and data Output module: Outputs a signal to the device Power supply module: Supply necessary power to each part Depending on the structure, PLC can be roughly divided into "small block type" that packages the above functions and "building block type" that has an independent configuration for each function. From here, we will introduce the mechanism and advantages / disadvantages of each PLC.

Small block type

The small block type (package type, compact type) is a PLC that integrates each function. structure It has a structure in which the input module, arithmetic unit, memory unit, output module, and power supply module of the basic functions are integrated. Since the small block type has an integrated input / output unit, it can be used by connecting a power supply. Control operations can be executed by connecting a computer programming support tool to the PLC, writing a program, and connecting each device to the input / output terminals.

merit and demerit

The advantage of the small block type is that it is generally cheaper than the building block type described later. Since it is possible to reduce the trouble of selecting and purchasing each unit one by one, the small block type PLC can reduce the installation cost. And if you don't need an analog signal or if you have about 10 inputs and outputs, you don't have to consider the specifications, and it's easy to incorporate into your design, which is a big advantage. On the other hand, the building block type is superior in terms of scalability and performance. Therefore, the small block type is not suitable for large-scale control.

Building block type

The building block type is a PLC in which each unit that composes the PLC is independent, and the units are used in combination according to the specifications. structure Unlike the small block type that packages the basic functions, the building block can add individual units of the required functions to customize the functions required for the production process. In addition to basic units such as input / output units, power supply units, and arithmetic units, there are also special units such as Ethernet communication and servo motor control. The building block formula is often used for complex and large-scale control and is used in various manufacturing sites.

merit and demerit

The advantage of the building block type is its high expandability and applicability. For example, even if there is a shortage of input / output terminals, you can add new input / output units to add input terminals. Furthermore, it can be expanded to a large-scale control system by additionally connecting an expansion base. On the other hand, the disadvantages are that it is more expensive than the small block type and that knowledge is required to select each unit. However, since it has higher functionality and accuracy than the small block type, the building block type is more suitable for situations where complicated control and applicability are required.

Where is the PLC used?

Developed as an alternative to electromagnetic relays, PLCs are used to control a variety of automated machines. It's mainly stored inside the control panel and the machine, so you won't have a chance to see it. However, PLCs support the control of machines in all fields and are used not only in factory equipment but also in household appliances. From home appliances such as air conditioners and dishwashers to equipment such as escalator and automatic doors, to FA systems and power plants at manufacturing sites, PLCs are used in a variety of situations where machines need to be controlled efficiently. .. In particular, PLC has dramatically improved the FA system production line and automatic control technology for various machine tools. The method of controlling the machine is not limited to PLC, but there is also a method of using a microcomputer board (embedded board), but many manufacturing sites use PLC-based control methods. The reason is that PLC is a device specialized in controlling machines efficiently. Performance such as durability, robustness, processing power, reliability, and responsiveness, as well as ease of programming and maintenance, are important for all manufacturing site controls. PLCs perform excellently as equipment used in the manufacturing floor, and have extremely high performance in terms of reliability, robustness, and ease of maintenance. Although the microcomputer board is inexpensive and can be controlled with reliability and space saving, PLC is superior in terms of maintenance. In addition, the microcomputer board basically does not allow the user to change the control circuit, etc., but the PLC allows the user to easily change the control circuit by programming. Since PLC has the performance to support complicated and flexible control even by itself, it is widely used as a control device that can be variously customized according to customer's request.

What language (program) is required for PLC?

Computer keyboard with glowing codes, programming concept-1 As mentioned above, PLC is characterized by being able to customize the operation of the machine by changing the program. The general method is to create a program using programming support software provided by the PLC manufacturer and write it to the PLC using the software. There was a time when each manufacturer's own language was used as the programming language for PLC, and even if the basic method was the same, the specifications differed for each manufacturer, so the problem was that the programming language could not be diverted. Currently, PLCs of each manufacturer are increasingly adopting five programming languages ​​defined in "IEC61131-3" issued by the IEC (International Electrotechnical Commission). The following is an overview of the five programming languages ​​defined in "IEC 61131-3".

LD (ladder diagram)

The LD language is a programming language that describes logic circuits, and is the most used language among domestic manufacturers. Unlike other programming languages, it is based on a virtual representation of relay sequence control. Therefore, it is excellent in that it is easy for engineers who have knowledge of relay sequence schematics to understand and learn.
However, although easy to understand, it does require some knowledge and experience. Manufacturers such as Mitsubishi, Hitachi, Keyence, and Omron offer LD language programming tools for their products because the manufacturers and equipment are not fully compatible. In addition, even if the product is made by the same manufacturer, the description may differ depending on the model number, and when porting the program, the ability to decipher the existing program is required.

FBD (Function Block Diagram)

The FBD language is a highly readable graphic language that creates sequential logic by combining function blocks and writes programs as if it were an electronic circuit design. The input parameters are placed on the left side of the function block and the calculation results are placed on the right side, which makes it easier to understand the data flow, so it is increasingly used in PLCs. The feature of the FBD language is that it is easy to reuse the created function blocks, and once created function blocks do not need to be programmed again. Being able to carry out efficient programming work is one of the attractions of FBD.

ST (Structured Text)

The ST language is a high-level language that creates programs in text format. It is one of the languages ​​suitable for numerical calculation, and it is described using general mathematical formulas such as logical formulas when compared with the LD language. In addition to writing the entire program in ST language only in ST language, it is also possible to write in ST language for numerical calculation while using LD language for control. In addition, the ST language, whose description method is standardized, has the characteristic that it is easy to divert programs between different manufacturers.

SFC (Sequential Function Chart)

The SFC language is a graphic language that can easily describe step control for executing sequence control. It is suitable for creating programs with state transitions such as production lines, but if there are no state transitions, other languages ​​are superior, so the main processing is created in the SFC language and the calculation processing is LD. It is said that the method of creating in the language or ST language is desirable. By the way, since the SFC language itself does not perform data input / output or operations, it is accurately defined as an element rather than a language.

IL (Instruction List)

IL is a method of writing instructions in list format, which is equivalent to the assembler language of a microcomputer. It is an excellent method for reducing the size of programs and improving processing speed, but it is said that the productivity and maintainability of programs are inferior to those of other languages. In addition, the number of cases where IL is used seems to be decreasing due to the improvement of hardware performance.

Post a Comment

Previous Post Next Post