Share this

Implementation of manual and automatic switching function for equipment in PLC control system

2026-04-06 06:39:00 · · #1
Introduction In current industrial production process control, PLC control systems are widely used. These systems use software programs to achieve interlocking control between controlled equipment, i.e., automatic control. The factory machinery driven by these controlled devices completes the production process to meet technological requirements. Here, equipment operation is divided into two modes: individual manual operation and automatic control operation. Individual manual operation is generally performed locally (at the machine). PLC program control primarily performs automatic control, but it also includes individual manual operation. The function performed is the same as local (at the machine), the difference being that it is implemented through a program and is generally performed by clicking the mouse on a host computer's monitoring screen—that is, in a machine room or control room, not locally (at the machine). The main difference between manual operation (including individual manual operation within the program) and automatic control programs is that automatic control programs run after formal production begins, when all equipment is functioning normally without faults. Manual operation, on the other hand, is used during commissioning (commonly known as "checking points") or when equipment malfunctions during normal operation. For example, consider the level control of a water supply tank. When the water level is high, the water pump starts supplying water; when the water level is low, the pump stops supplying water. If the water level sensor in the tank malfunctions, automatic control cannot function. Therefore, to maintain production, operators need to manually operate the system on-site, starting and stopping the water pump and opening/closing the corresponding valves based on the water level indicator. It should be noted that the equipment discussed in this article refers to PLC-controlled switching devices; analog devices are not discussed here. Manual and Automatic Switching Methods In this article, "equipment" refers to factory machinery and its control equipment. Control equipment includes motors, valves, etc. The manual and automatic operation of equipment mainly refers to the manual and automatic operation of the control equipment. For example, motor control is generally performed through an MCC (Motor Control Center) electrical control system. The remote and local signals of the motor—i.e., the automatic/manual switching signals—as well as start, stop, and fault signals are all provided by the MCC and connected to the PLC hardware system. When the remote-to-local switch on the MCC cabinet is set to local, manual operation is performed locally; when set to remote, automatic control via the PLC program is implemented, or manual operation via mouse clicks is performed on the host computer screen. We can understand the relationship between the PLC control system, the local electrical control system, the control equipment, and the factory machinery as follows: automatic control (including manual operation within the PLC program) is achieved through the PLC control system, which in turn controls control equipment like motors, ultimately driving the factory machinery. The electrical control system, such as the MCC cabinet itself, can be directly operated manually on-site. For motor control, during normal operation, the PLC program performs automatic control first, with the remote-to-local switch in the remote position. If a problem or malfunction occurs that the PLC cannot handle, manual operation of the individual device is required on the host computer screen to maintain production or perform safety interlock operations. Finally, if the problem persists, local (machine-side) operation is required, typically to stop the motor. For valves, there is generally a corresponding electrical control system, similar to an MCC (Multi-Channel Control System). This typically involves a local solenoid valve control cabinet (box) with a remote-to-local switch for switching between manual and automatic operation. Similar to motor control, during normal operation, the PLC initially provides automatic control, with the remote-to-local switch in the remote position. If a problem or malfunction occurs that the PLC cannot handle, manual operation of the individual device is required on the host computer screen to maintain production or perform safety interlocking. Finally, if the problem persists, the remote-to-local switch is switched to the local position for local control. If this still fails, manual valve operation is the only option for safety. Clearly, local manual and remote automatic operation are achieved through the switch on the local control cabinet (box). The manual/automatic switching function in the PLC program can also be implemented in this way; achieving a similar switch operation within the program is entirely feasible. Method 1 for Implementing Manual/Automatic Switching of Equipment: When the remote/local signal is 1, it indicates that the selector switch on the control cabinet (box) is in the remote position, allowing for automatic PLC control; when it is 0, it indicates manual operation. To achieve manual/automatic switching within the program, similar to the remote/local signal, an intermediate variable is set. This intermediate variable serves as a flag for manual operation of individual devices and is assigned a value by the host computer monitoring program. When its value is 1, manual operation of the individual device is performed; when it is 0, the PLC program performs automatic control. Therefore, each device in automatic control operates under these two conditions. We use a ladder diagram to implement the manual/automatic switching function for a motor and a valve, setting the following input/output IO labels and intermediate variables: Output: Motor Start START Motor Stop STOP Valve Open OPEN Valve Close CLOSE Input: Motor MCC Cabinet Remote/Local Signal RL_M Valve Control Cabinet Remote/Local Signal RL_V Variables: Motor Start Condition A Motor Stop Condition B Valve Open Condition C Valve Close Condition D Motor's Host Computer Manual Operation Intermediate Variable UP_MAN_M Motor's Host Computer Manual Operation Start UP_START_M Motor's Host Computer Manual Operation Stop UP_STOP_M Valve's Host Computer Manual Operation Intermediate Variable UP_MAN_V Valve's Host Computer Manual Operation Open UP_OPEN_V Valve's Host Computer Manual Operation Close UP_CLOSE_V The ladder diagram used is from AB's RSLogix 5000 programming software for Logix 5000 series PLCs, as shown in Figure 1: [align=center] Figure 1[/align] Where (L) is the set instruction and (U) is the reset instruction. The reason for using set and reset instructions here is mainly because the start (open) and stop (close) conditions may be pulse-type (e.g., rising edge pulses), requiring a hold state (Note: If the control loop in the MCC uses a "start-hold-stop" method, then pulse output is more suitable, like a self-resetting button. This is not done here to simplify the ladder diagram program. Interested readers may wish to try it). The motor start or stop condition is the interlock condition during automatic control. When the host computer performs manual operation, the automatic control program cannot be executed. Similarly, during local operation, the PLC program control cannot be executed, and the program can reset the motor start and stop control signals as needed. The same applies to valve control. In this way, each device can be operated automatically or manually as needed. Method 2 for Implementing Manual and Automatic Switching of Equipment The above method considers various situations during manual-automatic switching. When designing the program, it is necessary to pay attention to the manual-automatic switching problem at all times, and the program size is increased compared to when there is no manual-automatic switching. If we separate the manual and automatic programs in the program, the program will be clearer and easier to understand. Also, when designing the automatic program, we don't need to constantly worry about switching between manual and automatic modes. Is this feasible? Let's modify the ladder diagram program above as shown in Figure 2. [align=center]Figure 2[/align] Obviously, this is feasible. Since the manual program is executed last, the start, stop, opening, or closing of the motor or valve is determined by the manual program. That is, when the automatic control program is running, if there is a manual operation from the host computer, the host computer's manual operation takes precedence. For example, when the automatic program requires the motor to stop, if the host computer manually starts it, the motor will start. The reason for this is that for assignment operations on the same variables or IO labels, the last executed program is effective. For example, in the following example: IF A THEN Y := 0; END_IF; IF B THEN Y := 1; END_IF; When A and B are both 1, Y = 1. Because the last executed statement is effective, this applies to both PLC ladder diagram programs and other computer programs. For remote-to-local manual operation, when the selector switch is switched to local, the PLC ladder diagram program continues to execute according to the interlocking conditions, but the output will not function, and the equipment status is determined by the local operation. Only when the selector switch is switched back to remote can the PLC program output truly control the equipment's operation. Methods for Implementing Manual and Automatic Switching of Equipment Groups We have mainly introduced the manual/automatic switching problem for individual devices. In industrial production process control, many devices work together to perform a certain function; these devices form an equipment group, which can be considered as a single device. The above method can then be used to implement the manual/automatic switching problem for equipment groups. Although an equipment group can be considered as a single device, it still contains individual devices, and the manual/automatic switching problem for these individual devices also exists. So how do we solve the manual/automatic switching problem between the equipment group and its individual devices? Here, we adopt a method similar to Method 2, placing the individual operation program of the equipment group between the automatic program and the operation program of the individual devices. This allows for both individual operation of the equipment group and operation of the individual devices. In other words, the operation of the individual devices has the highest priority, followed by the individual devices in the equipment group, and finally the automatic control program. Of course, if you don't mind the extra work, you can also use method 1. It should be noted that for the functions of a device group, implementing them using subroutines is ideal when used repeatedly. Finally, we can extrapolate this to consider the entire factory control equipment as a device group, and provide it with manual/automatic switching functionality. Currently, in the construction or renovation projects of PLC automation systems in domestic manufacturing enterprises, users attach great importance to both manual operation and automatic control functions, especially manual operation. The general explanation for this is that "domestic equipment quality is substandard," and equipment frequently malfunctions, requiring manual operation during automatic control, or vice versa. However, for a complete control program, implementing manual and automatic control functions and their switching is not only feasible but also necessary. If there are shortcomings, it's that adding manual operation increases the memory usage of the control program, lengthens the scan cycle, and increases the number of issues to consider. But this may not necessarily be a problem, given that modern PLCs have very fast execution speeds and significantly increased memory capacity.
Read next

CATDOLL 88CM Maruko (soft Silicone Head with TPE Body)

Height: 88cm Weight: 11.5kg Shoulder Width: 25cm Bust/Waist/Hip: 49/45/51cm Oral Depth: 3-5cm Vaginal Depth: 3-13cm Anal...

Articles 2026-02-22