Engineer story sharing(16)
To become a plc programming engineer, you must be proficient in a programming language, that is, plc programming, which is the only way for every student to grow.
PLC is an automatic control component that is widely used in the industry. For PLC programming, generally for people who do industrial control, in fact, PLC programming does not
It’s so difficult to imagine, the first-time students don’t worry too much, follow the experience of their predecessors, and ask them again. One day, you will become a PLC editor.
Cheng engineer's.
Let's share with you some tips on PLC programming for seniors:
1. When writing data conversion, especially when stepping servo position or speed switching, be sure to give a buffer time, do not write that kind of seamless
Docking programs, if seamlessly docked, often make mistakes, and the location may be out of order.
Generally speaking, it should be given a scan period of 0.05s or more or more than two.
2. Position control command, it is better to clear the current position every time you return to the origin or start. Otherwise, positional errors and cumulative errors will also occur.
3, position control When returning to the origin, you must use the return to the original command, you can not take the data.
4. When position control, use absolute position control as much as possible, do not take relative instructions, absolute position is easier for programming than relative position control.
use.
5. For position control, it is best to use pulse + direction control. Try not to use double pulses.
6. Manual and automatic programs are written separately. The way to make a block.
7. When using the rising edge or falling edge, the contact must be placed behind the output coil, otherwise it will not scan or be unstable.
8, the general sensor switch, especially the magnetic sensor switch of the cylinder has a sensing area, when executed, must give a time of more than 0.1s. Otherwise
The machine will not be in place, and the program will start the next step.
9, precision sensors, especially for digital measurements, do not mechanically detect the position immediately, this time the detection is basically inaccurate, also
It is necessary to give a buffer time.
10, the more complex the program, the simpler the operation, such a machine field operator is the favorite. Others require the program to be simplified, my request is complicated
And intelligent.
11, does not have to use advanced instructions, in general, to meet the requirements.
These tips are very useful for beginners.
And by learning the PLC programmable controller program design, the trainees can master the working principle of the programmable controller and the design of the hardware and software of the PLC control system.
The method of writing complex PLC programs lays the foundation for the design, debugging and transformation of PLC control systems.
It is also possible to independently undertake the design and development of related projects. Let you be upgraded to a genuine engineer by an electrician!