Seven Steps to Debugging a Novice PLC Project

Nov 28, 2024 Leave a message

Many electrical novice in the electrical control cabinet and PLC program after the design process, not clear how debugging should start? Or some people because of inappropriate debugging methods lead to PLC burned and so on, then the design of the finished electrical system should be how to debug? Can be in accordance with the following seven steps.

 

I. Checking circuits according to drawings (in an unpowered state)

 

General PLC system drawings contain cabinet drawings and cabinet drawings of two parts; cabinet drawings refer to the wiring diagrams inside the cabinet; cabinet drawings are all wiring diagrams connected out of the electrical cabinet. This part needs to be checked:

 

1, whether the drawing design is reasonable, including the capacity of various components and so on.

2, according to the drawings to check whether the components are connected in strict accordance with the drawings.

 

In this process, the most important place to pay attention to is to check the power supply

 

1, to ensure that the circuit is not short-circuited.

2, to ensure that the strong and weak power is not mixed together


Because the PLC power supply is 24v, once because of wiring errors lead to 220V into the PLC, it is easy to PLC or expansion module burned.

 

II. check the PLC external circuit, also known as the "hit point"

 

Power supply confirmation is completed after the power supply, test input and output points, which is commonly known as "hit the point", test IO points need to be tested one by one, including the operation of the button, the emergency stop button, the operation of the light and the cylinder and its limit switches, etc., the specific method is a person in the field side of the operation of the button, etc., the other in the PLC measurement and monitoring of the input and output signals; For large systems should establish a test table, that is, after the test is well marked. If it is found that there is a wiring error in the construction process needs to be dealt with immediately.


This step should be noted is the need to back up the program after clearing the PLC inside the program or disable the program, to avoid the test leads to the action of the equipment.
 

III. Check the mechanical structure and test the motor type loads


This step needs to check whether the mechanical structure is tight and so on, motor loads are well protected to avoid accidents caused by accidents, after the inspection is completed, you need to manually go to the test equipment operation, such as forward and reverse motor class, you need to test whether the line is intact and powered trial, inverter class set the appropriate parameters and motor optimization, static recognition or dynamic identification, and so on.

 

Here it should be noted that for some special loads, such as vertical class up and down moving loads need to be carried out by professionals, so as to avoid testing accidents caused by improper control.
 

IV. debugging manual mode/semi-automatic mode and related logic relationships


After the IO points and load side are tested, the next step is to debug in manual mode. The manual mode here can also be called semi-automatic mode, not by hand directly to press the solenoid valve or contactor, etc., but refers to the button or HMI buttons, etc. to drive the device, which is corresponding to the automatic state.

The test of manual mode can break down the automatic mode according to the person's wishes and facilitate the test program.


The most important part of this link is to test the safety function, that is, in the operating state of the equipment to test the emergency stop, safety grating and so on whether the safety function plays a corresponding role.

 

V. Debugging automatic mode according to the production process


After completing the semi-automatic debugging, you can further debug the automatic work. This link is the most important, according to the production process need to test a variety of chain, including logic chain, safety chain, etc., and to test more than a few work cycles to ensure that the system can work correctly and continuously.
 

VI. Testing of special processes


PLC system in addition to logic control, there are many expanded out of the function, such as PID control, etc., when these logic debugging is basically complete, you can start debugging analog, pulse volume control.

 

The main thing is to select the appropriate control parameters. Generally speaking, this process is relatively long. To be patient, the parameters should also make a variety of choices, and then select the most favorable. Some PLC, its PID parameters can be obtained through self-tuning. But this self-tuning process, it also takes quite some time to complete.

 

VII. Complete all the above steps

 

The whole debugging is basically completed, then came to the pre-production steps, pre-production is the work of pre-production testing, in the stage can be with the production of some special tests, such as production rhythm is satisfied, with loaded safety features can also play a role, etc., generally after a certain period of continuous production can be handed over to the work.


Novice especially need to pay attention to the power supply, I remember many years ago when I debugged the first project, because the construction unit will be a large belt rope switch 220V contacts and 24V contacts connected to the wrong (belt rope switch for the safety device, two sets of contacts, a group of 220V disconnect control loop, the other 24V into the PLC), resulting in the burning of a digital input template, and later on the long memory of it. Then I learned a lesson, and then debugging time must be clear 220V and 24V, and never had a problem.
 

Send Inquiry

whatsapp

Phone

E-mail

Inquiry