Follow \”PLC enthusiast\” , increase your knowledge together!
Reply: Mitsubishi complete set, get Mitsubishi series electronics Information pack!
[Automatic door control requirements]
The control of this case is relatively simple compared to the control of our modern entrance doors. A relatively complete system needs to combine visual control, take pictures of the camera to identify the number, and send it to the plc through communication, and the plc will then time it. Identify when you go out, judge the duration, and determine the cost. When the charging is completed through the charging system, the charging system will send a signal to the PLC through communication to trigger release. Such projects are generally completed by multiple different engineers, including visual recognition, charging system, and PLC. But the core point is communication. Only by learning communication well can you do such a project.
Let’s take a look at the simple control requirements of our case:
1. Introduction to car encounters When the sensor is activated, the rolling shutter automatically rises to the upper limit;
2. When the car leaves the entry sensor, the volume The gate automatically drops to the lower limit;
3. When the door is automatically opened and closed, press the stop button and the door will stop. Press it again and the door will continue to start; p>
4. When the door does not move, you can control the corresponding button for forward and reverse control;
5. When the protection sensor senses an object, the door is not allowed to descend;
6. The control process of exiting and entering is the same.
![]() |
Table 1-10-1 Schematic diagram of automatic door
【I/O allocation】
In addition to the input and output points, since the program is divided into entry and exit, two flag bits are needed, one is the M point for entry and the other is the M point for exit; to implement the stop function, a stop flag is required; in addition , whether entering or exiting, you need to open and close the door. The door opening flag and the closing flag are needed here, because in addition to automatic control, manual control is also required later (if you don’t understand the so many flags written here, you can continue to ask and understand from the way the program is written)
The allocation table is as follows:
Table 1-10-1 I/O allocation
Input point | Comments | Output point | Comments |
X0 span> | Entry sensor | Y0 | Motor forward |
X1 | Exit sensor | Y1 | Motor reverse |
X2 | Upper limit | Intermediate relay | Comments |
X3 | Lower limit | M0 | Entry sign |
X4 | Protect sensor | M1 | Exit sign |
X5 | Forward button | M2 | Stop flag |
X6 | Invert button | M3 | Opening sign |
X7 | Stop button td> | M4 | Closing flag |
[Programming and ideas]
1. Start of action
Only when there is no action when entering or exiting, the corresponding flag can be activated by triggering the corresponding sensor.
![]() |
Figure 1-10-1 Action launcher
2. Automatic control process
1) When M0 or M1 is triggered (when entering or exiting starts), the M3 door opening flag is set, and the subsequent program will use this M point to control the motor action;
2) Leave the exit sensor when entering the door (M0+X1 falling edge) or leave the entry sensor when exiting (M1+X0 falling edge). In these two cases, the door closing action can be entered.
3) When the door is closed, all M points will be reset when X3 is encountered, and the action will end
![]() |
Figure 1-10-2 Action startup program
3. Pause function
When the stop button is pressed once, M2 is turned on, and when the button is pressed a second time, M2 is turned off. It is easy to implement using the ALT alternate output command, and the specific control is reflected in the next step of the program. span>
![]() |
Figure 1-10-3 Triggering of stop flag
4. Forward rotation control
When there is a signal from When the stop button is pressed; the condition for automatic control is when the door opening sign M3 is on and the stop button is not pressed (M3 normally open + M2 normally closed)
td> | ![]() |
Figure 1- 10-4 Forward rotation control
5. Inversion control
The control principle is similar to forward rotation, except that a protection sensor X4 is added
![]() |
(Source: Jicheng Training Network—PLC Enthusiast, Author: Chen Yuxin, no reproduction without authorization)
Reply:Mitsubishi complete set, get Mitsubishi series electronic information package!
本站内容及图片来自网络,版权归原作者所有,内容仅供读者参考,不承担相关法律责任,如有侵犯请联系我们:609448834